.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    margin: 20px 0;
}

.select2-container .select2-selection--single {
    height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.table th {
    background-color: #f8f9fa;
}

/* Modal styles */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 2px solid #f0f0f0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 2px solid #f0f0f0;
    padding: 1rem 1.5rem;
}

.info-item {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.info-item i {
    margin-right: 8px;
    color: #0d6efd;
}

.section-title {
    color: #0d6efd;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Make tables in modal more compact */
.modal .table {
    font-size: 0.9rem;
}

/* Clickable rows */
#allSchoolsTable tbody tr,
#topSchoolsTable tbody tr,
#bottomSchoolsTable tbody tr {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

#allSchoolsTable tbody tr:hover,
#topSchoolsTable tbody tr:hover,
#bottomSchoolsTable tbody tr:hover {
    background-color: #f0f7ff !important;
}

/* Add a modern "view details" indicator */
#allSchoolsTable tbody tr td:last-child,
#topSchoolsTable tbody tr td:last-child,
#bottomSchoolsTable tbody tr td:last-child {
    position: relative;
    padding-right: 25px;
}

#allSchoolsTable tbody tr td:last-child::after,
#topSchoolsTable tbody tr td:last-child::after,
#bottomSchoolsTable tbody tr td:last-child::after {
    content: "→";
    position: absolute;
    right: 5px;
    opacity: 0.3;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    font-weight: 300;
}

#allSchoolsTable tbody tr:hover td:last-child::after,
#topSchoolsTable tbody tr:hover td:last-child::after,
#bottomSchoolsTable tbody tr:hover td:last-child::after {
    opacity: 1;
    transform: translateX(3px);
}

/* Make school names more prominent */
#allSchoolsTable tbody tr td:nth-child(2),
#topSchoolsTable tbody tr td:nth-child(2),
#bottomSchoolsTable tbody tr td:nth-child(2) {
    color: #0d6efd;
    font-weight: 500;
}

/* Add a subtle animation when clicking */
#allSchoolsTable tbody tr:active,
#topSchoolsTable tbody tr:active,
#bottomSchoolsTable tbody tr:active {
    background-color: #e6f0ff !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .chart-container {
        height: 250px;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .info-item {
        margin-bottom: 15px;
    }

    .modal .table {
        font-size: 0.8rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Use hardware acceleration for animations */
#allSchoolsTable tbody tr,
#topSchoolsTable tbody tr,
#bottomSchoolsTable tbody tr {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimize transitions */
#allSchoolsTable tbody tr td:last-child::after,
#topSchoolsTable tbody tr td:last-child::after,
#bottomSchoolsTable tbody tr td:last-child::after {
    will-change: transform, opacity;
}

/* Reduce repaints */
.table {
    contain: content;
}

/* Optimize modal animations */
.modal {
    will-change: transform, opacity;
}

/* Add loading state styles */
.loading {
    position: relative;
    min-height: 200px;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Add print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .table {
        width: 100% !important;
    }
    
    .table td, .table th {
        background-color: #fff !important;
    }
} 