/* Custom CSS for FitwithKinsa Pilates App */

:root {
    /* Primary brand colors from Fit with Kinsa logo */
    --primary-color: #609FA4;        /* Logo teal color */
    --primary-light: #7BB3B8;        /* Lighter teal */
    --primary-dark: #4A7D82;         /* Darker teal */
    --secondary-color: #F7941D;      /* Warm orange accent */
    --accent-color: #FBB040;         /* Light orange accent */
    --success-color: #39B54A;        /* Green for success states */
    --info-color: #609FA4;           /* Same as primary */
    --warning-color: #F9ED32;        /* Yellow for warnings */
    --danger-color: #EF4136;         /* Red for errors */
    --light-color: #FFFFFF;          /* Pure white */
    --dark-color: #231F20;           /* Dark text */
    --soft-teal: #E8F2F3;            /* Very light teal */
    --warm-orange: #FFF4E6;          /* Very light orange */
}

/* Font imports for brand fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Brand logo fonts */
.brand-kinsa {
    font-family: 'Black Pink Summer Regular', 'Inter', cursive, sans-serif;
    font-weight: normal;
}

.brand-fitwith {
    font-family: 'Core Sans N SC 55 Medium', 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Class Cards */
.class-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.class-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 1.25rem;
}

.class-card .card-body {
    padding: 1.5rem;
}

.benefits-section {
    background-color: var(--soft-teal);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    margin-top: 1rem;
}

/* Navigation */
.navbar-brand img {
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border: none;
    font-weight: 600;
}

/* Contact Section */
.contact-info {
    font-size: 1.1rem;
}

.contact-info i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* Admin Dashboard */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: var(--light-color);
    border: none;
    font-weight: 600;
    color: var(--dark-color);
}

.table td {
    border: none;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: rgba(0,123,255,0.05);
}

/* Badges */
.badge {
    font-size: 0.75em;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #212529 100%);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        min-height: 300px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .class-card {
        margin-bottom: 1.5rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .btn {
        display: none;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Override Bootstrap colors to use our brand colors */
.text-success {
    color: var(--secondary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}
