body {
    background-color: #f8f9fa;
}
.login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Navbar Styling */
.navbar {
    background-color: #343A40 !important;
}

/* Menu Links: White Text */
.navbar-nav .nav-link {
    color: white !important;
}

/* Menu Links: Light Gray Hover */
.navbar-nav .nav-link:hover {
    background-color: #f8f9fa !important;
    color: #343A40 !important;
}

/* Logout Button: Light Red Hover */
.navbar-nav .nav-item.logout .nav-link:hover {
    background-color: #ffcccc !important;
    color: #343A40 !important;
}

.mx-auto.d-block {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.btn-tan {
    background-color: tan;
    color: black;
    border: 1px solid #c8ad7f;
}
.btn-tan:hover {
    background-color: #d2b48c;
}
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.8) !important; /* White border */
}

.navbar-toggler-icon {
    filter: invert(1) brightness(200%) !important; /* ✅ Forces White Icon */
}

/* Square dropdown style */
.square-dropdown {
    border-radius: 0 !important; /* Square edges */
    border: 1px solid #ddd; /* Slight border */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

/* Dropdown opens on hover */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* White tenant name */
.navbar-text {
    color: white !important;
    margin-left: 50px; /* ✅ Move tenant name further from the logo */
    margin-right: 50px; /* ✅ Keep it away from the menu */
}

/* Align the menu to the right */
.navbar-nav {
    margin-left: auto !important;
}

#loading-overlay {
    display: none;
    position: fixed;
    top: 0; 
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #343a40;
}
#student-dropdown-menu {
    position: absolute;
    z-index: 1000;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    left: 0;
    top: 100%;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bg-update {
    box-shadow: 0 0 5px rgba(0, 128, 0, 0.6);
    transition: box-shadow 0.3s ease-in-out;
}

.bg-update {
    box-shadow: 0 0 6px 2px rgba(0, 128, 0, 0.5);
    transition: box-shadow 0.3s ease-in-out;
}

#loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1050;
    display: none;
    justify-content: center;
    align-items: center;
}

#parentSuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background-color: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}
/* Modern Home Page Styles */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    color: white;
    width: 100%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 2;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/back-to-school-m.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-badge {
    display: inline-block;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Removed text-gradient styling */

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.95;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    margin-bottom: 2rem;
}

.hero-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 400px;
}

.illustration-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.illustration-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.illustration-card i {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
    display: block;
}

.illustration-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.illustration-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    color: white;
}

/* Features Section */
.features-section {
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f8f9fa;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.feature-list li {
    padding: 0.5rem 0;
    color: #495057;
}

.feature-list li i {
    color: #28a745;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* Integration Section */
.integration-section {
    background: #f8f9fa;
}

.integration-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.integration-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.integration-content h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.integration-content p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Integration Flow - Clean Design */
.integration-flow-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0;
}

.flow-step-clean {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.step-icon-clean {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.step-icon-clean:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.step-content-clean h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.step-content-clean p {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.flow-arrow-clean {
    color: #667eea;
    font-size: 1.5rem;
    opacity: 0.6;
    margin: 0 0.5rem;
    flex-shrink: 0;
}

/* Testimonials Section */
.testimonials-section {
    background: white;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f8f9fa;
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.stars {
    color: #ffd700;
    font-size: 1.1rem;
}

.testimonial-content p {
    font-style: italic;
    color: #495057;
    line-height: 1.6;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
}

.author-info h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
}

.author-info span {
    font-size: 0.9rem;
    color: #6c757d;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-container {
        padding: 0 2rem;
    }
    
    .hero-visual {
        height: auto;
        margin-top: 2rem;
    }
    
    .hero-illustration {
        gap: 1rem;
    }
    
    .illustration-card {
        padding: 1.5rem;
    }
    
    .integration-flow-clean {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .flow-step-clean {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        align-items: center;
    }
    
    .step-icon-clean {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .flow-arrow-clean {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
}

/* Legacy styles for backward compatibility - REMOVED CONFLICTING RULES */

/* Feature icon animations */
.bounce {
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.spin {
    animation: spin 4s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.login-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    animation: fadeIn 0.3s ease-in-out;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    position: relative;
    margin: 40px auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Dashboard Styles */
.dashboard-wrapper {
    background: transparent;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.dashboard-header {
    background: white;
    color: var(--bs-dark);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.dashboard-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-section .section-title i {
    background: linear-gradient(135deg, var(--bs-primary), #0056b3);
    color: white;
    padding: 0.75rem;
    border-radius: 12px;
    font-size: 1.25rem;
}

.dashboard-section .section-subtitle {
    color: var(--bs-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Dashboard Cards */
.dashboard-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.dashboard-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
}

.dashboard-stat-card.success::before {
    background: linear-gradient(90deg, var(--bs-success), #20c997);
}

.dashboard-stat-card.warning::before {
    background: linear-gradient(90deg, var(--bs-warning), #fd7e14);
}

.dashboard-stat-card.info::before {
    background: linear-gradient(90deg, var(--bs-info), #17a2b8);
}

.dashboard-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--bs-primary);
}

.dashboard-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.dashboard-stat-icon.primary { background: linear-gradient(135deg, var(--bs-primary), #0056b3); }
.dashboard-stat-icon.success { background: linear-gradient(135deg, var(--bs-success), #146c43); }
.dashboard-stat-icon.warning { background: linear-gradient(135deg, var(--bs-warning), #b45309); }
.dashboard-stat-icon.info { background: linear-gradient(135deg, var(--bs-info), #0aa2c0); }

.dashboard-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.dashboard-stat-label {
    font-size: 0.875rem;
    color: var(--bs-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-top: 0.5rem;
}

.dashboard-stat-trend.up {
    background: rgba(25, 135, 84, 0.1);
    color: var(--bs-success);
}

.dashboard-stat-trend.down {
    background: rgba(220, 53, 69, 0.1);
    color: var(--bs-danger);
}

/* Dashboard Content Cards */
.dashboard-content-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin-bottom: 1rem;
}

.dashboard-content-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--bs-primary);
}

.dashboard-content-card .card-header {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem 2rem;
    border-radius: 18px 18px 0 0;
}

.dashboard-content-card .card-title {
    font-weight: 600;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-content-card .card-body {
    padding: 2rem;
}

/* Dashboard Activity Items */
.dashboard-activity-item {
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.dashboard-activity-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--bs-primary), var(--bs-info));
    border-radius: 0 3px 3px 0;
}

.dashboard-activity-item:hover {
    transform: translateX(6px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-primary);
}

/* Dashboard Health Metrics */
.dashboard-health-metric {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.dashboard-health-metric:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dashboard-health-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.75rem;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.dashboard-health-good { background: var(--bs-success); }
.dashboard-health-warning { background: var(--bs-warning); }
.dashboard-health-danger { background: var(--bs-danger); }

/* Dashboard Tenant Cards */
.dashboard-tenant-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.dashboard-tenant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-tenant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--bs-primary);
}

.dashboard-tenant-card:hover::before {
    opacity: 1;
}

/* Dashboard Chart Container */
.dashboard-chart-container {
    position: relative;
    height: 320px;
    padding: 1.5rem;
    margin: 1rem 0;
}

/* Dashboard Navigation Tabs */
.dashboard-nav-tabs {
    border: none;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 0.25rem;
}

.dashboard-nav-tabs .nav-link {
    border: none;
    border-radius: 8px;
    color: var(--bs-secondary);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
}

.dashboard-nav-tabs .nav-link.active {
    background: white;
    color: var(--bs-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Dashboard Export Button */
.dashboard-export-btn {
    background: linear-gradient(135deg, var(--bs-primary), #0056b3);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.dashboard-export-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: white;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Dashboard Responsive */
@media (max-width: 768px) {
    .dashboard-wrapper {
        margin: 10px;
    }
    
    .dashboard-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .dashboard-stat-number {
        font-size: 2rem;
    }
    
    .dashboard-chart-container {
        height: 250px;
    }
}

/* Super Admin Dashboard - Modern Glass Design */
body.super-admin {
    background: #f8f9fa;
    min-height: 100vh;
}

.admin-dashboard {
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Override container for super admin */
.admin-dashboard .container {
    max-width: none;
    padding: 0;
}

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

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Metric Cards */
.metric-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6;
}

.metric-card .d-flex {
    align-items: center;
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.metric-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.metric-trend {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Chart Cards */
.chart-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.chart-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
}

.chart-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1rem;
}

.chart-icon i {
    color: white !important;
}

/* Activity Feed */
.activity-feed {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

/* Health Metrics */
.health-metrics {
    space-y: 1.5rem;
}

.health-item {
    margin-bottom: 1.5rem;
}

.health-item:last-child {
    margin-bottom: 0;
}

.health-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
}

.health-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0.5rem 0;
}

.health-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.health-indicator.health-good {
    background-color: #198754;
}

.health-indicator.health-warning {
    background-color: #ffc107;
}

.health-indicator.health-danger {
    background-color: #dc3545;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.fab i {
    font-size: 1.2rem;
}

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




/* Responsive */
@media (max-width: 768px) {
    .dashboard-title { 
        font-size: 2rem; 
    }
    
    .admin-dashboard { 
        padding: 1rem 0.5rem; 
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .chart-card .card-body {
        padding: 1rem;
    }
    
    .fab { 
        width: 48px; 
        height: 48px; 
        font-size: 1rem; 
    }
}

/* Animation for FAB */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Contact Overlay */
.contact-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.contact-box {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-content h3 {
    color: #333;
    font-weight: 600;
}

.contact-content p {
    color: #666;
    font-size: 1.1rem;
}

.contact-form .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.contact-form .btn-primary:disabled {
    opacity: 0.7;
    transform: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-box {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .contact-content h3 {
        font-size: 1.5rem;
    }
    
    .contact-content p {
        font-size: 1rem;
    }
}

/* Emergency Attendance Styles */
.emergency-header {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border: 2px solid #a71e2a;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.student-accounted {
    background-color: rgba(40, 167, 69, 0.1) !important;
    border-left: 4px solid #28a745;
}

.student-missing {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-left: 4px solid #dc3545;
}

.conflict-warning {
    background-color: rgba(255, 193, 7, 0.2);
    border: 1px solid #ffc107;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
}

.alert-temporary {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
}

/* Emergency attendance responsive design for tablets */
@media (max-width: 768px) {
    .emergency-header h2 {
        font-size: 1.5rem;
    }
    
    .mark-student {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}