/* Vietnamese Government Schedule Website - Modern Red Design with Tailwind */

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

body {
    font-family: 'Roboto', sans-serif !important;
    line-height: 1.6;
    color: #1e293b;
    background-color: #f7f7f7 !important;
    font-size: 16px;
    letter-spacing: 0;
    margin: 0;
    padding: 0;
}

/* Modern Red Color Palette */
:root {
    --primary-red: #b91c1c;
    --primary-red-light: #dc2626;
    --secondary-red: #9f1212;
    --red-gradient-start: #b91c1c;
    --red-gradient-end: #da251d;
    --yellow-accent: #facc15;
    --background-light: #f7f7f7;
    --success-color: #059669;
    --danger-color: #DC2626;
    --warning-color: #D97706;
    --info-color: #0EA5E9;
    --dark-color: #1e293b;
    --light-color: #FFFFFF;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --white: #FFFFFF;
    
    /* Legacy variable mappings for backward compatibility */
    --primary-color: var(--primary-red);
    --secondary-color: var(--secondary-red);
    --primary-dark: #891b1b;
    --accent-light: #fef2f2;
}

/* Modern Flat Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)) !important;
    box-shadow: 0 2px 20px rgba(137, 37, 27, 0.3);
    padding: 1.2rem 0;
    border: none;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: white !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.navbar-text {
    color: var(--accent-light) !important;
    font-weight: 600;
    font-size: 0.95rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.6rem 1.2rem !important;
    border-radius: 25px;
}

/* Modern Flat Button Styles */
.btn {
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 28px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(220, 57, 47, 0.3);
}

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

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #10B981);
    color: white;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

/* Modern Flat Cards */
.card {
    border: none;
    box-shadow: 0 4px 15px rgba(45, 24, 16, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    margin-top: 10px;
}

.card-header {
    background: linear-gradient(135deg, var(--gray-50), var(--accent-light));
    color: var(--dark-color);
    font-weight: 700;
    padding: 1rem;
    border: none;
    font-size: 1.1rem;
}

.card-body {
    padding: 1rem;
}

/* Modern Schedule Table */
.government-schedule-table {
    font-size: 0.85rem;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 4px 15px rgba(45, 24, 16, 0.1);
    border-radius: 6px;
    overflow: hidden;
    background: var(--white);
    border: none;
    width: 100%;
}

.government-schedule-table th {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    font-weight: 700;
    text-align: center;
    padding: 0.8rem 0.6rem;
    border: none;
    vertical-align: middle;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.2;
}

.government-schedule-table .leader-column {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-light));
    text-align: center;
    font-weight: 700;
    color: var(--dark-color);
    padding: 0.8rem 0.6rem;
    font-size: 0.8rem;
    line-height: 1.2;
}

.government-schedule-table .leader-row {
    border-top: 3px solid var(--primary-color);
}

/* Alternating row colors for leaders */
.government-schedule-table .leader-row:nth-child(odd) {
    background-color: var(--white);
}

.government-schedule-table .leader-row:nth-child(even) {
    background-color: var(--gray-50);
}

.government-schedule-table .leader-row:nth-child(odd) .leader-info {
    background: linear-gradient(135deg, var(--white), var(--gray-100));
    border-right: 1px solid var(--white);
    border-left: 1px solid var(--white);
}

.government-schedule-table .leader-row:nth-child(even) .leader-info {
    background: linear-gradient(135deg, var(--gray-50), var(--background-light));
    border-right: 1px solid var(--white);
    border-left: 1px solid var(--white);
}

.government-schedule-table .leader-row:nth-child(odd) .schedule-day-cell {
    background-color: var(--white);
}

.government-schedule-table .leader-row:nth-child(even) .schedule-day-cell {
    background-color: var(--gray-50);
}

.government-schedule-table .leader-info {
    padding: 1.2rem;
    text-align: left;
    vertical-align: top;
}

.government-schedule-table .leader-title {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.government-schedule-table .leader-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
}

.government-schedule-table .schedule-day-cell {
    vertical-align: top;
    padding: 12px 10px;
    border: none;
    background-color: var(--white);
    min-height: 140px;
    position: relative;
    transition: all 0.3s ease;
}

.government-schedule-table .schedule-day-cell:hover {
    background-color: var(--gray-50);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(45, 24, 16, 0.1);
    z-index: 10;
}

/* Modern Schedule Entries */
.schedule-entry {
    margin-bottom: 0.6rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--white), var(--gray-50));
    border-left: 3px solid var(--secondary-color);
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.5;
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 6px rgba(45, 24, 16, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.schedule-entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 57, 47, 0.1), transparent);
    transition: left 0.5s ease;
}

.schedule-entry:hover::before {
    left: 100%;
}

.schedule-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 24, 16, 0.15);
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, var(--white), var(--accent-light));
    border-color: var(--primary-color);
}

.schedule-entry:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(45, 24, 16, 0.2);
    background: linear-gradient(135deg, var(--gray-50), var(--background-light));
}

.schedule-entry:last-child {
    margin-bottom: 0;
}

.schedule-entry .schedule-time {
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-entry .schedule-content {
    color: var(--dark-color);
    margin-bottom: 0.6rem;
    font-weight: 600;
    line-height: 1.4;
    font-size: 0.85rem;
}

.schedule-entry .schedule-location,
.schedule-entry .schedule-participants {
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--gray-600);
    font-weight: 500;
    margin-top: 0.3rem;
}

/* Current Day Highlighting */
.current-day-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-light)) !important;
    color: var(--dark-color) !important;
    font-weight: 700;
    position: relative;
}

.current-day-header::after {
    content: 'HÔM NAY';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--yellow-accent);
    color: #713f12;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: bold;
}

.current-day-cell,
.current-day-col {
    background: linear-gradient(135deg, var(--background-light), var(--accent-light)) !important;
    position: relative;
}

/* Event Type Styling */
.event-item {
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.event-item:hover {
    background-color: var(--accent-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.15);
}

/* Event Type Border Colors */
.event-sang {
    border-left: 2px solid #ef4444 !important;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.event-chieu {
    border-left: 2px solid var(--yellow-accent) !important;
    background: linear-gradient(135deg, #fefce8, #fef3c7);
}

.event-cangay {
    border-left: 2px solid var(--primary-red) !important;
    background: linear-gradient(135deg, #fee2e2, #fca5a5);
}

.event-toi {
    border-left: 2px solid #4f46e5 !important;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}

.event-other {
    border-left: 2px solid #fed7aa !important;
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}

/* Event Type Hover Effects */
.event-sang:hover {
    border-left-color: #dc2626 !important;
    background: linear-gradient(135deg, #fef2f2, #fecaca);
}

.event-chieu:hover {
    border-left-color: #eab308 !important;
    background: linear-gradient(135deg, #fefce8, #fed7aa);
}

.event-cangay:hover {
    border-left-color: var(--secondary-red) !important;
    background: linear-gradient(135deg, #fee2e2, #f87171);
}

.event-toi:hover {
    border-left-color: #3730a3 !important;
    background: linear-gradient(135deg, #eef2ff, #c7d2fe);
}

.event-other:hover {
    border-left-color: #dc2626 !important;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}


@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.current-day-mobile {
    background: linear-gradient(135deg, var(--background-light), var(--accent-light));
    border-left: 6px solid var(--secondary-color) !important;
    border-radius: 12px;
}

/* Week Navigation */
.week-nav-container {
    background: linear-gradient(135deg, var(--white), var(--gray-50));
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(45, 24, 16, 0.08);
    border: none;
    margin-bottom: 0.8rem;
}

/* Mobile Schedule Styles */
.mobile-schedule-view {
    display: none;
}

.leader-mobile-card {
    border: none;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(45, 24, 16, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.leader-mobile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(45, 24, 16, 0.2);
}

.leader-mobile-card:active {
    transform: translateY(-1px);
}

/* Alternating colors for mobile leader cards */
.leader-mobile-card:nth-child(odd) .leader-mobile-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 1.5rem;
}

.leader-mobile-card:nth-child(even) .leader-mobile-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-light));
    color: var(--dark-color);
    padding: 1.5rem;
}

.leader-mobile-card:nth-child(odd) .day-mobile-section {
    background: linear-gradient(135deg, var(--white), var(--gray-50));
}

.leader-mobile-card:nth-child(even) .day-mobile-section {
    background: linear-gradient(135deg, var(--white), var(--gray-50));
}

.leader-mobile-header {
    padding: 1.5rem;
}

.leader-mobile-header h5 {
    font-weight: 700;
    font-size: 1.1rem;
}

.leader-mobile-header h6 {
    font-weight: 500;
    opacity: 0.9;
}

.day-mobile-section {
    border-bottom: 2px solid var(--gray-200);
    background: linear-gradient(135deg, var(--white), var(--gray-50));
    padding: 1.2rem;
}

.day-mobile-section:last-child {
    border-bottom: none;
}

.day-mobile-section h6 {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-schedule-item {
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--gray-50), var(--background-light));
    border-left: 3px solid var(--secondary-color);
    border-radius: 4px;
    margin: 0.8rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mobile-schedule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 57, 47, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-schedule-item:hover::before {
    left: 100%;
}

.mobile-schedule-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(45, 24, 16, 0.15);
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, var(--white), var(--accent-light));
}

.mobile-schedule-item:active {
    transform: translateX(2px);
    box-shadow: 0 4px 15px rgba(45, 24, 16, 0.2);
}

.mobile-schedule-item .time {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.mobile-schedule-item .content {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--dark-color);
    font-weight: 600;
}

.mobile-schedule-item .location,
.mobile-schedule-item .participants {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.2;
    color: var(--gray-600);
}

/* Admin Panel Styles - Responsive Design */
.admin-panel {
    font-size: 0.9rem;
    background-color: var(--background-light);
    min-height: 100vh;
}

.admin-panel .navbar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)) !important;
    padding: 0.8rem 0;
}

.admin-panel .navbar-brand {
    font-size: 1.2rem;
    font-weight: 700;
}

.admin-panel .card-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
}

.admin-panel .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Responsive Admin Header */
.admin-header-card {
    background: linear-gradient(135deg, var(--white), var(--gray-50));
    border: none;
    box-shadow: 0 4px 20px rgba(45, 24, 16, 0.1);
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-title-section h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.admin-stats-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(220, 57, 47, 0.3);
}

/* Compact Filter Styles */
.filter-group {
    display: flex;
    align-items: center;
}

.filter-group .form-select,
.filter-group .form-control {
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.filter-group .form-select:focus,
.filter-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.filter-actions .btn {
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

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

.filter-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.filter-actions .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.filter-actions .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-1px);
}

/* Compact Filter Styles */
.compact-filter-container {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(220, 57, 47, 0.1);
}

.filter-compact-group {
    flex-wrap: nowrap;
}

.filter-status-compact {
    background: rgba(220, 57, 47, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    margin-left: 0.5rem;
}

/* Compact Filter Mobile Styles */
@media (max-width: 768px) {
    .compact-filter-container {
        padding: 0.75rem !important;
    }
    
    .compact-filter-container form {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .filter-compact-group {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    .filter-compact-group select {
        min-width: 180px !important;
        flex: 1;
        font-size: 0.9rem !important;
    }
    
    .filter-compact-group .btn {
        min-width: 40px;
        padding: 0.4rem 0.8rem !important;
    }
    
    .filter-status-compact {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .filter-status-compact small {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .compact-filter-container {
        padding: 0.5rem !important;
    }
    
    .filter-compact-group select {
        min-width: 140px !important;
        font-size: 0.85rem !important;
    }
    
    .filter-compact-group .btn {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.75rem !important;
    }
    
    .filter-status-compact small {
        font-size: 0.8rem;
    }
}

@media (max-width: 375px) {
    .filter-compact-group {
        flex-direction: column !important;
        width: 100%;
    }
    
    .filter-compact-group select {
        width: 100% !important;
        min-width: unset !important;
        margin-bottom: 0.5rem;
    }
    
    .filter-compact-group .btn {
        width: 48% !important;
    }
    
    .filter-compact-group .btn:last-child {
        margin-left: 4% !important;
    }
}

.admin-panel .form-label {
    font-size: 0.8rem;
    color: var(--dark-color);
    font-weight: 600;
}

.admin-panel .form-control,
.admin-panel .form-select {
    font-size: 0.8rem;
    border-radius: 10px;
    border: 2px solid var(--gray-300);
    transition: all 0.3s ease;
}

.admin-panel .form-control:focus,
.admin-panel .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 57, 47, 0.25);
    background-color: var(--gray-50);
}

/* Responsive Admin Table */
.admin-table-container {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(45, 24, 16, 0.1);
    border: 1px solid var(--gray-200);
}

.admin-table {
    margin-bottom: 0;
    width: 100%;
}

.admin-table th {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    border: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 1rem 0.8rem;
    text-align: center;
    white-space: nowrap;
}

.admin-table td {
    vertical-align: middle;
    border-color: var(--gray-200);
    font-size: 0.85rem;
    padding: 1rem 0.8rem;
    border-bottom: 1px solid var(--gray-200);
}

.admin-table tbody tr:hover {
    background-color: var(--gray-50);
    transition: background-color 0.2s ease;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Mobile Card Layout for Tables */
.admin-mobile-cards {
    display: none;
}

.admin-mobile-card {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(45, 24, 16, 0.08);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.admin-mobile-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.admin-mobile-card-body {
    padding: 1rem;
}

.admin-mobile-field {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--gray-200);
}

.admin-mobile-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.admin-mobile-label {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.8rem;
    margin-right: 1rem;
    min-width: 80px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-mobile-value {
    color: var(--dark-color);
    font-size: 0.85rem;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

.admin-mobile-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 2px solid var(--gray-200);
    margin-top: 1rem;
}

/* Form Enhancements */
.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border-radius: 12px;
    border: 2px solid var(--gray-300);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 57, 47, 0.25);
    background-color: var(--gray-50);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 15px;
    border-left: 5px solid;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
}

.alert-danger {
    border-left-color: var(--danger-color);
    background: linear-gradient(135deg, #FEF2F2, #FECACA);
}

.alert-warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, #FFFBEB, #FED7AA);
}

.alert-info {
    border-left-color: var(--info-color);
    background: linear-gradient(135deg, #F0F9FF, #DBEAFE);
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(45, 24, 16, 0.3);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 2rem;
    background: var(--white);
}

.modal-footer {
    background: var(--gray-50);
    border: none;
    padding: 1.5rem 2rem;
}

/* Footer */
footer {
    background: linear-gradient(to right, #b91c1c, #da251d) !important;
    border-top: 3px solid #ffd600;
    margin-top: auto;
    padding: 1rem 0;	
}

footer p {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Comprehensive Responsive Design */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .admin-panel .container {
        max-width: 1140px;
    }
    
    .admin-header-content {
        flex-wrap: nowrap;
    }
    
    .admin-title-section h1 {
        font-size: 2rem;
    }
}

/* Desktop/Laptop (992px to 1199px) */
@media (max-width: 1199.98px) {
    .admin-title-section h1 {
        font-size: 1.7rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.8rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991.98px) {
    .government-schedule-table {
        display: none;
    }
    
    .mobile-schedule-view {
        display: block !important;
    }
    
    .admin-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .admin-title-section h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .admin-stats-badge {
        align-self: center;
    }
    
    /* Switch to mobile card layout for admin tables */
    .table-responsive {
        display: none;
    }
    
    .admin-mobile-cards {
        display: block;
    }
    
    .filter-group {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .filter-group .form-select,
    .filter-group .form-control {
        width: 100%;
        min-width: auto !important;
    }
    
    .filter-actions {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .display-6 {
        font-size: 1.6rem;
    }
}

/* Additional Mobile Filter Styles for Small Screens */
@media (max-width: 575.98px) {
    /* Leader filter card mobile optimization */
    .card-body.py-2 {
        padding: 0.5rem !important;
    }
    
    /* Filter label mobile */
    .d-flex.align-items-center span.fw-semibold {
        font-size: 0.9rem;
    }
    
    /* Filter icon sizing */
    .fas.fa-filter {
        font-size: 0.9rem;
    }
    
    /* Select dropdown smaller screens */
    .filter-group select.form-select {
        font-size: 0.9rem !important;
        padding: 0.6rem !important;
    }
    
    /* Filter buttons smaller */
    .filter-actions .btn {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.8rem !important;
    }
    
    /* Hidden elements to save space on very small screens */
    .fas.fa-search,
    .fas.fa-times {
        margin-right: 0.3rem !important;
    }
    
    /* Filter status info smaller */
    .mt-2.pt-2 small {
        font-size: 0.8rem !important;
    }
}

/* Small Tablet/Large Phone (576px to 767px) */
@media (max-width: 767.98px) {
    .admin-panel .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .admin-title-section h1 {
        font-size: 1.4rem;
    }
    
    .admin-stats-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .admin-mobile-card-body {
        padding: 1rem 0.8rem;
    }
    
    .admin-mobile-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .admin-mobile-label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 0.2rem;
    }
    
    .admin-mobile-value {
        text-align: left;
    }
    
    .admin-mobile-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .admin-mobile-actions .btn {
        width: 100%;
    }
    
    .week-navigation .btn {
        margin: 4px 2px;
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group .btn {
        border-radius: 25px;
    }
}

/* Mobile Phone (up to 575px) */
@media (max-width: 575.98px) {
    .admin-panel .container {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
    
    .admin-title-section h1 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .admin-stats-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .admin-mobile-card {
        margin-bottom: 0.8rem;
    }
    
    .admin-mobile-card-header {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .admin-mobile-card-body {
        padding: 0.8rem;
    }
    
    .admin-mobile-field {
        margin-bottom: 0.6rem;
        padding-bottom: 0.6rem;
    }
    
    .admin-mobile-label {
        font-size: 0.75rem;
    }
    
    .admin-mobile-value {
        font-size: 0.8rem;
    }
    
    .week-navigation {
        text-align: center;
    }
    
    .week-navigation .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        font-size: 0.8rem;
    }
    
    .navbar {
        padding: 0.8rem 0;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem;
    }
    
    /* Compact filter for mobile */
    .d-flex.flex-wrap.align-items-center.justify-content-between {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem;
    }
    
    .filter-actions .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    /* Leader filter ultra mobile optimization */
    .card-body.py-2 {
        padding: 0.4rem !important;
    }
    
    /* Compact filter label */
    .d-flex.align-items-center span.fw-semibold {
        font-size: 0.85rem;
    }
    
    .fas.fa-filter {
        font-size: 0.8rem;
    }
    
    /* Ultra compact select */
    .filter-group select.form-select {
        font-size: 0.85rem !important;
        padding: 0.5rem !important;
    }
    
    /* Compact buttons for tiny screens */
    .filter-actions .btn {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
    }
    
    /* Smaller badge and info text */
    .badge.bg-primary {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
    }
    
    .mt-2.pt-2 small {
        font-size: 0.75rem !important;
    }
    
    .admin-title-section h1 {
        font-size: 1.1rem;
    }
    
    .admin-stats-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .admin-mobile-card-header {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .admin-mobile-card-body {
        padding: 0.6rem;
    }
    
    .admin-mobile-label {
        font-size: 0.7rem;
    }
    
    .admin-mobile-value {
        font-size: 0.75rem;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
}

/* Loading and Transitions */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

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

.text-muted {
    color: var(--gray-600) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.bg-light {
    background: linear-gradient(135deg, var(--gray-50), var(--background-light)) !important;
}

/* Icon styling */
.fas {
}

/* No schedule display */
.no-schedule {
    color: var(--gray-500);
    font-style: italic;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--gray-50), var(--background-light));
    border-radius: 12px;
}

/* Accessibility and Print Styles */
@media print {
    .navbar,
    .week-navigation,
    .btn,
    footer {
        display: none !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .text-primary {
        color: #000 !important;
    }
    
    body {
        background: white !important;
    }
}

.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}