/* Exercise Manager - Custom Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Card Hover Effects */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Step Items */
.step-item {
    transition: all 0.2s ease;
}

.step-item:hover {
    background-color: #f8f9fa;
    padding: 1rem;
    margin: -1rem;
    border-radius: 0.25rem;
}

/* Form Styles */
.step-form {
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

.step-form:hover {
    background-color: #e9ecef;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Alert Animations */
.alert {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Card Header Icons */
.card-header i {
    margin-right: 0.5rem;
}

/* Responsive Images */
img.img-fluid {
    max-height: 300px;
    object-fit: cover;
}

/* Progress Bars */
.progress {
    background-color: #e9ecef;
}

/* Pre-formatted Text */
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Button Groups */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Form Validation */
.was-validated .form-control:valid {
    border-color: var(--success-color);
}

.was-validated .form-control:invalid {
    border-color: var(--danger-color);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

/* Code Blocks */
code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 87.5%;
}

/* Utility Classes */
.text-break-word {
    word-break: break-word;
}

.cursor-pointer {
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2rem;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
    }

    .btn-group .btn {
        border-radius: 0.25rem !important;
        margin-bottom: 0.25rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    .breadcrumb {
        display: none;
    }
}

/* Monospace font for code/IDs */
.font-monospace {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

/* Multiple ID badges */
.badge.bg-primary {
    font-weight: 500;
}
