/* ===================================
   REZERVACIJOS SISTEMA - Modern Design
   Based on Serve Online style
   =================================== */

/* Google Fonts - Barlow */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&display=swap');

/* ===================================
   CSS Custom Properties
   =================================== */
:root {
    /* Primary Colors */
    --primary-dark: #1e3a5f;
    --primary-medium: #2c5282;
    --primary-light: #3182ce;
    
    /* Accent Colors */
    --accent-blue: #4299e1;
    --accent-orange: #ed8936;
    --accent-green: #48bb78;
    --accent-red: #fc8181;
    
    /* Neutral Colors */
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e0;
    
    /* Text Colors */
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --text-white: #ffffff;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

/* ===================================
   Base Styles
   =================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* ===================================
   Top Navigation Bar
   =================================== */
.navbar-modern {
    background: var(--primary-dark);
    padding: 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-modern .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    min-height: 65px;
}

/* Logo */
.navbar-brand-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-white);
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-brand-modern:hover {
    color: var(--text-white);
}

.navbar-logo {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.navbar-logo-text {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Navigation Links */
.navbar-nav-modern {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link-modern {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link-modern:hover,
.nav-link-modern.active {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link-modern i {
    font-size: 1.1rem;
}

/* User Section */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    font-weight: 500;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
}

/* Mobile Menu Toggle */
.navbar-toggler-modern {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
}

/* Navigation Collapse - Desktop */
.navbar-collapse-modern {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Mobile Menu */
@media (max-width: 991px) {
    .navbar-toggler-modern {
        display: block;
    }
    
    .navbar-collapse-modern {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        align-items: stretch;
    }
    
    .navbar-collapse-modern.show {
        display: flex;
    }
    
    .navbar-nav-modern {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-link-modern {
        width: 100%;
        padding: 1rem 1.25rem;
    }
    
    .navbar-user {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* ===================================
   Main Content Area
   =================================== */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* ===================================
   Progress Steps (Reservation Wizard)
   =================================== */
.progress-steps-modern {
    display: flex;
    justify-content: space-between;
    margin: 0 0 2rem;
    padding: 1.5rem 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.progress-steps-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 80px;
    right: 80px;
    height: 3px;
    background: var(--border-light);
    transform: translateY(-50%);
    z-index: 0;
}

.step-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-circle-modern {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--bg-white);
    border: 3px solid var(--border-light);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    transition: var(--transition-normal);
}

.step-label-modern {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    transition: var(--transition-normal);
}

.step-modern.active .step-circle-modern {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.4);
}

.step-modern.active .step-label-modern {
    color: var(--primary-light);
    font-weight: 600;
}

.step-modern.completed .step-circle-modern {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: var(--text-white);
}

.step-modern.completed .step-label-modern {
    color: var(--accent-green);
}

/* Mobile Progress Steps */
@media (max-width: 768px) {
    .progress-steps-modern {
        padding: 1rem;
        overflow-x: auto;
    }
    
    .progress-steps-modern::before {
        left: 40px;
        right: 40px;
    }
    
    .step-circle-modern {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
    
    .step-label-modern {
        font-size: 0.75rem;
    }
}

/* ===================================
   Cards
   =================================== */
.card-modern {
    background: var(--bg-white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

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

.card-header-modern h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* ===================================
   Specialist Card (Serve Online style)
   =================================== */
.specialist-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

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

/* Avatar */
.specialist-avatar {
    flex-shrink: 0;
    position: relative;
}

.specialist-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--bg-light);
    box-shadow: var(--shadow-sm);
}

.specialist-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-medium) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    border: 4px solid var(--bg-light);
    box-shadow: var(--shadow-sm);
}

.specialist-favorite {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--bg-white);
    border: none;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--accent-red);
    transition: var(--transition-fast);
}

.specialist-favorite:hover {
    transform: scale(1.1);
}

/* Info */
.specialist-info {
    flex: 1;
    min-width: 0;
}

.specialist-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 0.25rem;
}

.specialist-profession {
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.specialist-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.specialist-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.specialist-detail i {
    color: var(--text-light);
    width: 18px;
}

.specialist-actions {
    display: flex;
    gap: 0.75rem;
}

/* Calendar Section */
.specialist-calendar {
    flex-shrink: 0;
    width: 320px;
    border-left: 1px solid var(--border-light);
    padding-left: 1.5rem;
}

/* Mobile Specialist Card */
@media (max-width: 991px) {
    .specialist-card {
        flex-direction: column;
    }
    
    .specialist-calendar {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-light);
        padding-left: 0;
        padding-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .specialist-avatar-img,
    .specialist-avatar-placeholder {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
    
    .specialist-name {
        font-size: 1.15rem;
    }
}

/* ===================================
   Week Calendar (Time Selection)
   =================================== */
.week-calendar {
    background: var(--bg-white);
    border-radius: var(--radius-md);
}

.week-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
}

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

.week-calendar-nav button {
    background: transparent;
    border: none;
    color: var(--text-medium);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition-fast);
}

.week-calendar-nav button:hover {
    color: var(--primary-light);
}

.week-calendar-date {
    font-weight: 600;
    color: var(--text-dark);
}

.week-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.week-day {
    text-align: center;
}

.week-day-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.week-day-date {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: 0.75rem;
}

.week-day.active .week-day-date {
    background: var(--primary-light);
    color: var(--text-white);
    border-radius: var(--radius-full);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.week-day-times {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.time-slot {
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.time-slot-available {
    background: var(--bg-light);
    color: var(--primary-light);
}

.time-slot-available:hover {
    background: var(--primary-light);
    color: var(--text-white);
}

.time-slot-selected {
    background: var(--primary-light);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.3);
}

.time-slot-busy {
    background: transparent;
    color: var(--text-light);
    text-decoration: line-through;
    cursor: not-allowed;
}

/* Mobile Week Calendar */
@media (max-width: 576px) {
    .week-days {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .week-day:nth-child(n+4) {
        display: none;
    }
    
    .week-calendar.show-all .week-day:nth-child(n+4) {
        display: block;
    }
}

/* ===================================
   Time Grid (Alternative Layout)
   =================================== */
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.time-option-modern {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
}

.time-option-modern:hover {
    border-color: var(--primary-light);
    background: rgba(49, 130, 206, 0.05);
}

.time-option-modern.selected {
    border-color: var(--accent-green);
    background: rgba(72, 187, 120, 0.1);
}

.time-option-modern input {
    display: none;
}

.time-option-modern .time-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.time-option-modern .time-icon {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

/* ===================================
   Buttons
   =================================== */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-medium) 100%);
    color: var(--text-white);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.35);
    color: var(--text-white);
}

.btn-secondary-modern {
    background: var(--bg-light);
    color: var(--text-medium);
    border: 2px solid var(--border-light);
}

.btn-secondary-modern:hover {
    background: var(--border-light);
    color: var(--text-dark);
}

.btn-outline-modern {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
}

.btn-outline-modern:hover {
    background: var(--primary-light);
    color: var(--text-white);
}

.btn-sm-modern {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ===================================
   Forms
   =================================== */
.form-control-modern {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control-modern:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.15);
    outline: none;
}

.form-select-modern {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234a5568' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    transition: var(--transition-fast);
}

.form-select-modern:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.15);
    outline: none;
}

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

/* ===================================
   Summary Box
   =================================== */
.summary-box-modern {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.summary-item-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.summary-item-modern:last-child {
    border-bottom: none;
}

.summary-label-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-medium);
}

.summary-label-modern i {
    color: var(--primary-light);
}

.summary-value-modern {
    font-weight: 600;
    color: var(--text-dark);
}

/* ===================================
   Info Card
   =================================== */
.info-card-modern {
    background: rgba(49, 130, 206, 0.08);
    border-left: 4px solid var(--primary-light);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-card-modern i {
    color: var(--primary-light);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-card-modern p {
    margin: 0;
    color: var(--text-medium);
}

/* ===================================
   Footer
   =================================== */
.footer-modern {
    background: var(--primary-dark);
    color: var(--text-white);
    margin-top: auto;
    padding: 1.5rem 0;
}

.footer-modern a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-modern a:hover {
    color: var(--text-white);
}

/* ===================================
   Dashboard Styles
   =================================== */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: var(--text-medium);
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon-blue {
    background: rgba(66, 153, 225, 0.15);
    color: var(--accent-blue);
}

.stat-icon-green {
    background: rgba(72, 187, 120, 0.15);
    color: var(--accent-green);
}

.stat-icon-orange {
    background: rgba(237, 137, 54, 0.15);
    color: var(--accent-orange);
}

.stat-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.stat-content p {
    margin: 0;
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* ===================================
   Reservation Calendar Grid
   =================================== */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.calendar-cell {
    background: var(--bg-white);
    min-height: 120px;
    padding: 0.75rem;
}

.calendar-cell-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.calendar-cell.today {
    background: rgba(49, 130, 206, 0.05);
}

.calendar-cell.today .calendar-cell-header {
    color: var(--primary-light);
}

.calendar-event {
    background: var(--primary-light);
    color: var(--text-white);
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    margin-bottom: 0.35rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.calendar-event:hover {
    background: var(--primary-medium);
}

/* ===================================
   Alerts
   =================================== */
.alert-modern {
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success-modern {
    background: rgba(72, 187, 120, 0.15);
    color: var(--accent-green);
}

.alert-danger-modern {
    background: rgba(252, 129, 129, 0.15);
    color: var(--accent-red);
}

.alert-info-modern {
    background: rgba(66, 153, 225, 0.15);
    color: var(--accent-blue);
}

.alert-warning-modern {
    background: rgba(237, 137, 54, 0.15);
    color: var(--accent-orange);
}

/* ===================================
   Utility Classes
   =================================== */
.text-primary-modern {
    color: var(--primary-light) !important;
}

.text-muted-modern {
    color: var(--text-light) !important;
}

.bg-primary-modern {
    background: var(--primary-dark) !important;
}

.rounded-modern {
    border-radius: var(--radius-md) !important;
}

/* ===================================
   Login/Register Pages
   =================================== */
.auth-container {
    max-width: 440px;
    margin: 2rem auto;
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--text-white);
    padding: 2rem;
    text-align: center;
}

.auth-header h2 {
    margin: 0;
    font-weight: 700;
}

.auth-body {
    padding: 2rem;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
}

.auth-divider span {
    background: var(--bg-white);
    padding: 0 1rem;
    position: relative;
    color: var(--text-light);
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .navbar-modern,
    .footer-modern,
    .btn-modern {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card-modern {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===================================
   SIDEBAR NAVIGATION
   =================================== */

/* Sidebar Layout Variables */
:root {
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 0px;
    --mobile-header-height: 60px;
}

/* Body with sidebar */
body.has-sidebar {
    display: block;
    min-height: 100vh;
}

/* Mobile Header (only visible on mobile) */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-header-height);
    background: var(--primary-dark);
    z-index: 1040;
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.mobile-logo img {
    height: 36px;
    width: auto;
}

.mobile-logo i {
    font-size: 1.5rem;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Sidebar Overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1045;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

body.sidebar-open .sidebar-overlay {
    display: block;
    opacity: 1;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--primary-dark);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal);
    overflow: hidden;
}

/* Sidebar Header */
.sidebar-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 70px;
    position: relative;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-white);
    justify-content: center;
}

.sidebar-logo-img {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.sidebar-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-blue) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.sidebar-logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.25rem;
    padding: 0.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-fast);
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar-close:hover {
    opacity: 1;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section-title {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-link i {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
}

.sidebar-link span {
    flex: 1;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
}

.sidebar-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-white);
    border-left-color: var(--accent-blue);
}

.sidebar-external {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-left: auto;
}

.sidebar-link-logout {
    color: rgba(255, 255, 255, 0.6);
}

.sidebar-link-logout:hover {
    background: rgba(252, 129, 129, 0.15);
    color: var(--accent-red);
}

/* Sidebar User Section */
.sidebar-section-user {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1.25rem;
}

.sidebar-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-user-name {
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.sidebar-footer-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Main Content with Sidebar */
.main-content-sidebar {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-light);
    transition: margin-left var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
    width: 100%;
}

/* Page Footer */
.page-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    padding: 1.25rem 1rem;
    margin-top: auto;
    text-align: center;
}

.page-footer .footer-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.875rem;
}

.page-footer .footer-link:hover {
    color: var(--primary-color);
}

/* Responsive Sidebar */
@media (max-width: 991.98px) {
    .mobile-header {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    body.sidebar-open .sidebar {
        transform: translateX(0);
    }
    
    .sidebar-close {
        display: block;
    }
    
    .main-content-sidebar {
        margin-left: 0;
        padding-top: var(--mobile-header-height);
    }
    
    .content-wrapper {
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    .sidebar {
        width: 100%;
    }
    
    .content-wrapper {
        padding: 0.75rem;
    }
}
