/* =============================================
   Rozgar Dunia - Admin Panel Styles
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.admin-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    color: #2d3748;
    font-size: 14px;
}

/* ── LAYOUT ── */
.admin-wrapper { display: flex; min-height: 100vh; }

/* ── SIDEBAR ── */
.admin-sidebar {
    width: 240px;
    min-height: 100vh;
    background: #1a3c6e;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo a {
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}
.sidebar-logo span { color: #f7a600; }

.sidebar-nav { padding: 16px 0; flex: 1; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-left-color: #f7a600;
}
.sidebar-nav .sidebar-divider {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 10px 16px;
}
.sidebar-nav .logout-link { color: #f87171 !important; }
.sidebar-nav .logout-link:hover { background: rgba(248,113,113,0.15) !important; }

/* ── MAIN AREA ── */
.admin-main {
    margin-left: 240px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── TOP BAR ── */
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 28px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.topbar-left { font-size: 17px; font-weight: 700; color: #1a3c6e; }
.topbar-right { font-size: 13px; color: #64748b; }
.topbar-right strong { color: #1a3c6e; }

/* ── CONTENT ── */
.admin-content { padding: 28px; flex: 1; }

/* ── PAGE HEADER ── */
.admin-page-header {
    margin-bottom: 24px;
}
.admin-page-header h2 { font-size: 22px; color: #1a3c6e; font-weight: 700; }
.admin-page-header p  { color: #64748b; font-size: 13px; margin-top: 4px; }

/* ── STAT CARDS ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 22px;
    border-top: 4px solid #1a3c6e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card.blue   { border-top-color: #3b82f6; }
.stat-card.green  { border-top-color: #22c55e; }
.stat-card.amber  { border-top-color: #f7a600; }
.stat-card.red    { border-top-color: #ef4444; }
.stat-card.purple { border-top-color: #8b5cf6; }
.stat-card.teal   { border-top-color: #14b8a6; }

.stat-label { font-size: 12px; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 32px; font-weight: 800; color: #1a3c6e; margin: 6px 0 0; line-height: 1; }
.stat-sub   { font-size: 11px; color: #94a3b8; margin-top: 4px; }

/* ── CARDS ── */
.admin-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    overflow: hidden;
}
.admin-card-header {
    padding: 16px 22px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-card-header h4 { font-size: 15px; font-weight: 700; color: #1a3c6e; }
.admin-card-body { padding: 0; }

/* ── DASHBOARD 2-COL ── */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }

/* ── TABLES ── */
.admin-table-wrap { overflow-x: auto; }
table.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.admin-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: #f8fafc; }

/* ── BADGES ── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.badge-active    { background: #dcfce7; color: #15803d; }
.badge-inactive  { background: #fee2e2; color: #b91c1c; }
.badge-pending   { background: #fef9c3; color: #a16207; }
.badge-shortlist { background: #dbeafe; color: #1d4ed8; }
.badge-rejected  { background: #fee2e2; color: #b91c1c; }
.badge-hired     { background: #dcfce7; color: #15803d; }
.badge-seeker    { background: #ede9fe; color: #6d28d9; }
.badge-employer  { background: #dbeafe; color: #1d4ed8; }
.badge-fulltime  { background: #dcfce7; color: #15803d; }
.badge-parttime  { background: #fef9c3; color: #a16207; }
.badge-freelance { background: #ede9fe; color: #6d28d9; }

/* ── BUTTONS ── */
.btn-admin {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-admin-sm { padding: 4px 10px; font-size: 11px; }
.btn-primary  { background: #1a3c6e; color: #fff; }
.btn-primary:hover  { background: #15316e; }
.btn-success  { background: #22c55e; color: #fff; }
.btn-success:hover  { background: #16a34a; }
.btn-danger   { background: #ef4444; color: #fff; }
.btn-danger:hover   { background: #dc2626; }
.btn-warning  { background: #f7a600; color: #fff; }
.btn-warning:hover  { background: #d97706; }
.btn-secondary { background: #e2e8f0; color: #475569; }
.btn-secondary:hover { background: #cbd5e1; }

/* ── FILTER BAR ── */
.filter-bar {
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 18px;
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.filter-bar label { font-size: 12px; font-weight: 600; color: #64748b; display: block; margin-bottom: 5px; }
.filter-bar input,
.filter-bar select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    background: #f8fafc;
    min-width: 160px;
}
.filter-bar input:focus,
.filter-bar select:focus { outline: none; border-color: #1a3c6e; background: #fff; }

/* ── ADMIN LOGIN PAGE ── */
.admin-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a3c6e 0%, #0f2447 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.admin-login-card .login-logo {
    text-align: center;
    margin-bottom: 28px;
}
.admin-login-card .login-logo h1 {
    font-size: 26px;
    font-weight: 800;
    color: #1a3c6e;
}
.admin-login-card .login-logo h1 span { color: #f7a600; }
.admin-login-card .login-logo p {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}
.admin-login-card .form-group { margin-bottom: 18px; }
.admin-login-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.admin-login-card input[type=email],
.admin-login-card input[type=password] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    transition: border-color 0.2s;
}
.admin-login-card input:focus { outline: none; border-color: #1a3c6e; }
.btn-login-admin {
    width: 100%;
    padding: 13px;
    background: #1a3c6e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 6px;
}
.btn-login-admin:hover { background: #15316e; }
.login-back { text-align: center; margin-top: 18px; font-size: 13px; color: #94a3b8; }
.login-back a { color: #1a3c6e; text-decoration: none; font-weight: 600; }

.msg-error   { background: #fee2e2; color: #b91c1c; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; }
.msg-success { background: #dcfce7; color: #15803d; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; }

/* ── DROPDOWN IN TABLE ── */
.status-select {
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 12px;
    color: #374151;
    background: #fff;
}

/* ── EMPTY STATE ── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #94a3b8;
}
.empty-state p { font-size: 14px; margin-top: 8px; }
