:root {
    --primary-color: #1a5276;
    --secondary-color: #2980b9;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #1a1a1a;
    --bs-body-color: #e0e0e0;
    --bs-border-color: #333;
    --bs-gray-800: #1a1a1a;
    --bs-gray-700: #2d2d2d;
    --bs-gray-600: #404040;
    --bs-gray-500: #505050;
}

body {
    background-color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #e0e0e0;
}

main {
    flex: 1;
}

.navbar {
    background: linear-gradient(135deg, #0d2d47, #1a4d6d) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.4rem;
    color: #fff !important;
}

.nav-link {
    color: #b0c4de !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #fff !important;
}

.hero-section {
    padding: 2rem 0;
}

.search-form {
    max-width: 800px;
}

.department-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    border-radius: 12px;
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #404040;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    background: #333;
}

.rating-badge {
    background: linear-gradient(135deg, #2d2d2d, #3a3a3a);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: #64b5f6;
}

.stars-display {
    display: inline-flex;
    gap: 2px;
}

.stars-display i {
    font-size: 1rem;
}

.card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #242424;
}

.card {
    background: #2a2a2a;
    border: 1px solid #404040;
    color: #e0e0e0;
}

.card-header {
    background: #1e3a5f !important;
    border-bottom: 1px solid #404040;
    color: #fff;
}

.card-body {
    background: #2a2a2a;
}

.overall-rating {
    background: linear-gradient(135deg, #1e3a5f, #253a5f) !important;
    color: #e0e0e0;
}

.rating-breakdown .progress {
    border-radius: 4px;
    background-color: #404040;
}

.rating-breakdown .progress-bar {
    border-radius: 4px;
    background: linear-gradient(90deg, #2196F3, #64B5F6);
}

.review-card {
    border: none;
    border-radius: 12px;
    border-left: 4px solid #2196F3;
    background: #2a2a2a;
}

.review-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5) !important;
    background: #333;
}

.rating-mini-breakdown .col {
    min-width: 0;
}

.rating-mini-breakdown .bg-light {
    border-radius: 8px;
    background: #333 !important;
}

.form-control,
.form-select {
    background: #333 !important;
    border: 1px solid #505050 !important;
    color: #e0e0e0 !important;
}

.form-control::placeholder {
    color: #888 !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #2196F3 !important;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25) !important;
    background: #333 !important;
}

.btn-primary {
    background: linear-gradient(135deg, #1976d2, #1e88e5);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1565c0, #1976d2);
}

.btn-success {
    background: linear-gradient(135deg, #388e3c, #43a047);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #2e7d32, #388e3c);
}

.btn-info {
    background: linear-gradient(135deg, #0097a7, #00bcd4);
    border: none;
}

.btn-info:hover {
    background: linear-gradient(135deg, #00838f, #0097a7);
}

.btn-danger {
    background: linear-gradient(135deg, #c62828, #d32f2f);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b71c1c, #c62828);
}

.badge {
    font-weight: 500;
}

.bg-primary {
    background: #1976d2 !important;
}

.bg-success {
    background: #388e3c !important;
}

.bg-info {
    background: #0097a7 !important;
}

.bg-secondary {
    background: #555 !important;
}

footer {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a) !important;
    border-top: 1px solid #404040;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: #64b5f6;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #b0b0b0;
}

.sticky-lg-top {
    z-index: 100;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .search-form .row {
        gap: 0.5rem;
    }
    
    .rating-mini-breakdown .text-muted {
        font-size: 0.65rem;
    }
    
    .overall-rating .display-3 {
        font-size: 2.5rem;
    }
}

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

.alert-success {
    background-color: #1b5e20;
    color: #81c784;
    border: 1px solid #2e7d32;
}

.alert-danger {
    background-color: #b71c1c;
    color: #ef5350;
    border: 1px solid #c62828;
}

.alert-warning {
    background-color: #6d4c41;
    color: #ffb74d;
    border: 1px solid #795548;
}

.alert-info {
    background-color: #01579b;
    color: #4fc3f7;
    border: 1px solid #0277bd;
}

.form-label {
    color: #c0c0c0;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.input-group-text {
    border-right: none;
    background: #333;
    border: 1px solid #505050;
    color: #e0e0e0;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-left: none;
}

.text-warning {
    color: #ffb74d !important;
}

.text-muted {
    color: #888 !important;
}

.collapse:not(.show) + .card-body,
.collapsing + .card-body {
    display: none;
}

.dept-logo {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.card-img-top {
    border-bottom: 1px solid #404040;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-photo-container {
    background: linear-gradient(135deg, #1e3a5f, #253a5f);
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #404040;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-photo {
    max-width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.staff-detail-photo {
    background: linear-gradient(135deg, #1e3a5f, #253a5f);
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #404040;
}

.staff-detail-photo-img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.dropdown-menu {
    background: #2a2a2a !important;
    border: 1px solid #404040 !important;
}

.dropdown-item {
    color: #e0e0e0 !important;
}

.dropdown-item:hover {
    background: #3a3a3a !important;
    color: #fff !important;
}

.dropdown-divider {
    border-color: #404040 !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #e0e0e0;
}

.table {
    color: #e0e0e0;
    border-color: #404040;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: #252525;
}

.table-hover tbody tr:hover {
    background: #303030;
}

.table thead {
    border-bottom: 1px solid #404040;
    background: #1e1e1e;
}

.table td, .table th {
    border-color: #404040;
}

.badge-primary {
    background: #1976d2 !important;
}

.badge-success {
    background: #388e3c !important;
}

.badge-info {
    background: #0097a7 !important;
}

.badge-secondary {
    background: #666 !important;
}

.collapse-button:hover {
    background: #3a3a3a;
}
