/* IT-Park Xodim Tizimi - Custom Styles */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --accent: #0ea5e9;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-active: #2563eb;
    --body-bg: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--body-bg);
    color: var(--text-main);
    margin: 0;
}

/* ===== AUTH PAGES ===== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    padding: 24px 16px;
    overflow-y: auto;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo .logo-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 32px;
    color: white;
}

.auth-logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
}

.auth-logo p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0 0;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.2s;
    background: #f8fafc;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.btn-primary-custom {
    background: var(--gradient);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    width: 100%;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-primary-custom:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-primary-custom:active { transform: translateY(0); }

.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
}

.lang-switcher .btn {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
}

/* ===== SIDEBAR LAYOUT ===== */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand .brand-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-bottom: 10px;
}

.sidebar-brand h2 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.sidebar-brand p {
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    margin: 3px 0 0;
}

.sidebar-nav {
    padding: 12px 0;
    flex: 1;
}

.nav-section {
    padding: 10px 16px 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.3);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    border-radius: 0;
}

.sidebar-nav a:hover {
    color: white;
    background: var(--sidebar-hover);
}

.sidebar-nav a.active {
    color: white;
    background: var(--sidebar-active);
}

.sidebar-nav a .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-nav a .badge-dot {
    margin-left: auto;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user .avatar {
    width: 38px;
    height: 38px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-user .user-info {
    flex: 1;
    overflow: hidden;
}

.sidebar-user .user-name {
    color: white;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user .user-role {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
}

.sidebar-user .logout-btn {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.2s;
}

.sidebar-user .logout-btn:hover { color: #ef4444; }

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 8px;
    min-height: 56px;
}

.topbar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.content-area {
    padding: 24px;
    flex: 1;
}

/* ===== CARDS ===== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-body { padding: 20px; }

/* Stats cards */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon.blue   { background: #dbeafe; color: #2563eb; }
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-icon.green  { background: #d1fae5; color: #059669; }
.stat-icon.orange { background: #fed7aa; color: #d97706; }
.stat-icon.red    { background: #fee2e2; color: #dc2626; }

.stat-info .stat-value {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
}

.stat-info .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== TABLE ===== */
.table { margin: 0; }

.table th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    padding: 12px 16px;
    background: #f8fafc;
}

.table td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.table tbody tr:hover { background: #f8fafc; }
.table tbody tr:last-child td { border-bottom: none; }

/* ===== BADGES ===== */
.badge {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s;
}

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }

.btn-primary {
    background: var(--gradient);
    border: none;
    color: white;
}
.btn-primary:hover { opacity: 0.9; color: white; }

.btn-outline-primary {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* ===== ALERT ===== */
.alert {
    border-radius: 12px;
    border: none;
    padding: 14px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: #d1fae5; color: #065f46; }
.alert-danger   { background: #fee2e2; color: #991b1b; }
.alert-warning  { background: #fef3c7; color: #92400e; }
.alert-info     { background: #dbeafe; color: #1e40af; }

/* ===== NOTIFICATIONS ===== */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    cursor: default;
}

.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #f8fafc; }
.notif-item.unread { background: #eff6ff; }
.notif-item.unread:hover { background: #dbeafe; }

.notif-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notif-text { flex: 1; }
.notif-text .notif-msg { font-size: 14px; color: var(--text-main); margin: 0 0 3px; }
.notif-text .notif-time { font-size: 12px; color: var(--text-muted); }
.notif-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; margin-top: 6px; flex-shrink: 0; }

/* ===== CHAT ===== */
.chat-layout {
    display: flex;
    gap: 0;
    height: calc(100vh - 130px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: white;
}

.chat-sidebar {
    width: 280px;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    flex-shrink: 0;
}

.chat-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 15px;
}

.chat-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.2s;
}

.chat-user-item:hover { background: #f8fafc; color: var(--text-main); }
.chat-user-item.active { background: #eff6ff; }

.chat-user-item .chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.chat-user-item .chat-name { font-size: 14px; font-weight: 600; }
.chat-user-item .chat-preview { font-size: 12px; color: var(--text-muted); }

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
}

.message-bubble {
    max-width: 65%;
    display: flex;
    flex-direction: column;
}

.message-bubble.sent { align-self: flex-end; align-items: flex-end; }
.message-bubble.received { align-self: flex-start; align-items: flex-start; }

.message-bubble .bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.message-bubble.sent .bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-bubble.received .bubble {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.message-bubble .msg-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 0 4px;
}

.chat-input-area {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    background: white;
}

.chat-input-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input-form textarea {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    resize: none;
    max-height: 100px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.chat-input-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-send-btn {
    background: var(--gradient);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover { opacity: 0.9; }

.chat-no-select {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-muted);
    gap: 12px;
}

/* ===== APPLICATION FORM ===== */
.form-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.form-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    background: white;
}

.checkbox-chip:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.checkbox-chip input[type="checkbox"] {
    display: none;
}

.checkbox-chip.checked {
    border-color: var(--primary);
    background: #eff6ff;
    color: var(--primary);
    font-weight: 600;
}

.lang-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
}

/* ===== STATUS TIMELINE ===== */
.status-timeline {
    position: relative;
    padding-left: 30px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--border);
}

.timeline-dot.active { background: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.timeline-dot.success { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.timeline-dot.danger { background: var(--danger); box-shadow: 0 0 0 2px var(--danger); }

.timeline-content .t-title { font-weight: 600; font-size: 14px; }
.timeline-content .t-time { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.timeline-content .t-note { font-size: 13px; color: var(--text-muted); margin-top: 5px; background: #f8fafc; padding: 8px 12px; border-radius: 8px; border-left: 3px solid var(--border); }

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-main);
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.hamburger:hover { background: var(--border); }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
    backdrop-filter: blur(2px);
}

/* ===== RESPONSIVE ===== */

/* ------ Tablet keng (≤ 1200px) ------ */
@media (max-width: 1200px) {
    .sidebar { width: 240px; }
    .main-content { margin-left: 240px; }
    .content-area { padding: 20px; }
}

/* ------ Tablet (≤ 992px) ------ */
@media (max-width: 992px) {
    .sidebar { width: 220px; }
    .main-content { margin-left: 220px; }
    .content-area { padding: 16px; }

    .chat-layout { height: calc(100vh - 120px); }
    .chat-sidebar { width: 220px; }

    .stat-info .stat-value { font-size: 24px; }
    .sidebar-brand h2 { font-size: 13px; }
    .sidebar-nav a { padding: 10px 16px; font-size: 13px; }
}

/* ------ Mobile (≤ 768px) ------ */
@media (max-width: 768px) {
    /* Sidebar: chiqib-kirish */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 1000;
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }
    .main-content { margin-left: 0; min-height: 100vh; }
    .hamburger { display: flex; align-items: center; }

    /* Topbar */
    .topbar { padding: 10px 14px; gap: 8px; }
    .topbar-title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45vw; }
    .topbar-right { gap: 6px; flex-shrink: 0; }
    .topbar-right .btn { padding: 5px 9px; font-size: 12px; }
    .topbar-right .btn .me-1,
    .topbar-right .btn .me-2 { display: none; } /* icon only on mobile */
    .topbar-right .btn-hide-text span { display: none; }

    /* Content */
    .content-area { padding: 12px; }

    /* Auth */
    .lang-switcher { position: fixed; top: 12px; right: 12px; z-index: 9999; }
    .auth-wrapper { align-items: flex-start; padding: 70px 16px 24px; }
    .auth-card { padding: 28px 20px; border-radius: 16px; }

    /* Stats grid */
    .stat-card { padding: 14px 12px; gap: 10px; }
    .stat-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
    .stat-info .stat-value { font-size: 22px; }
    .stat-info .stat-label { font-size: 12px; }

    /* Tables */
    .table th, .table td { padding: 10px 10px; font-size: 12px; }
    .table-compact th, .table-compact td { padding: 8px 8px; font-size: 12px; }

    /* Chat */
    .chat-layout { height: calc(100vh - 104px); border-radius: 0; border-left: none; border-right: none; }
    .chat-sidebar { display: none; }
    .message-bubble { max-width: 80%; }

    /* Form sections */
    .form-section { padding: 16px; margin-bottom: 14px; }
    .form-section-title { font-size: 13px; flex-wrap: wrap; gap: 6px; }

    /* Notifications */
    .notif-item { padding: 12px 14px; gap: 10px; }
    .notif-icon { width: 34px; height: 34px; font-size: 14px; }

    /* Interview box */
    .interview-box { padding: 12px 14px; gap: 10px; }
    .interview-box .int-datetime { font-size: 16px; }

    /* App status card */
    .app-status-card { padding: 14px 16px; }

    /* lang-row (form) */
    .lang-row { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }

    /* Page header */
    .page-header { flex-direction: column; gap: 10px; align-items: flex-start; }
    .page-header h2 { font-size: 18px; }

    /* Sidebar brand */
    .sidebar-brand { padding: 20px 16px 16px; }
    .sidebar-brand h2 { font-size: 13px; }
    .sidebar-nav a { padding: 11px 18px; font-size: 13px; }
}

/* ------ Kichik telefon (≤ 575px) ------ */
@media (max-width: 575px) {
    .topbar-title { max-width: 38vw; font-size: 15px; }
    .content-area { padding: 10px; }

    /* Auth */
    .auth-card { padding: 24px 16px; }
    .auth-logo .logo-icon { width: 60px; height: 60px; font-size: 26px; border-radius: 14px; }
    .auth-logo h1 { font-size: 16px; }
    .auth-logo p { font-size: 12px; }
    .auth-title { font-size: 19px; margin-bottom: 18px; }

    /* Stats */
    .stat-card { padding: 12px 10px; gap: 8px; }
    .stat-icon { width: 40px; height: 40px; font-size: 16px; border-radius: 10px; }
    .stat-info .stat-value { font-size: 20px; }

    /* Cards */
    .card-header { padding: 12px 14px; font-size: 13px; flex-wrap: wrap; gap: 6px; }
    .card-body { padding: 14px; }

    /* Buttons */
    .btn-lg { padding: 10px 18px; font-size: 14px; }
    .btn-sm { padding: 4px 8px; font-size: 11px; }

    /* Tables */
    .table th { font-size: 11px; padding: 8px 8px; }
    .table td { font-size: 12px; padding: 9px 8px; }

    /* Form */
    .form-section { padding: 14px 12px; }
    .form-section-title { font-size: 12px; padding-bottom: 10px; margin-bottom: 12px; }
    .form-control, .form-select { font-size: 14px; padding: 9px 12px; }
    .checkbox-chip { padding: 6px 10px; font-size: 12px; }

    /* Chat */
    .chat-header { padding: 10px 14px; }
    .chat-messages { padding: 12px; gap: 8px; }
    .message-bubble { max-width: 85%; }
    .message-bubble .bubble { padding: 8px 12px; font-size: 13px; }
    .chat-input-area { padding: 10px 12px; }
    .chat-send-btn { width: 38px; height: 38px; }

    /* Notifications */
    .notif-item { padding: 10px 12px; }

    /* Interview */
    .interview-box { flex-direction: column; gap: 6px; }
    .interview-box .int-datetime { font-size: 15px; }

    /* app status card */
    .app-status-card { padding: 12px; }
    .app-status-card .d-flex.gap-2 { gap: 6px !important; }

    /* Empty state */
    .empty-state { padding: 40px 16px; }
    .empty-state .empty-icon { font-size: 44px; }
    .empty-state p { font-size: 14px; }

    /* Timeline */
    .status-timeline { padding-left: 24px; }

    /* Topbar right buttons — icon only */
    .topbar-right .btn .fa-arrow-left ~ * { display: none; }

    /* Lang-row in form */
    .lang-row { grid-template-columns: 1fr; }

    /* Admin topbar badge + back button */
    .topbar-right { gap: 4px; }
    .topbar-right .badge { display: none; }
}

/* ------ Juda kichik telefon (≤ 400px) ------ */
@media (max-width: 400px) {
    .topbar { padding: 8px 10px; }
    .topbar-title { max-width: 32vw; font-size: 14px; }
    .topbar-right .btn { padding: 4px 7px; font-size: 11px; }
    .content-area { padding: 8px; }

    .auth-wrapper { padding: 60px 10px 16px; }
    .auth-card { padding: 20px 14px; border-radius: 14px; }
    .auth-logo h1 { font-size: 14px; }

    .stat-card { padding: 10px 8px; }
    .stat-icon { width: 36px; height: 36px; font-size: 15px; }
    .stat-info .stat-value { font-size: 18px; }
    .stat-info .stat-label { font-size: 10px; }

    .card-header { padding: 10px 12px; font-size: 12px; }

    .form-section { padding: 12px; }
    .form-control, .form-select { padding: 8px 10px; font-size: 13px; border-radius: 8px; }

    .sidebar-nav a { padding: 10px 14px; font-size: 12px; gap: 8px; }
    .sidebar-brand .brand-icon { width: 36px; height: 36px; font-size: 16px; }
    .sidebar-brand h2 { font-size: 12px; }
    .sidebar-user .avatar { width: 32px; height: 32px; font-size: 12px; }
    .sidebar-user .user-name { font-size: 12px; }

    .message-bubble { max-width: 90%; }
    .message-bubble .bubble { font-size: 12px; padding: 7px 10px; }

    .interview-box .int-datetime { font-size: 14px; }

    .badge { font-size: 10px; padding: 3px 7px; }
}

/* ------ Katta ekran (≥ 1400px) ------ */
@media (min-width: 1400px) {
    .sidebar { width: 275px; }
    .main-content { margin-left: 275px; }
    .content-area { padding: 28px 32px; }
    .topbar { padding: 14px 28px; }
    .sidebar-nav a { padding: 12px 22px; }
    .sidebar-brand { padding: 26px 22px 20px; }
    .stat-info .stat-value { font-size: 30px; }
    .stat-icon { width: 56px; height: 56px; font-size: 24px; }
    .chat-layout { height: calc(100vh - 140px); }
}

/* ------ Juda katta ekran (≥ 1920px) ------ */
@media (min-width: 1920px) {
    .sidebar { width: 300px; }
    .main-content { margin-left: 300px; }
    .content-area { padding: 36px 48px; }
    .topbar { padding: 16px 36px; }
    .topbar-title { font-size: 22px; }
    body { font-size: 15px; }

    .form-control, .form-select { font-size: 15px; padding: 12px 16px; }
    .btn { font-size: 15px; padding: 9px 18px; }
    .btn-sm { padding: 6px 12px; font-size: 13px; }
    .btn-lg { padding: 14px 28px; font-size: 16px; }

    .stat-info .stat-value { font-size: 34px; }
    .stat-icon { width: 62px; height: 62px; font-size: 28px; }
    .stat-info .stat-label { font-size: 14px; }

    .table th { font-size: 13px; padding: 14px 18px; }
    .table td { font-size: 15px; padding: 16px 18px; }
    .table-compact th, .table-compact td { padding: 12px 16px; font-size: 14px; }

    .card-header { font-size: 17px; padding: 20px 26px; }
    .card-body { padding: 24px; }

    .sidebar-nav a { padding: 13px 24px; font-size: 15px; }
    .sidebar-brand h2 { font-size: 16px; }
    .sidebar-brand p { font-size: 12px; }
    .sidebar-user .user-name { font-size: 14px; }

    .auth-card { max-width: 500px; padding: 48px 44px; }
    .auth-logo .logo-icon { width: 80px; height: 80px; font-size: 36px; }
    .auth-logo h1 { font-size: 22px; }
    .auth-title { font-size: 26px; }

    .notif-item { padding: 16px 22px; }
    .notif-icon { width: 42px; height: 42px; font-size: 18px; }
    .notif-text .notif-msg { font-size: 15px; }
    .notif-text .notif-time { font-size: 13px; }

    .message-bubble .bubble { font-size: 15px; padding: 12px 16px; }
    .chat-header { padding: 16px 24px; }
    .chat-messages { padding: 24px; gap: 16px; }
    .chat-input-area { padding: 16px 20px; }
    .chat-send-btn { width: 50px; height: 50px; font-size: 20px; }
    .chat-layout { height: calc(100vh - 150px); }
    .chat-sidebar { width: 320px; }

    .form-section { padding: 28px 32px; margin-bottom: 24px; }
    .form-section-title { font-size: 16px; margin-bottom: 22px; }
    .checkbox-chip { padding: 9px 16px; font-size: 14px; }

    .interview-box { padding: 18px 20px; }
    .interview-box .int-datetime { font-size: 22px; }

    .app-status-card { padding: 22px 24px; }
    .detail-label { font-size: 13px; }
    .detail-value { font-size: 15px; }
    .empty-state { padding: 80px 32px; }
    .empty-state .empty-icon { font-size: 70px; }
    .empty-state p { font-size: 17px; }
}

/* ------ Ultra keng ekran (≥ 2560px) ------ */
@media (min-width: 2560px) {
    .sidebar { width: 320px; }
    .main-content { margin-left: 320px; }
    .content-area { padding: 48px 72px; }
    body { font-size: 16px; }
    .topbar-title { font-size: 26px; }
    .stat-info .stat-value { font-size: 40px; }
    .stat-icon { width: 72px; height: 72px; font-size: 32px; }
    .sidebar-nav a { font-size: 16px; padding: 15px 28px; }
    .table td { font-size: 16px; }
    .btn { font-size: 16px; }
}

/* ===== MISC ===== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p { font-size: 15px; margin: 0 0 20px; }

.cv-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.cv-badge:hover { background: #dbeafe; color: var(--primary-dark); }

.detail-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-value {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
}

.scrollbar-thin::-webkit-scrollbar { width: 4px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Custom select */
select.form-select option { padding: 6px; }

/* Tooltip */
[title] { cursor: help; }

/* Compact table for admin */
.table-compact th, .table-compact td { padding: 10px 12px; font-size: 13px; }

/* App status card */
.app-status-card {
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    background: white;
    transition: box-shadow 0.2s;
}
.app-status-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

.app-status-card .app-num { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.app-status-card .app-date { font-size: 12px; color: var(--text-muted); }

.interview-box {
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.interview-box .int-icon {
    font-size: 28px;
}

.interview-box .int-info .int-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.interview-box .int-info .int-datetime {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}
