/* Custom CSS for Firebase Admin Dashboard */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: between;
    align-items: center;
}

.brand {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.brand-text {
    margin-left: 0.5rem;
}

.sidebar-toggle {
    color: white !important;
    border: none !important;
    padding: 0.25rem 0.5rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.sidebar-nav .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-nav .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 4px solid #ffc107;
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.user-avatar {
    margin-right: 0.75rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    padding: 2rem 0;
}

/* Top Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 998;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #495057 !important;
}

/* Desktop Sidebar */
@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0);
        position: fixed;
    }
    
    .main-content {
        margin-left: 280px;
    }
    
    .sidebar-overlay {
        display: none;
    }
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    border-bottom: none;
    padding: 1.5rem;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.card-body {
    padding: 2rem;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-danger:hover {
    transform: none;
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Company logo styles */
.company-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.company-logo-placeholder {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    border: 2px solid #e9ecef;
}

.table {
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.quota-item {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6 !important;
    transition: all 0.3s ease;
}

.quota-item:hover {
    background-color: #e9ecef;
    border-color: #007bff !important;
}

.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

.spinner-border {
    color: #007bff;
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
}

.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
}

/* Loading animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
    
    .btn-group-vertical .btn {
        margin-bottom: 0.5rem;
    }
    
    .quota-item .row > div {
        margin-bottom: 1rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Table hover effects */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Employer details styling */
.employer-details {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.employer-details .progress {
    background-color: #e9ecef;
}

.employer-details .table {
    font-size: 0.875rem;
}

/* Badge improvements */
.badge {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Company logo styling */
.company-logo {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border: 1px solid #dee2e6;
}

.company-logo-large {
    max-width: 120px;
    max-height: 120px;
    object-fit: cover;
    border: 2px solid #dee2e6;
}

.company-logo-placeholder {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Employer details modal improvements */
.employer-details {
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
}

.employer-details h5 {
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.employer-details .company-about {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #007bff;
    font-style: italic;
}

/* Map link styling */
.map-link {
    transition: all 0.3s ease;
}

.map-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Table row improvements for employer data */
.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: translateX(2px);
    box-shadow: 2px 0 8px rgba(0, 123, 255, 0.1);
}

/* Progress bars in quota display */
.quota-progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.quota-progress .progress-bar {
    height: 100%;
    transition: width 0.6s ease;
}

/* Location display */
.location-info {
    font-size: 0.875rem;
    color: #6c757d;
}

.location-info i {
    margin-right: 0.25rem;
}

/* Category badges */
.category-badge {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Role badges */
.role-badge-employer {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.role-badge-other {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* Button group improvements */
.btn-group-sm > .btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
}

/* Status badges */
.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
}

/* Success/Error states */
.is-valid {
    border-color: #28a745;
}

.is-invalid {
    border-color: #dc3545;
}

/* Login form specific styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard stats cards */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card p {
    margin: 0;
    opacity: 0.9;
}

/* ===== BREADCRUMB STYLES ===== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #5a6fd8;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-weight: 600;
    color: #adb5bd;
}

/* ===== ADDITIONAL RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 576px) {
    .breadcrumb {
        font-size: 12px;
    }
    
    .main-header {
        padding: 10px 15px;
    }
    
    .content {
        padding: 15px;
    }
}

/* ===== JOBS TABLE STYLES ===== */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
    padding: 15px 12px;
}

.table td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

.table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transition: background-color 0.3s ease;
}

.company-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.company-logo-placeholder {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Date Display Styles */
.date-display {
    font-size: 13px;
    line-height: 1.4;
}

.timestamp-label {
    font-size: 11px;
    opacity: 0.7;
    font-style: italic;
}

/* Job Status Badges */
.badge {
    font-size: 11px;
    padding: 4px 8px;
}

/* Modal Enhancements */
.modal-xl .modal-dialog {
    max-width: 90%;
}

.job-details .row {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.job-details .row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef;
}

/* ===== TIMESTAMP DISPLAY IMPROVEMENTS ===== */
.timestamp-display {
    font-size: 13px;
    line-height: 1.3;
}

.timestamp-display .fw-bold {
    font-size: 14px;
    margin-bottom: 2px;
}

.job-details .fw-bold {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.quota-details .fw-bold {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 3px;
}

/* Modal timestamp styling */
.modal .text-primary.fw-bold {
    color: #0d6efd !important;
}

.modal .text-danger.fw-bold {
    color: #dc3545 !important;
}

.modal .text-info.fw-bold {
    color: #0dcaf0 !important;
}

/* Table timestamp cell improvements */
.table td .text-primary,
.table td .text-danger {
    font-size: 13px;
    font-weight: 500;
}

.table td small {
    font-size: 11px;
    opacity: 0.8;
}
