/* ═══════════════════════════════════════════
   ISH BOR — O'zbekiston №1 ish platformasi
   ═══════════════════════════════════════════ */

:root {
    --rang-asosiy: #1B6CA8;
    --rang-ikkinchi: #2ECC71;
    --rang-fon: #F0F4F8;
    --rang-karta: #FFFFFF;
    --rang-matn: #1A202C;
    --rang-chegara: #E2E8F0;
}

/* ─── Global ─── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--rang-matn);
    background-color: var(--rang-fon);
}

a {
    color: var(--rang-asosiy);
    transition: color 0.2s;
}

a:hover {
    color: #145080;
}

.min-vh-75 {
    min-height: 75vh;
}

/* ─── Navbar ─── */
#main-navbar {
    transition: box-shadow 0.3s ease;
    border-bottom: 1px solid var(--rang-chegara);
}

#main-navbar.shadow {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
}

.brand-name {
    font-size: 1.4rem;
    color: var(--rang-asosiy);
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 0.65rem;
    letter-spacing: 0.3px;
    line-height: 1;
    margin-top: -2px;
}

.brand-logo i {
    font-size: 1.6rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
}

.main-nav-actions {
    gap: 0.6rem;
}

.main-nav-actions .nav-item {
    display: flex;
    align-items: center;
}

.nav-action-link {
    min-width: 146px;
    min-height: 50px;
    border: 1px solid rgba(27, 108, 168, 0.14);
    border-radius: 8px;
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.8rem !important;
    background: #FFFFFF;
    color: var(--rang-matn) !important;
    box-shadow: 0 6px 18px rgba(26, 32, 44, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.nav-action-link:hover,
.nav-action-link.show {
    transform: translateY(-2px);
    border-color: rgba(27, 108, 168, 0.34);
    box-shadow: 0 12px 26px rgba(27, 108, 168, 0.12);
    background: #F8FBFD;
}

.nav-action-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    font-size: 1.05rem;
}

.nav-action-primary .nav-action-icon {
    color: #FFFFFF;
    background: var(--rang-asosiy);
}

.nav-action-secondary .nav-action-icon {
    color: #137044;
    background: rgba(46, 204, 113, 0.16);
}

.nav-action-title {
    display: block;
    line-height: 1.05;
    font-weight: 700;
}

.nav-action-link small {
    display: block;
    color: #64748B;
    font-size: 0.68rem;
    line-height: 1.1;
    margin-top: 0.12rem;
}

.nav-action-link.dropdown-toggle::after {
    margin-left: auto;
    color: #64748B;
}

.category-menu {
    width: 320px;
    padding: 0.75rem;
    border: 1px solid var(--rang-chegara);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(26, 32, 44, 0.14);
}

.category-menu-item {
    min-height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 600;
}

.category-menu-item span {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rang-asosiy);
    background: rgba(27, 108, 168, 0.1);
}

.category-menu-item:hover {
    background: #F0F7FC;
    color: var(--rang-asosiy);
}

.category-menu-all {
    border-radius: 8px;
    font-weight: 700;
    color: var(--rang-asosiy);
}

@media (max-width: 991.98px) {
    #main-navbar .navbar-collapse {
        overflow-x: hidden;
        padding-bottom: 0.75rem;
    }

    .main-nav-actions {
        margin: 1rem 0;
        width: 100%;
        gap: 0.5rem;
    }

    .main-nav-actions .nav-item {
        width: 100%;
        display: block;
    }

    .nav-action-link {
        width: 100%;
        min-width: 0;
    }

    .category-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
    }

    .category-menu .dropdown-item {
        white-space: normal;
    }

    .category-menu-item {
        width: 100%;
        align-items: flex-start;
        line-height: 1.25;
    }

    .category-menu-item span {
        flex: 0 0 30px;
    }
}

.notification-menu {
    width: min(360px, calc(100vw - 2rem));
    max-height: 420px;
    overflow-y: auto;
}

.notification-menu .dropdown-item {
    white-space: normal;
}

.notification-toggle {
    color: var(--rang-asosiy);
}

.notification-toggle .bi {
    font-size: 1.45rem;
    line-height: 1;
}

.notification-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    font-size: 1rem;
}

.notification-icon-primary {
    color: #1B6CA8;
    background: rgba(27, 108, 168, 0.12);
}

.notification-icon-success {
    color: #159A52;
    background: rgba(46, 204, 113, 0.14);
}

.notification-icon-danger {
    color: #C2413D;
    background: rgba(220, 53, 69, 0.12);
}

.profile-avatar-preview {
    object-fit: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar-preview:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.profile-avatar-panel {
    border: 1px solid var(--rang-chegara);
    border-radius: 8px;
    padding: 1rem;
    background: #F8FAFC;
}

.profile-file-panel {
    border: 1px solid var(--rang-chegara);
    border-radius: 8px;
    padding: 1rem;
    background: #F8FAFC;
}

.current-file-box {
    border: 1px solid rgba(27, 108, 168, 0.18);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    background: rgba(27, 108, 168, 0.06);
}

.remove-avatar-check {
    border: 1px solid rgba(220, 53, 69, 0.25);
    border-radius: 8px;
    padding: 0.55rem 0.75rem 0.55rem 2.25rem;
    background: rgba(220, 53, 69, 0.06);
}

.remove-file-check {
    border: 1px solid rgba(220, 53, 69, 0.25);
    border-radius: 8px;
    padding: 0.55rem 0.75rem 0.55rem 2.25rem;
    background: rgba(220, 53, 69, 0.06);
}

/* ─── Hero Section ─── */
.hero-section {
    background: linear-gradient(135deg, var(--rang-asosiy) 0%, #0D4A7A 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.hero-search .form-control,
.hero-search .form-select {
    border: none;
    height: 54px;
    font-size: 1rem;
}

.hero-search .btn {
    height: 54px;
    font-weight: 600;
}

/* ─── Stats ─── */
.stat-card {
    padding: 1.5rem;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* inline stat (dashboard) */
.card-body .stat-icon {
    margin: 0;
    flex-shrink: 0;
}

/* ─── Category Cards ─── */
.category-card .card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.category-icon {
    font-size: 2.2rem;
    color: var(--rang-asosiy);
}

/* ─── Job Card ─── */
.job-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

.job-card .card-title a:hover {
    color: var(--rang-asosiy) !important;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.maosh-text {
    color: var(--rang-ikkinchi);
    font-weight: 600;
}

/* ─── Avatar Placeholder ─── */
.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--rang-fon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--rang-asosiy);
}

/* ─── Saqlash Button ─── */
.saqlash-btn {
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.2s;
}

.saqlash-btn:hover {
    transform: scale(1.2);
}

.saqlash-btn.text-danger i {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ─── Job Description ─── */
.job-description {
    line-height: 1.8;
    color: #4A5568;
}

/* ─── Badges ─── */
.badge {
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.4em 0.8em;
}

/* ─── Filter Card ─── */
.card .form-label {
    font-size: 0.85rem;
    color: #4A5568;
}

/* ─── Table ─── */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #718096;
    border-top: none;
}

/* ─── Toast ─── */
.toast-custom {
    min-width: 250px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ─── Progress Bar ─── */
.progress {
    border-radius: 10px;
    background-color: #E2E8F0;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* ─── Footer ─── */
footer a:hover {
    color: white !important;
}

/* ─── Pagination ─── */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    border: none;
    color: var(--rang-matn);
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background-color: var(--rang-asosiy);
    color: white;
}

/* ─── Forms ─── */
.form-control:focus,
.form-select:focus {
    border-color: var(--rang-asosiy);
    box-shadow: 0 0 0 0.2rem rgba(27, 108, 168, 0.15);
}

/* ─── Buttons ─── */
.btn-primary {
    background-color: var(--rang-asosiy);
    border-color: var(--rang-asosiy);
}

.btn-primary:hover {
    background-color: #145080;
    border-color: #145080;
}

.btn-success {
    background-color: var(--rang-ikkinchi);
    border-color: var(--rang-ikkinchi);
}

.btn-outline-primary {
    color: var(--rang-asosiy);
    border-color: var(--rang-asosiy);
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background-color: var(--rang-asosiy);
    border-color: var(--rang-asosiy);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0 70px;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .brand-tagline {
        display: none !important;
    }

    .category-card .card {
        padding: 1rem !important;
    }

    .category-card h6 {
        font-size: 0.9rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .category-icon {
        font-size: 1.8rem;
    }

    .hero-search .form-control,
    .hero-search .form-select,
    .hero-search .btn {
        height: 46px;
    }
}
