/**
 * Professional Theme CSS
 * Muted, professional color scheme for StudyCare application
 * Apply this to all pages for consistent, polished look
 */

:root {
    /* Professional Muted Colors */
    --primary-color: #5b7c99;
    --primary-hover: #4a6a85;
    --primary-light: #7a9bb8;
    --primary-lighter: #9eb5cc;
    
    /* Backgrounds */
    --bg-gradient: linear-gradient(to bottom, #f8f9fa 0%, #f0f2f5 100%);
    --hover-bg: #f5f7fa;
    --active-bg: #e8f0f7;
    
    /* Text Colors */
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --text-muted: #6c757d;
    
    /* Borders & Dividers */
    --border-color: #e8eaf0;
    --border-color-light: #f0f2f5;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(91, 124, 153, 0.1);
    --shadow-md: 0 4px 12px rgba(91, 124, 153, 0.15);
    --shadow-lg: 0 8px 24px rgba(91, 124, 153, 0.2);
    --shadow-hover: 0 6px 16px rgba(91, 124, 153, 0.25);
    
    /* Sidebar */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 70px;
}

/* Global Body Styling */
body {
    background: var(--bg-gradient);
    color: var(--text-primary);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Global Banner Styling - Consistent across all pages */
.banner {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    z-index: 1000 !important;
    height: 64px !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.banner-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #1a365d !important;
    letter-spacing: -0.5px;
    margin: 0;
    text-shadow: none !important;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Banner Responsive Styles */
@media (max-width: 768px) {
    body {
        padding-top: 64px; /* Keep same padding on tablet */
    }
    
    .banner-content {
        padding: 0 1rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px; /* Adjust for smaller banner on mobile */
    }
    
    .banner {
        height: 60px;
    }
    
    .banner-content {
        padding: 0 0.75rem;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
}

/* Professional Buttons */
.btn-professional,
button.btn-professional,
.btn.professional {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.btn-professional:hover,
button.btn-professional:hover,
.btn.professional:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-professional:active {
    transform: translateY(0);
}

/* Icon Buttons */
.icon-btn-professional {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.icon-btn-professional:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px) scale(1.05);
}

.icon-btn-professional i {
    font-size: 0.95rem;
}

/* Professional Cards */
.card-professional {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-professional:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Professional Tables */
.table-professional {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table-professional thead th {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f5 100%);
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.table-professional tbody tr {
    border-bottom: 1px solid var(--border-color-light);
    transition: all 0.2s ease;
}

.table-professional tbody tr:hover {
    background: var(--hover-bg);
}

.table-professional tbody td {
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
}

/* Sidebar Styling */
.sidebar-professional {
    background: white;
    border-right: 1px solid var(--border-color);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.06);
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-item-professional {
    padding: 0.9rem 1.15rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    color: var(--text-primary);
    border-left: 3px solid transparent;
    border-radius: 8px;
    margin: 0 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-item-professional:hover {
    background: var(--hover-bg);
    border-left-color: var(--primary-color);
    transform: translateX(2px);
}

.sidebar-item-professional.active {
    background: var(--active-bg);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(91, 124, 153, 0.15);
}

/* Form Inputs */
.input-professional,
input.professional,
textarea.professional,
select.professional {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-primary);
}

.input-professional:focus,
input.professional:focus,
textarea.professional:focus,
select.professional:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 124, 153, 0.1);
}

/* Modal Styling */
.modal-professional {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 1.75rem;
    max-width: 90%;
}

.modal-backdrop-professional {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Badge/Tag */
.badge-professional {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--active-bg);
    color: var(--primary-color);
}

/* Loading State */
.loading-professional {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Error State */
.error-professional {
    background: linear-gradient(135deg, #fee 0%, #fdd 100%);
    color: #c33;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #fcc;
    font-weight: 500;
}

/* Success State */
.success-professional {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #c3e6cb;
    font-weight: 500;
}

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

*::-webkit-scrollbar-track {
    background: #f8f9fa;
}

*::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease-out backwards;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Utility Classes */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.bg-hover { background: var(--hover-bg); }
.bg-active { background: var(--active-bg); }

/* Responsive helpers */
@media (max-width: 768px) {
    .card-professional {
        padding: 1.25rem;
    }
    
    .btn-professional {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }
}

