/* Custom CSS for IGCSE 1 */

:root {
    --primary-color: #800000;
    --primary-dark: #5C0000;
    --primary-light: #A00000;
    --secondary-color: #F5DEB3;
    --secondary-dark: #DEB887;
    --success-color: #228B22;
    --warning-color: #CD853F;
    --danger-color: #8B0000;
    --info-color: #A0522D;
    --light-color: #FFF8DC;
    --dark-color: #2F1B14;
    --accent-color: #722F37;
    --accent-light: #D2B48C;
    --gradient-primary: linear-gradient(135deg, #800000 0%, #A00000 50%, #722F37 100%);
    --gradient-secondary: linear-gradient(135deg, #F5DEB3 0%, #DEB887 50%, #D2B48C 100%);
    --gradient-success: linear-gradient(135deg, #228B22 0%, #32CD32 50%, #90EE90 100%);
    --gradient-warning: linear-gradient(135deg, #CD853F 0%, #D2691E 50%, #F4A460 100%);
    --gradient-danger: linear-gradient(135deg, #8B0000 0%, #A00000 50%, #DC143C 100%);
    --gradient-accent: linear-gradient(135deg, #722F37 0%, #8B0000 50%, #A00000 100%);
    --gradient-hero: linear-gradient(135deg, #800000 0%, #A00000 25%, #722F37 50%, #CD853F 75%, #800000 100%);
    --gradient-card: linear-gradient(145deg, #FFF8DC 0%, #F5DEB3 100%);
    --gradient-navbar: linear-gradient(135deg, #800000 0%, #5C0000 50%, #800000 100%);
    --shadow-primary: 0 4px 20px rgba(128, 0, 0, 0.15);
    --shadow-secondary: 0 4px 20px rgba(245, 222, 179, 0.15);
    --shadow-success: 0 4px 20px rgba(34, 139, 34, 0.15);
    --shadow-warning: 0 4px 20px rgba(205, 133, 63, 0.15);
    --shadow-danger: 0 4px 20px rgba(139, 0, 0, 0.15);
    --shadow-accent: 0 4px 20px rgba(114, 47, 55, 0.15);
    --gray-50: #FFF8DC;
    --gray-100: #F5DEB3;
    --gray-200: #DEB887;
    --gray-300: #D2B48C;
    --gray-400: #BC9A6A;
    --gray-500: #8B7355;
    --gray-600: #654321;
    --gray-700: #4A2C17;
    --gray-800: #2F1B14;
    --gray-900: #1A0F0A;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Bootstrap Color Overrides */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-light { color: var(--light-color) !important; }
.text-dark { color: var(--dark-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-info { background-color: var(--info-color) !important; }
.bg-light { background-color: var(--light-color) !important; }
.bg-dark { background-color: var(--dark-color) !important; }

.btn-primary { 
    background-color: var(--primary-color) !important; 
    border-color: var(--primary-color) !important; 
}
.btn-primary:hover { 
    background-color: var(--primary-dark) !important; 
    border-color: var(--primary-dark) !important; 
}

.btn-secondary { 
    background-color: var(--secondary-color) !important; 
    border-color: var(--secondary-color) !important; 
    color: var(--dark-color) !important;
}
.btn-secondary:hover { 
    background-color: var(--secondary-dark) !important; 
    border-color: var(--secondary-dark) !important; 
}

.btn-outline-primary { 
    color: var(--primary-color) !important; 
    border-color: var(--primary-color) !important; 
}
.btn-outline-primary:hover { 
    background-color: var(--primary-color) !important; 
    border-color: var(--primary-color) !important; 
}

.btn-outline-secondary { 
    color: var(--secondary-color) !important; 
    border-color: var(--secondary-color) !important; 
}
.btn-outline-secondary:hover { 
    background-color: var(--secondary-color) !important; 
    border-color: var(--secondary-color) !important; 
}

.alert-primary { 
    background-color: rgba(128, 0, 0, 0.1) !important; 
    border-color: var(--primary-color) !important; 
    color: var(--primary-dark) !important; 
}
.alert-secondary { 
    background-color: rgba(245, 222, 179, 0.3) !important; 
    border-color: var(--secondary-color) !important; 
    color: var(--dark-color) !important; 
}

.badge-primary { 
    background-color: var(--primary-color) !important; 
}
.badge-secondary { 
    background-color: var(--secondary-color) !important; 
    color: var(--dark-color) !important;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    min-height: 100vh;
    font-size: 16px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(128, 0, 0, 0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.display-4 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--gray-600);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    color: white;
    border-radius: 20px;
    margin-bottom: 3rem;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: heroSlideIn 1s ease-out;
}

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

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section h1 {
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 400;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 200px;
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
}

/* Announcement Cards */
.announcement-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    overflow: hidden;
}

.announcement-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
}

.announcement-header {
    padding: 1.5rem;
    border-radius: 16px 16px 0 0;
}

/* Empty State */
.empty-state {
    padding: 3rem 1rem;
}

.empty-state i {
    opacity: 0.5;
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
}

.card-header {
    border-radius: 16px 16px 0 0 !important;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Clean Square Dashboard Cards - Enhanced */
.square-card {
    background: var(--gradient-card);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}

.square-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    pointer-events: none;
}

.square-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
}

.square-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
}

/* Card Icons - Enhanced */
.card-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.card-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border-radius: 22px;
    z-index: -1;
}

.card-icon i {
    font-size: 32px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.square-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.square-card:hover .card-icon i {
    transform: scale(1.1);
}

/* Card Numbers - Enhanced */
.card-number {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1;
    position: relative;
    z-index: 2;
    letter-spacing: -1px;
}

/* Card Labels - Enhanced */
.card-label {
    font-size: 18px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 28px;
    line-height: 1.3;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Actions - Enhanced */
.card-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.action-btn {
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    min-width: 90px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.view-btn {
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    color: #475569;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.view-btn:hover {
    background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
    color: #334155;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.add-btn {
    color: white;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.add-btn:hover {
    transform: translateY(-2px);
}

/* Individual Card Themes - Enhanced */
.users-card::before {
    background: var(--gradient-primary);
}

.users-card .card-icon {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-primary);
}

.users-card .card-number {
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(30, 64, 175, 0.1);
}

.users-card .add-btn {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-primary);
}

.users-card .add-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

.events-card::before {
    background: var(--gradient-success);
}

.events-card .card-icon {
    background: var(--gradient-success);
    box-shadow: var(--shadow-success);
}

.events-card .card-number {
    color: var(--success-color);
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.events-card .add-btn {
    background: var(--gradient-success);
    border: none;
    box-shadow: var(--shadow-success);
}

.events-card .add-btn:hover {
    background: linear-gradient(135deg, var(--success-color), #059669);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.announcements-card::before {
    background: var(--gradient-warning);
}

.announcements-card .card-icon {
    background: var(--gradient-warning);
    box-shadow: var(--shadow-warning);
}

.announcements-card .card-number {
    color: var(--warning-color);
    text-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
}

.announcements-card .add-btn {
    background: var(--gradient-warning);
    border: none;
    box-shadow: var(--shadow-warning);
}

.announcements-card .add-btn:hover {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.students-card::before {
    background: var(--gradient-accent);
}

.students-card .card-icon {
    background: var(--gradient-accent);
    box-shadow: var(--shadow-accent);
}

.students-card .card-number {
    color: var(--accent-color);
    text-shadow: 0 2px 4px rgba(139, 92, 246, 0.1);
}

.students-card .add-btn {
    background: var(--gradient-accent);
    border: none;
    box-shadow: var(--shadow-accent);
}

.students-card .add-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Student Management Styles */
.avatar-sm {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--primary-color);
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
    border-color: #e9ecef;
}

.btn-group .btn {
    border-radius: 6px;
    margin: 0 2px;
}

.btn-group .btn:first-child {
    margin-left: 0;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Modal Styles */
.modal-header {
    border-bottom: 2px solid #e9ecef;
    background-color: #f8f9fa;
}

.modal-footer {
    border-top: 2px solid #e9ecef;
    background-color: #f8f9fa;
}

.alert {
    border: none;
    border-radius: 8px;
}

.alert-info {
    background-color: #e3f2fd;
    color: #0277bd;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
}

/* Pagination Styles */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
    border-radius: 6px;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    color: var(--primary-color);
    background-color: #f8f9fa;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.25);
}

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

/* Badge Styles */
.badge {
    font-size: 0.75em;
    font-weight: 600;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

/* Management Actions Button Layout */
.management-actions {
    padding: 1.5rem;
}

.management-actions .d-flex {
    gap: 1rem;
}

.management-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    border-width: 1px;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

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

.management-btn i {
    font-size: 14px;
}

/* Responsive button layout */
@media (max-width: 768px) {
    .management-actions .d-flex {
        gap: 0.75rem;
    }
    
    .management-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-height: 32px;
    }
}

@media (max-width: 576px) {
    .management-actions .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .management-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 1199px) {
    .square-card {
        min-height: 260px;
        padding: 28px 20px;
    }
    
    .card-icon {
        width: 56px;
        height: 56px;
    }
    
    .card-icon i {
        font-size: 24px;
    }
    
    .card-number {
        font-size: 42px;
    }
}

@media (max-width: 991px) {
    .square-card {
        min-height: 240px;
        padding: 24px 18px;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .table-responsive {
        font-size: 0.9em;
    }
    
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8em;
    }
}

@media (max-width: 767px) {
    .square-card {
        min-height: 220px;
        padding: 20px 16px;
    }
    
    .card-icon {
        width: 48px;
        height: 48px;
    }
    
    .card-icon i {
        font-size: 20px;
    }
    
    .card-number {
        font-size: 36px;
    }
    
    .card-label {
        font-size: 14px;
    }
    
    .table-responsive {
        font-size: 0.8em;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 2px;
    }
    
    .btn-group .btn {
        width: 100%;
        margin: 0;
    }
}

.stats-card:nth-child(2) {
    border-left-color: var(--secondary-color);
}

.stats-card:nth-child(3) {
    border-left-color: var(--accent-color);
}

.stats-card:nth-child(4) {
    border-left-color: var(--success-color);
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 0%, rgba(30, 64, 175, 0.1) 100%);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.stats-card .display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stats-card .card-title {
    color: var(--gray-700);
    font-weight: 600;
}

/* Stats Icons */
.stats-icon {
    width: 80px;
    height: 80px;
    transition: all 0.3s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.1);
}

/* Avatar Circle */
.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

/* Professional Navbar Styles */
.navbar {
    background: var(--gradient-navbar) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="navbar-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23navbar-pattern)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Brand Container */
.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.brand-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.brand-icon i {
    font-size: 20px;
    color: white;
}

/* Logo Styles */
.brand-logo {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin: 0;
}

/* Navbar Toggler */
.navbar-toggler {
    border: none;
    padding: 8px;
    position: relative;
    z-index: 1;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Links */
.navbar-nav {
    position: relative;
    z-index: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* Dashboard Link */
.dashboard-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 8px;
}

.dashboard-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Nav Badge */
.nav-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-badge.admin {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* User Profile */
.user-profile {
    padding: 8px 12px !important;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar i {
    font-size: 16px;
    color: white;
}

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

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: capitalize;
}

.session-indicator {
    flex-shrink: 0;
}

.session-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-badge.long {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.session-badge.short {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Login Button */
.login-btn {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--primary-color) !important;
    font-weight: 600;
    border-radius: 8px;
    margin-left: 8px;
    border: none;
    padding: 10px 20px !important;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--accent-color) 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Dropdown Menus */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 8px;
    min-width: 280px;
}

.dropdown-item {
    padding: 12px 20px;
    font-size: 14px;
    color: var(--gray-700);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-item:hover {
    background: rgba(128, 0, 0, 0.05);
    color: var(--primary-color);
    transform: translateX(4px);
}

.dropdown-item.danger {
    color: var(--danger-color);
}

.dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.dropdown-divider {
    margin: 8px 0;
    border-color: rgba(0, 0, 0, 0.1);
}

.dropdown-header {
    padding: 16px 20px 8px;
    background: rgba(128, 0, 0, 0.05);
    margin: 0;
}

/* User Dropdown */
.user-dropdown {
    min-width: 320px;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-header i {
    font-size: 32px;
    color: var(--primary-color);
}

.user-header .user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.user-header .user-email {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
}

.session-info {
    padding: 12px 20px;
    background: rgba(128, 0, 0, 0.02);
}

.session-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.session-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-600);
}

.session-item i {
    font-size: 12px;
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

/* Buttons */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 16px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

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

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--shadow-success);
}

.btn-warning {
    background: var(--gradient-warning);
    color: white;
    box-shadow: var(--shadow-warning);
}

.btn-light {
    background: white;
    color: var(--gray-800);
    border: 2px solid var(--gray-200);
}

.btn-light:hover {
    background: var(--gray-50);
    color: var(--gray-900);
    border-color: var(--gray-300);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--gray-800);
}

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

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

/* Forms */
.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    color: var(--gray-800);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.15);
    background-color: white;
    transform: translateY(-1px);
}

.form-control:hover, .form-select:hover {
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.form-text {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Login Form Specific */
.login-card {
    max-width: 450px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    background: white;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    border-radius: 20px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

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

.login-card .card-header {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.login-card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.login-card .card-header > * {
    position: relative;
    z-index: 2;
}

.login-card .card-body {
    padding: 2.5rem;
    background: white;
}

.login-card .form-control {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.15);
    transform: translateY(-2px);
}

.login-card .form-control:hover {
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

.login-card .form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.login-card .input-group-text {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    color: var(--gray-600);
    font-weight: 500;
    border-radius: 12px 0 0 12px;
}

.login-card .input-group .form-control {
    border-radius: 0 12px 12px 0;
    border-left: none;
}

.login-card .btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 16px;
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-card .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.login-card .text-muted {
    color: var(--gray-500) !important;
    font-size: 0.875rem;
}

.login-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Tables */
.table {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: white;
    margin-bottom: 0;
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1.25rem 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    vertical-align: middle;
}

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

.table tbody tr:hover {
    background-color: var(--gray-50);
    transform: scale(1.01);
}

.table tbody td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    color: var(--gray-700);
    border: none;
}

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

/* Table Actions */
.btn-group .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 8px;
    margin: 0 0.125rem;
}

/* Search and Export Controls */
.table-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.table-controls .input-group {
    max-width: 400px;
}

.table-controls .input-group-text {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-right: none;
    color: var(--gray-600);
}

/* Enhanced Badge Styles */
.badge {
    font-weight: 600;
    padding: 0.5em 0.8em;
    border-radius: 8px;
    font-size: 0.8rem;
}

.badge.fs-6 {
    font-size: 0.875rem !important;
}

/* Enhanced Alert Styles */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.25rem;
}

.alert-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--shadow-success);
}

.alert-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: var(--shadow-danger);
}

.alert-warning {
    background: var(--gradient-warning);
    color: white;
    box-shadow: var(--shadow-warning);
}

.alert-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15);
}

/* Enhanced Input Groups */
.input-group-text {
    border-radius: 12px 0 0 12px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    color: var(--gray-600);
    font-weight: 500;
}

.input-group .form-control:first-child {
    border-radius: 0 12px 12px 0;
}

/* Enhanced Dropdown */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--gray-100);
    transform: translateX(4px);
}

/* Footer */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark-color) 100%);
    border-top: 1px solid var(--primary-color);
}

footer h5 {
    color: white;
    font-weight: 600;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .hero-section {
        padding: 3rem 1.5rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 2.5rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .stats-card .display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
        border-radius: 16px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.125rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .table-responsive {
        border-radius: 12px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 1rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        min-width: 250px;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .card {
        border-radius: 12px;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .table-controls {
        padding: 1rem;
    }
    
    .table-controls .row > div {
        margin-bottom: 1rem;
    }
    
    .table-controls .row > div:last-child {
        margin-bottom: 0;
    }
    
    .login-card .card-body {
        padding: 1.5rem;
    }
}

/* Responsive Navbar Design */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 12px;
        margin-top: 12px;
        padding: 16px;
        backdrop-filter: blur(10px);
    }
    
    .nav-link {
        margin: 4px 0;
        border-radius: 8px;
    }
    
    .user-profile {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .dashboard-link {
        margin-right: 0;
        margin: 4px 0;
    }
    
    .login-btn {
        margin-left: 0;
        margin: 4px 0;
    }
    
    .brand-text {
        display: none;
    }
    
    .brand-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .brand-icon {
        width: 36px;
        height: 36px;
    }
    
    .brand-icon i {
        font-size: 18px;
    }
    
    .user-name {
        max-width: 100px;
    }
    
    .dropdown-menu {
        min-width: 280px;
    }
    
    .user-dropdown {
        min-width: 300px;
    }
}

/* Animation for navbar scroll */
.navbar.scrolled {
    background: rgba(128, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Focus states for accessibility */
.nav-link:focus,
.dropdown-item:focus,
.navbar-toggler:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Enhanced Animation Classes */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-in-left {
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-in-right {
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scale-in {
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Staggered animations for cards */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* Priority Colors */
.priority-high {
    background-color: var(--danger-color) !important;
    color: white !important;
}

.priority-medium {
    background-color: var(--warning-color) !important;
    color: var(--dark-color) !important;
}

.priority-normal {
    background-color: var(--info-color) !important;
    color: white !important;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

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

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

/* Loading Spinner */
.spinner {
    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); }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.box-shadow {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hover-lift:hover {
    transform: translateY(-5px);
    transition: transform 0.2s ease;
}

/* Modern Login Page Overrides */
.login-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    min-height: 100vh !important;
    padding: 20px !important;
}

.login-wrapper {
    max-width: 420px !important;
    width: 100% !important;
}

.login-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    overflow: hidden !important;
}

/* Ensure the login page uses full viewport */
body.login-page {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Override any conflicting styles for login page */
.login-container .container.my-4 {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.login-container .row.justify-content-center {
    margin: 0 !important;
}

.login-container .col-md-6, 
.login-container .col-lg-5 {
    padding: 0 !important;
    max-width: none !important;
    flex: none !important;
}

/* Additional Enhanced Theme Enhancements */
.btn-secondary {
    background: var(--gradient-secondary);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-secondary);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

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

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

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

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

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

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

/* Enhanced card styling with new theme */
.card-header.bg-primary {
    background: var(--gradient-primary) !important;
    color: white;
}

.card-header.bg-secondary {
    background: var(--gradient-secondary) !important;
    color: white;
}

/* Professional Footer Styles */
.footer {
    background: var(--gradient-navbar);
    color: white;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-grain)"/></svg>');
    opacity: 0.3;
}

.footer-main {
    padding: 60px 0 40px;
    position: relative;
    z-index: 1;
}

.footer-brand {
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 32px;
    color: var(--secondary-color);
    margin-right: 15px;
}

.footer-logo h4 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.footer-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.footer-section {
    margin-bottom: 30px;
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 25px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-contact {
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.contact-item i {
    font-size: 18px;
    color: var(--secondary-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-item div {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.5;
}

.contact-item strong {
    color: white;
    font-weight: 600;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 25px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--secondary-color);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-logo {
        justify-content: center;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-title {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-legal {
        justify-content: center;
        margin-top: 15px;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-legal {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-social {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
}

/* Enhanced Visual Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glow-effect {
    box-shadow: 0 0 20px rgba(30, 64, 175, 0.3);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(30, 64, 175, 0.4);
    transition: box-shadow 0.3s ease;
}

/* Enhanced gradient text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Enhanced focus states */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
    background-color: white;
    transform: translateY(-1px);
}

/* Enhanced hover effects for cards */
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Enhanced button hover effects */
.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

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

/* Logo Styling */
.hero-logo-img {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.about-logo-img {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: var(--shadow-primary);
    transition: all 0.3s ease;
    background: white;
    padding: 8px;
}

.about-logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(128, 0, 0, 0.2);
}

.about-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: var(--light-color);
    border-radius: 15px;
    box-shadow: var(--shadow-primary);
}

.contact-logo-img {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: var(--shadow-primary);
    transition: all 0.3s ease;
    background: white;
    padding: 8px;
}

.contact-logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(128, 0, 0, 0.2);
}

.contact-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: var(--light-color);
    border-radius: 15px;
    box-shadow: var(--shadow-primary);
}

.dashboard-logo-img {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: var(--shadow-primary);
    transition: all 0.3s ease;
    background: white;
    padding: 6px;
}

.dashboard-logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(128, 0, 0, 0.2);
}

.dashboard-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--light-color);
    border-radius: 12px;
    box-shadow: var(--shadow-primary);
}

.footer-logo-img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    margin-right: 15px;
    transition: all 0.3s ease;
    background: white;
    padding: 5px;
    box-shadow: var(--shadow-sm);
}

.footer-logo-img:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.footer-logo-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-fallback i {
    font-size: 24px;
    color: var(--secondary-color);
}

.footer-logo-fallback h4 {
    margin: 0;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .hero-logo-img {
        max-width: 100px;
        max-height: 100px;
    }
    
    .hero-logo-fallback {
        width: 100px;
        height: 100px;
    }
    
    .about-logo-img {
        max-width: 80px;
        max-height: 80px;
    }
    
    .about-logo-fallback {
        width: 80px;
        height: 80px;
    }
    
    .contact-logo-img {
        max-width: 80px;
        max-height: 80px;
    }
    
    .contact-logo-fallback {
        width: 80px;
        height: 80px;
    }
    
    .dashboard-logo-img {
        max-width: 70px;
        max-height: 70px;
    }
    
    .dashboard-logo-fallback {
        width: 70px;
        height: 70px;
    }
    
    .footer-logo-img {
        max-width: 50px;
        max-height: 50px;
    }
}

@media (max-width: 576px) {
    .hero-logo-img {
        max-width: 80px;
        max-height: 80px;
    }
    
    .hero-logo-fallback {
        width: 80px;
        height: 80px;
    }
    
    .about-logo-img {
        max-width: 60px;
        max-height: 60px;
    }
    
    .about-logo-fallback {
        width: 60px;
        height: 60px;
    }
    
    .contact-logo-img {
        max-width: 60px;
        max-height: 60px;
    }
    
    .contact-logo-fallback {
        width: 60px;
        height: 60px;
    }
    
    .dashboard-logo-img {
        max-width: 60px;
        max-height: 60px;
    }
    
    .dashboard-logo-fallback {
        width: 60px;
        height: 60px;
    }
}
