/* Main Styles for NAPLAN Data Portal */
:root {
    --primary-color: #FFD700; /* Yellow */
    --secondary-color: #0047AB; /* Blue */
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --info-color: #2196f3;
    --text-color: #333333;
    --border-radius: 4px;
    --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: white;
    border-bottom: 1px solid var(--medium-gray);
    padding: 0.8rem 0;
    margin-bottom: 1.5rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    color: var(--dark-gray);
}

.header-logo-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 50%, var(--secondary-color) 50%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    box-shadow: var(--box-shadow);
}

.header-logo-circle span {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    border-bottom: 2px solid var(--primary-color);
}

nav ul li a i {
    margin-right: 6px;
    color: var(--secondary-color);
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    border: none;
}

.card-header {
    padding: 1rem 1.25rem;
    font-weight: 500;
    border-bottom: 1px solid var(--medium-gray);
    background-color: white;
    display: flex;
    align-items: center;
}

.card-header i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.card-body {
    padding: 1.25rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 400;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:hover {
    background-color: #003d8f;
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #003d8f;
}

.btn-warning {
    background-color: var(--warning-color);
}

.btn-success {
    background-color: var(--success-color);
}

.btn-danger {
    background-color: var(--danger-color);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: #fff;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 71, 171, 0.15);
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    vertical-align: middle;
    border-top: 1px solid var(--medium-gray);
}

.table thead th {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    font-weight: 500;
    border-bottom: 1px solid var(--medium-gray);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Dashboard Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.25rem;
    text-align: center;
    border-top: 3px solid var(--medium-gray);
}

.stat-card .stat-title {
    color: var(--dark-gray);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 500;
    margin: 0.5rem 0;
    color: var(--secondary-color);
}

.stat-card .stat-description {
    color: #6c757d;
    font-size: 0.9rem;
}

.stat-card.primary {
    border-top-color: var(--primary-color);
}

.stat-card.secondary {
    border-top-color: var(--secondary-color);
}

.stat-card.success {
    border-top-color: var(--success-color);
}

.stat-card.warning {
    border-top-color: var(--warning-color);
}

.stat-card.danger {
    border-top-color: var(--danger-color);
}

.stat-card.info {
    border-top-color: var(--info-color);
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1.5rem;
}

/* Performance Levels */
.performance-level {
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-weight: 400;
    display: inline-block;
    font-size: 0.875rem;
}

.level-high {
    background-color: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
}

.level-medium {
    background-color: rgba(255, 152, 0, 0.15);
    color: #e65100;
}

.level-low {
    background-color: rgba(244, 67, 54, 0.15);
    color: #c62828;
}

/* Footer Styles */
footer {
    background-color: white;
    border-top: 1px solid var(--medium-gray);
    color: var(--dark-gray);
    padding: 1.25rem 0;
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.875rem;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 6.25rem auto;
    padding: 1.875rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.login-logo {
    text-align: center;
    margin-bottom: 1.875rem;
}

.login-logo h2 {
    color: var(--dark-gray);
    font-weight: 500;
    margin-top: 15px;
}

.school-logo-placeholder {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 50%, var(--secondary-color) 50%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo-circle span {
    font-size: 32px;
    font-weight: bold;
    color: white;
}

/* Alert Messages */
.alert {
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.25rem;
    border-left: 3px solid transparent;
    background-color: rgba(0, 0, 0, 0.03);
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
    border-left-color: #4caf50;
}

.alert-danger {
    background-color: rgba(244, 67, 54, 0.15);
    color: #c62828;
    border-left-color: #f44336;
}

.alert-warning {
    background-color: rgba(255, 152, 0, 0.15);
    color: #e65100;
    border-left-color: #ff9800;
}

.alert-info {
    background-color: rgba(33, 150, 243, 0.15);
    color: #0d47a1;
    border-left-color: #2196f3;
}

.alert-secondary {
    background-color: rgba(0, 0, 0, 0.05);
    color: #37474f;
    border-left-color: #9e9e9e;
}

/* Admin Section */
.admin-sidebar {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.25rem;
}

.admin-sidebar h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    align-items: center;
}

.admin-sidebar h3 i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

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

.admin-sidebar ul li {
    margin-bottom: 0.5rem;
}

.admin-sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 0.625rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--dark-gray);
    transition: background-color 0.2s;
}

.admin-sidebar ul li a:hover,
.admin-sidebar ul li a.active {
    background-color: var(--light-gray);
    color: var(--secondary-color);
}

.admin-sidebar ul li a i {
    margin-right: 0.625rem;
    width: 1.25rem;
    text-align: center;
    color: var(--secondary-color);
}

.admin-content {
    flex: 1;
    padding: 1.25rem;
}

.admin-container {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

/* Student detail page */
.student-profile {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.student-info {
    flex: 1;
}

.student-actions {
    display: flex;
    gap: 0.625rem;
}

.domain-tabs {
    display: flex;
    border-bottom: 1px solid var(--medium-gray);
    margin-bottom: 1.25rem;
}

.domain-tab {
    padding: 0.625rem 1.25rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-right: 0.625rem;
}

.domain-tab.active {
    border-bottom: 2px solid var(--primary-color);
    font-weight: 500;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Insights Section */
.insights-container {
    margin-top: 1.25rem;
}

.insights-box {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius);
    padding: 1rem;
    border-top: 1px solid var(--medium-gray);
    border-bottom: 1px solid var(--medium-gray);
}

.insights-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--medium-gray);
}

.insights-title i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.insight-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background-color: white;
    border-left: 3px solid var(--secondary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    height: 100%;
    box-shadow: var(--box-shadow);
}

.insight-item h6 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.insight-item p {
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.small-text {
    font-size: 0.8rem;
}

.small-text p {
    margin-bottom: 0;
}

.insight-item i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* NAPLAN Bands */
.band-explanation {
    margin: 1.25rem 0;
}

.band-table {
    width: 100%;
    margin-bottom: 1.25rem;
}

.band-table th,
.band-table td {
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--medium-gray);
}

.band-table th {
    background-color: var(--light-gray);
    color: var(--dark-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 0.9375rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.3125rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        margin-bottom: 1.25rem;
    }
}

/* Bootstrap Utilities */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.9375rem;
    margin-left: -0.9375rem;
}

.col-md-6 {
    flex: 0 0 auto;
    width: 50%;
    padding-right: 0.9375rem;
    padding-left: 0.9375rem;
}

.col-md-3 {
    flex: 0 0 auto;
    width: 25%;
    padding-right: 0.9375rem;
    padding-left: 0.9375rem;
}

.col-md-4 {
    flex: 0 0 auto;
    width: 33.333333%;
    padding-right: 0.9375rem;
    padding-left: 0.9375rem;
}

@media (max-width: 768px) {
    .col-md-6, .col-md-3, .col-md-4 {
        width: 100%;
    }
}

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

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

.text-center {
    text-align: center !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 10rem;
    margin-left: 0.375rem;
}

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

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

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

/* Navigation Tabs */
.nav-tabs {
    border-bottom: 1px solid var(--medium-gray);
    margin-bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
}

.nav-item {
    margin-bottom: -1px;
}

.nav-link {
    border: 1px solid transparent;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--dark-gray);
    transition: color 0.15s;
    cursor: pointer;
}

.nav-link:hover, .nav-link:focus {
    border-color: var(--medium-gray) var(--medium-gray) transparent;
}

.nav-link.active {
    color: var(--secondary-color);
    background-color: white;
    border-color: var(--medium-gray) var(--medium-gray) white;
}

.tab-content > .tab-pane {
    display: none;
}

.tab-content > .active {
    display: block;
}

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

.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.hidden {
    display: none !important;
}