/* Custom styles for Recruitment Dashboard */

/* Body and layout improvements */
body {
    background-color: var(--bs-body-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dropdown menu styling for superuser navigation */
.navbar-nav .dropdown-menu {
    background-color: #1a1d29;
    border: 1px solid #3b3b3b;
}

.navbar-nav .dropdown-item {
    color: #9ca3af;
    transition: all 0.2s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.navbar-nav .dropdown-item.active {
    background-color: #3b82f6;
    color: #ffffff;
}

/* Enhanced card styling */
.card {
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Statistics cards */
.card.bg-primary,
.card.bg-success,
.card.bg-info,
.card.bg-warning {
    border: none;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Table enhancements */
.table-hover tbody tr:hover {
    background-color: var(--bs-gray-100);
}

.table th {
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: var(--bs-gray-600);
}

/* Status badges */
.badge {
    font-size: 0.75em;
    font-weight: 500;
    padding: 0.375em 0.75em;
}

/* Form enhancements */
.form-label {
    font-weight: 500;
    color: var(--bs-gray-700);
    margin-bottom: 0.5rem;
}

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

.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: var(--bs-success);
    background-image: none;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: var(--bs-danger);
    background-image: none;
}

/* Button enhancements */
.btn {
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn-group .btn {
    margin: 0 1px;
}

/* Navigation active state */
.navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
    font-weight: 600;
}

/* Empty state styling */
.text-center.py-5 {
    color: var(--bs-gray-600);
}

.text-center.py-5 i {
    opacity: 0.5;
}

/* Modal enhancements */
.modal-header {
    border-bottom: 1px solid var(--bs-border-color);
    background-color: var(--bs-light);
}

.modal-footer {
    border-top: 1px solid var(--bs-border-color);
    background-color: var(--bs-light);
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive table */
.table-responsive {
    border-radius: 0.375rem;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-gray-500);
}

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

/* Mobile optimizations */
@media (max-width: 768px) {
    .display-4 {
        font-size: 1.75rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin: 1px 0;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus indicators */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--bs-border-color);
    }
    
    .btn {
        border-width: 2px;
    }
}
