/* ==================== ADMIN LAYOUT ==================== */
.admin-body {
    background-color: var(--bg-deep) !important;
    color: var(--text) !important;
    min-height: 100vh;
}

.admin-header {
    background: rgba(11, 19, 32, 0.95) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    color: #ffffff !important;
    padding: 1.1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.admin-header h4 {
    color: #ffffff !important;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.admin-header .btn-logout {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 18px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.admin-header .btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171 !important;
}

/* ==================== LOGIN ==================== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 30%, rgba(6, 182, 212, 0.18) 0%, rgba(59, 130, 246, 0.08) 45%, #080c14 80%);
    padding: 2rem 1rem;
}

.login-card {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.login-card h3 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #ffffff !important;
    font-weight: 700;
}

.login-card p {
    text-align: center;
    color: #cbd5e1 !important;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ==================== TABS ==================== */
.admin-tabs {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: #cbd5e1 !important;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.admin-tab:hover {
    border-color: var(--accent-cyan);
    color: #ffffff !important;
    background: var(--bg-card-hover);
}

.admin-tab.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue)) !important;
    color: #ffffff !important;
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 18px rgba(6, 182, 212, 0.35);
}

.admin-tab .badge-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #ffffff !important;
}

.admin-tab.active .badge-count {
    background: rgba(0, 0, 0, 0.25);
}

/* ==================== STATS ==================== */
.stat-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.stat-card i {
    font-size: 1.75rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.stat-card h3 {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
    font-weight: 800;
    color: #ffffff !important;
}

.stat-card p {
    color: #cbd5e1 !important;
    font-size: 0.88rem;
    margin: 0;
}

/* ==================== TABLE ==================== */
.admin-table-wrapper {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    color: #f1f5f9 !important;
}

.admin-table thead th {
    background: #091220 !important;
    padding: 0.9rem 1.1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #cbd5e1 !important;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
    color: #f1f5f9 !important;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035) !important;
}

/* ==================== ACTION BUTTONS ==================== */
.btn-action {
    padding: 5px 12px;
    border-radius: 6px;
    border: none;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-download {
    background: rgba(6, 182, 212, 0.2);
    color: #38bdf8 !important;
    border: 1px solid rgba(6, 182, 212, 0.4);
}

.btn-download:hover {
    background: var(--accent-cyan);
    color: #ffffff !important;
}

.btn-edit {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.btn-edit:hover {
    background: #f59e0b;
    color: #ffffff !important;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-delete:hover {
    background: #ef4444;
    color: #ffffff !important;
}

.btn-toggle {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.btn-toggle.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* ==================== JOB FORM MODAL ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 1rem;
}

.modal-card {
    background: #0d172a !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    color: #ffffff !important;
}

.modal-card h4 {
    margin-bottom: 1.5rem;
    color: #ffffff !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 767px) {
    .admin-table-wrapper {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 700px;
    }

    .stat-card h3 {
        font-size: 1.6rem;
    }
}
