/* =============================================================
   BANK INVENTAR — PREMIUM CORPORATE UI
   Override: loads after app.css, Bootstrap
   ============================================================= */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --pr-primary:      #2563EB;
    --pr-primary-dark: #1D4ED8;
    --pr-primary-light:#EFF6FF;
    --pr-navy:         #0F172A;
    --pr-accent:       #06B6D4;
    --pr-success:      #16A34A;
    --pr-warning:      #F59E0B;
    --pr-danger:       #DC2626;
    --pr-bg:           #F8FAFC;
    --pr-card:         #FFFFFF;
    --pr-border:       #E2E8F0;
    --pr-text:         #0F172A;
    --pr-text-muted:   #64748B;
    --pr-radius:       0.875rem;
    --pr-radius-sm:    0.5rem;
    --pr-shadow:       0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
    --pr-shadow-hover: 0 4px 12px rgba(37,99,235,.12), 0 8px 32px rgba(0,0,0,.08);
    --pr-shadow-card:  0 2px 8px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --sidebar-width:   260px;
    --sidebar-collapsed: 68px;
    --topbar-height:   64px;
}

/* ── Base ──────────────────────────────────────────────────── */
body {
    background: var(--pr-bg) !important;
    color: var(--pr-text) !important;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
    font-size: 0.9rem !important;
    -webkit-font-smoothing: antialiased;
}

/* ================================================================
   SIDEBAR — Premium
   ================================================================ */
.sidebar {
    background: var(--pr-card) !important;
    border-right: 1px solid var(--pr-border) !important;
    box-shadow: 2px 0 20px rgba(0,0,0,.05) !important;
    z-index: 1030 !important;
}

/* Logo header */
.sidebar-header {
    border-bottom: 1px solid var(--pr-border) !important;
    background: var(--pr-card) !important;
    padding: 0 !important;
}
.sidebar-header > div {
    padding: 1.1rem 1.25rem !important;
    gap: 0.75rem !important;
}

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--pr-primary), var(--pr-accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.sidebar-logo-icon .bi {
    color: #fff !important;
    font-size: 1.1rem;
}

.sidebar-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--pr-text) !important;
    line-height: 1.2;
}
.sidebar-title-sub {
    font-size: 0.68rem;
    color: var(--pr-text-muted);
    font-weight: 400;
    letter-spacing: .02em;
}

/* Group label */
.sidebar-group-label {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .09em !important;
    color: #94A3B8 !important;
    padding: 1rem 1.1rem 0.3rem !important;
}

/* Nav link */
.sidebar-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.7rem !important;
    padding: 0.6rem 0.85rem !important;
    margin: 0.1rem 0.65rem !important;
    border-radius: var(--pr-radius-sm) !important;
    color: var(--pr-text-muted) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.18s ease !important;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}
.sidebar-link:hover {
    background: var(--pr-primary-light) !important;
    color: var(--pr-primary) !important;
    transform: translateX(2px);
}
.sidebar-link.active {
    background: linear-gradient(135deg, var(--pr-primary), #3B82F6) !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(37,99,235,.35) !important;
}
.sidebar-link.active .sidebar-icon {
    color: #fff !important;
}
.sidebar-link.active:hover {
    transform: translateX(0) !important;
    background: linear-gradient(135deg, var(--pr-primary-dark), var(--pr-primary)) !important;
}

.sidebar-icon {
    font-size: 1rem !important;
    flex-shrink: 0 !important;
    width: 18px;
    text-align: center;
    color: inherit;
}

.sidebar-group { margin-bottom: 0.15rem !important; }

/* Submenu (collapse) */
.sidebar-sublink {
    padding-left: 2.4rem !important;
    font-size: 0.82rem !important;
    margin: 0.05rem 0.65rem !important;
}
.sidebar-sublink:not(.active) {
    color: #94A3B8 !important;
}
.sidebar-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
    font-size: 0.7rem !important;
}
.sidebar-link[aria-expanded="true"] .sidebar-chevron {
    transform: rotate(180deg);
}
.sidebar-submenu-wrapper .collapse {
    overflow: hidden;
}

/* sidebar footer branding */
.sidebar-footer {
    padding: 0.85rem 1.1rem;
    border-top: 1px solid var(--pr-border);
    margin-top: auto;
}
.sidebar-footer-text {
    font-size: 0.68rem;
    color: #94A3B8;
    text-align: center;
}

/* ================================================================
   TOPBAR — Premium Sticky
   ================================================================ */
.topbar {
    height: var(--topbar-height) !important;
    background: rgba(255,255,255,.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--pr-border) !important;
    box-shadow: 0 1px 0 var(--pr-border), 0 4px 16px rgba(0,0,0,.04) !important;
    padding: 0 1.5rem !important;
    z-index: 1020 !important;
}

/* Topbar toggle button */
.topbar .btn-light#sidebarToggle,
#sidebarToggle {
    background: transparent !important;
    border: none !important;
    color: var(--pr-text-muted) !important;
    border-radius: var(--pr-radius-sm) !important;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    transition: all 0.15s !important;
}
#sidebarToggle:hover {
    background: var(--pr-primary-light) !important;
    color: var(--pr-primary) !important;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.8rem !important;
    margin-bottom: 0 !important;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: #CBD5E1 !important;
    content: "/" !important;
}
.breadcrumb-item a {
    color: var(--pr-text-muted) !important;
    text-decoration: none !important;
    transition: color 0.15s !important;
}
.breadcrumb-item a:hover { color: var(--pr-primary) !important; }
.breadcrumb-item.active { color: var(--pr-text) !important; font-weight: 500; }

/* Topbar action buttons */
.topbar .btn-light {
    background: transparent !important;
    border: 1px solid var(--pr-border) !important;
    color: var(--pr-text-muted) !important;
    border-radius: 10px !important;
    transition: all 0.15s !important;
}
.topbar .btn-light:hover {
    background: var(--pr-primary-light) !important;
    border-color: var(--pr-primary) !important;
    color: var(--pr-primary) !important;
}

/* Notification dropdown */
.notification-dropdown {
    min-width: 320px !important;
    max-height: 420px !important;
    overflow-y: auto !important;
    border-radius: var(--pr-radius) !important;
    border: 1px solid var(--pr-border) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.12) !important;
    padding: 0.25rem 0 !important;
}
.notification-dropdown .dropdown-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--pr-text-muted);
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: 1px solid var(--pr-border);
    margin-bottom: 0.25rem;
}
.notification-dropdown .dropdown-item {
    border-radius: 6px !important;
    margin: 0.15rem 0.35rem !important;
    padding: 0.55rem 0.75rem !important;
    font-size: 0.825rem !important;
    transition: background 0.15s !important;
}

/* User dropdown */
.topbar .dropdown-menu {
    border-radius: var(--pr-radius) !important;
    border: 1px solid var(--pr-border) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.12) !important;
    padding: 0.35rem 0.35rem !important;
    min-width: 190px !important;
}
.topbar .dropdown-menu .dropdown-item {
    border-radius: var(--pr-radius-sm) !important;
    font-size: 0.875rem !important;
    padding: 0.55rem 0.85rem !important;
    color: var(--pr-text) !important;
    transition: all 0.15s !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}
.topbar .dropdown-menu .dropdown-item:hover {
    background: var(--pr-primary-light) !important;
    color: var(--pr-primary) !important;
}
.topbar .dropdown-menu .dropdown-item.text-danger:hover {
    background: #FEF2F2 !important;
    color: var(--pr-danger) !important;
}
.topbar .dropdown-divider {
    border-color: var(--pr-border) !important;
    margin: 0.25rem 0 !important;
}

/* Avatar */
.avatar-sm {
    background: linear-gradient(135deg, var(--pr-primary), var(--pr-accent)) !important;
    font-weight: 700 !important;
    letter-spacing: .02em !important;
    font-size: 0.75rem !important;
    box-shadow: 0 2px 6px rgba(37,99,235,.25) !important;
}

/* ================================================================
   CONTENT AREA
   ================================================================ */
.content-area {
    padding: 1.75rem 1.75rem !important;
    background: var(--pr-bg) !important;
}
.content-footer {
    border-top: 1px solid var(--pr-border) !important;
    background: var(--pr-card) !important;
    font-size: 0.78rem !important;
}

/* ================================================================
   CARDS — Premium
   ================================================================ */
.card {
    border: 1px solid var(--pr-border) !important;
    border-radius: var(--pr-radius) !important;
    box-shadow: var(--pr-shadow-card) !important;
    background: var(--pr-card) !important;
    transition: box-shadow 0.2s, transform 0.2s !important;
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--pr-shadow-hover) !important;
}
.hover-lift {
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}
.hover-lift:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--pr-shadow-hover) !important;
}
.card-header {
    background: var(--pr-card) !important;
    border-bottom: 1px solid var(--pr-border) !important;
    padding: 1rem 1.25rem !important;
    font-weight: 600 !important;
}
.card-header h5,
.card-header h6 {
    margin-bottom: 0 !important;
    color: var(--pr-text) !important;
}
.card-body {
    padding: 1.25rem !important;
}
.card-footer {
    background: #FAFBFC !important;
    border-top: 1px solid var(--pr-border) !important;
    padding: 0.75rem 1.25rem !important;
}

/* ================================================================
   STAT CARDS — Dashboard
   ================================================================ */
.stat-card {
    background: var(--pr-card) !important;
    border-radius: var(--pr-radius) !important;
    padding: 1.35rem 1.25rem !important;
    border: 1px solid var(--pr-border) !important;
    box-shadow: var(--pr-shadow-card) !important;
    transition: all 0.22s ease !important;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--pr-radius) var(--pr-radius) 0 0;
    background: linear-gradient(90deg, var(--pr-primary), var(--pr-accent));
}
.stat-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--pr-shadow-hover) !important;
}
.stat-card.stat-primary::before   { background: linear-gradient(90deg, #2563EB, #3B82F6); }
.stat-card.stat-secondary::before { background: linear-gradient(90deg, #64748B, #94A3B8); }
.stat-card.stat-success::before   { background: linear-gradient(90deg, #16A34A, #22C55E); }
.stat-card.stat-warning::before   { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.stat-card.stat-info::before      { background: linear-gradient(90deg, #06B6D4, #22D3EE); }
.stat-card.stat-danger::before    { background: linear-gradient(90deg, #DC2626, #EF4444); }

.stat-icon {
    font-size: 1.75rem !important;
    margin-bottom: 0.5rem !important;
    opacity: 0.85;
}
.stat-value {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: var(--pr-text) !important;
    line-height: 1.1 !important;
    letter-spacing: -.02em !important;
}
.stat-label {
    font-size: 0.78rem !important;
    color: var(--pr-text-muted) !important;
    margin-top: 0.2rem !important;
    font-weight: 500 !important;
}

/* Legacy stat cards with border-start */
.stat-card.border-start {
    border-left-width: 4px !important;
}
.stat-card.border-start::before { display: none; }

/* ================================================================
   TABLES — Premium
   ================================================================ */
.table {
    font-size: 0.875rem !important;
    color: var(--pr-text) !important;
    margin-bottom: 0 !important;
}
.table thead th {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    color: var(--pr-text-muted) !important;
    background: #F8FAFC !important;
    border-bottom: 1px solid var(--pr-border) !important;
    padding: 0.75rem 1rem !important;
    white-space: nowrap;
}
.table td {
    padding: 0.8rem 1rem !important;
    border-bottom: 1px solid #F1F5F9 !important;
    vertical-align: middle !important;
}
.table tbody tr:last-child td { border-bottom: none !important; }
.table-hover tbody tr {
    transition: background 0.12s !important;
}
.table-hover tbody tr:hover {
    background: #F0F7FF !important;
}
.table-light {
    --bs-table-bg: #F8FAFC !important;
    --bs-table-striped-bg: #F1F5F9 !important;
}
.table-responsive {
    border-radius: 0 0 var(--pr-radius) var(--pr-radius);
    overflow: hidden;
}

/* ================================================================
   BUTTONS — Premium
   ================================================================ */
.btn {
    font-weight: 500 !important;
    letter-spacing: .01em !important;
    border-radius: var(--pr-radius-sm) !important;
    transition: all 0.18s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
}
.btn-primary {
    background: linear-gradient(135deg, var(--pr-primary) 0%, #3B82F6 100%) !important;
    border-color: var(--pr-primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(37,99,235,.3) !important;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--pr-primary-dark) 0%, var(--pr-primary) 100%) !important;
    border-color: var(--pr-primary-dark) !important;
    box-shadow: 0 4px 12px rgba(37,99,235,.4) !important;
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0) !important; }

.btn-outline-primary {
    color: var(--pr-primary) !important;
    border-color: var(--pr-primary) !important;
    background: transparent !important;
}
.btn-outline-primary:hover {
    background: var(--pr-primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(37,99,235,.25) !important;
}

.btn-light {
    background: #F8FAFC !important;
    border-color: var(--pr-border) !important;
    color: var(--pr-text-muted) !important;
}
.btn-light:hover {
    background: var(--pr-primary-light) !important;
    border-color: var(--pr-primary) !important;
    color: var(--pr-primary) !important;
}

.btn-success {
    background: linear-gradient(135deg, var(--pr-success), #22C55E) !important;
    border-color: var(--pr-success) !important;
    box-shadow: 0 2px 6px rgba(22,163,74,.25) !important;
}
.btn-success:hover {
    box-shadow: 0 4px 12px rgba(22,163,74,.35) !important;
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--pr-danger), #EF4444) !important;
    border-color: var(--pr-danger) !important;
    box-shadow: 0 2px 6px rgba(220,38,38,.25) !important;
}
.btn-danger:hover {
    box-shadow: 0 4px 12px rgba(220,38,38,.35) !important;
    transform: translateY(-1px);
}

.btn-outline-danger {
    color: var(--pr-danger) !important;
    border-color: var(--pr-danger) !important;
    background: transparent !important;
}
.btn-outline-danger:hover {
    background: var(--pr-danger) !important;
    color: #fff !important;
}

.btn-outline-secondary {
    color: var(--pr-text-muted) !important;
    border-color: var(--pr-border) !important;
    background: transparent !important;
}
.btn-outline-secondary:hover {
    background: #F8FAFC !important;
    color: var(--pr-text) !important;
    border-color: #94A3B8 !important;
}

.btn-outline-info {
    color: var(--pr-accent) !important;
    border-color: var(--pr-accent) !important;
}
.btn-outline-info:hover {
    background: var(--pr-accent) !important;
    color: #fff !important;
}

/* Button group */
.btn-group .btn {
    border-radius: 0 !important;
}
.btn-group .btn:first-child { border-radius: var(--pr-radius-sm) 0 0 var(--pr-radius-sm) !important; }
.btn-group .btn:last-child  { border-radius: 0 var(--pr-radius-sm) var(--pr-radius-sm) 0 !important; }
.btn-group .btn:only-child  { border-radius: var(--pr-radius-sm) !important; }

/* ================================================================
   BADGES — Premium Status
   ================================================================ */
.badge {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    padding: 0.32em 0.65em !important;
    border-radius: 100px !important;
    letter-spacing: .02em !important;
}
.badge.bg-success,
.badge.bg-success-subtle { background-color: #DCFCE7 !important; color: #15803D !important; }
.badge.bg-secondary-subtle,
.badge.bg-secondary { background-color: #F1F5F9 !important; color: #475569 !important; }
.badge.bg-warning,
.badge.bg-warning-subtle { background-color: #FEF3C7 !important; color: #B45309 !important; }
.badge.bg-danger,
.badge.bg-danger-subtle { background-color: #FEE2E2 !important; color: #B91C1C !important; }
.badge.bg-primary,
.badge.bg-primary-subtle { background-color: #DBEAFE !important; color: #1D4ED8 !important; }
.badge.bg-info,
.badge.bg-info-subtle { background-color: #CFFAFE !important; color: #0E7490 !important; }
.badge.bg-dark  { background-color: #1E293B !important; color: #F1F5F9 !important; }
.badge.bg-light { background-color: #F8FAFC !important; color: var(--pr-text-muted) !important; border: 1px solid var(--pr-border) !important; }

/* Status badges specific */
.badge-status-assigned { background: #DCFCE7 !important; color: #15803D !important; }
.badge-status-warehouse { background: #F1F5F9 !important; color: #475569 !important; }
.badge-status-pending   { background: #FEF3C7 !important; color: #B45309 !important; }
.badge-status-approved  { background: #DCFCE7 !important; color: #15803D !important; }
.badge-status-rejected  { background: #FEE2E2 !important; color: #B91C1C !important; }

/* ================================================================
   FORMS — Premium
   ================================================================ */
.form-control,
.form-select {
    border: 1.5px solid var(--pr-border) !important;
    border-radius: var(--pr-radius-sm) !important;
    color: var(--pr-text) !important;
    background: #fff !important;
    font-size: 0.875rem !important;
    padding: 0.5rem 0.875rem !important;
    transition: all 0.18s ease !important;
    box-shadow: none !important;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--pr-primary) !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
    outline: none !important;
}
.form-control::placeholder { color: #94A3B8 !important; }
.form-control:hover:not(:focus),
.form-select:hover:not(:focus) {
    border-color: #CBD5E1 !important;
}

.form-label {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: var(--pr-text) !important;
    margin-bottom: 0.4rem !important;
}
.form-label .text-danger { color: var(--pr-danger) !important; }

.form-text {
    font-size: 0.77rem !important;
    color: var(--pr-text-muted) !important;
    margin-top: 0.3rem !important;
}

textarea.form-control {
    min-height: 90px !important;
    resize: vertical !important;
}

.form-check-input {
    border: 1.5px solid var(--pr-border) !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
}
.form-check-input:checked {
    background-color: var(--pr-primary) !important;
    border-color: var(--pr-primary) !important;
    box-shadow: 0 0 0 2px rgba(37,99,235,.2) !important;
}
.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(37,99,235,.15) !important;
}

/* Input group */
.input-group .form-control { border-radius: 0 !important; }
.input-group .btn:first-child { border-radius: var(--pr-radius-sm) 0 0 var(--pr-radius-sm) !important; }
.input-group .btn:last-child  { border-radius: 0 var(--pr-radius-sm) var(--pr-radius-sm) 0 !important; }
.input-group > :first-child   { border-radius: var(--pr-radius-sm) 0 0 var(--pr-radius-sm) !important; }
.input-group > :last-child    { border-radius: 0 var(--pr-radius-sm) var(--pr-radius-sm) 0 !important; }

/* ================================================================
   ALERTS
   ================================================================ */
.alert {
    border-radius: var(--pr-radius-sm) !important;
    border-width: 1px !important;
    font-size: 0.875rem !important;
    padding: 0.85rem 1.1rem !important;
}
.alert-success {
    background: #F0FDF4 !important;
    border-color: #BBF7D0 !important;
    color: #14532D !important;
}
.alert-danger {
    background: #FFF1F2 !important;
    border-color: #FECDD3 !important;
    color: #881337 !important;
}
.alert-warning {
    background: #FFFBEB !important;
    border-color: #FDE68A !important;
    color: #78350F !important;
}
.alert-info {
    background: #F0FDFF !important;
    border-color: #A5F3FC !important;
    color: #164E63 !important;
}

/* ================================================================
   PAGINATION — Premium
   ================================================================ */
.pagination { gap: 0.2rem !important; }
.page-link {
    border-radius: var(--pr-radius-sm) !important;
    border: 1px solid var(--pr-border) !important;
    color: var(--pr-text-muted) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    padding: 0.35rem 0.7rem !important;
    transition: all 0.15s !important;
    background: var(--pr-card) !important;
}
.page-link:hover {
    background: var(--pr-primary-light) !important;
    border-color: var(--pr-primary) !important;
    color: var(--pr-primary) !important;
}
.page-item.active .page-link {
    background: var(--pr-primary) !important;
    border-color: var(--pr-primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(37,99,235,.3) !important;
}
.page-item.disabled .page-link {
    opacity: 0.45 !important;
}

/* ================================================================
   MODALS — Premium
   ================================================================ */
.modal-content {
    border: none !important;
    border-radius: var(--pr-radius) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.2) !important;
    overflow: hidden !important;
}
.modal-header {
    border-bottom: 1px solid var(--pr-border) !important;
    padding: 1rem 1.25rem !important;
}
.modal-footer {
    border-top: 1px solid var(--pr-border) !important;
    padding: 0.85rem 1.25rem !important;
    background: #FAFBFC !important;
}
.modal-backdrop { backdrop-filter: blur(3px) !important; }

/* ================================================================
   DROPDOWNS
   ================================================================ */
.dropdown-menu {
    border-radius: var(--pr-radius) !important;
    border: 1px solid var(--pr-border) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.1) !important;
    padding: 0.35rem !important;
    font-size: 0.875rem !important;
}
.dropdown-item {
    border-radius: 6px !important;
    padding: 0.5rem 0.85rem !important;
    color: var(--pr-text) !important;
    transition: background 0.12s !important;
}
.dropdown-item:hover {
    background: var(--pr-primary-light) !important;
    color: var(--pr-primary) !important;
}
.dropdown-divider { border-color: var(--pr-border) !important; margin: 0.25rem 0 !important; }

/* ================================================================
   LIST GROUP
   ================================================================ */
.list-group-item {
    border-color: var(--pr-border) !important;
    color: var(--pr-text) !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1.1rem !important;
}
.list-group-item-action {
    transition: all 0.15s !important;
}
.list-group-item-action:hover {
    background: var(--pr-primary-light) !important;
    color: var(--pr-primary) !important;
}

/* ================================================================
   DASHBOARD PAGE TITLE
   ================================================================ */
.page-title-wrapper {
    margin-bottom: 1.5rem;
}
.page-title {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: var(--pr-text) !important;
    margin-bottom: 0.1rem !important;
}
.page-subtitle {
    font-size: 0.82rem !important;
    color: var(--pr-text-muted) !important;
}

/* H4 default page headers */
h4 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--pr-text) !important;
}
h5 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--pr-text) !important;
}
h6 {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--pr-text) !important;
}

/* ================================================================
   TIMELINE (inventory/show)
   ================================================================ */
.timeline-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--pr-primary), var(--pr-accent)) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    box-shadow: 0 2px 8px rgba(37,99,235,.25) !important;
    flex-shrink: 0;
}
.timeline-icon i,
.timeline-icon svg {
    color: #fff !important;
}
.action-badge {
    background: linear-gradient(135deg, var(--pr-primary), #3B82F6) !important;
    color: #fff !important;
    padding: 4px 12px !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    display: inline-block !important;
    letter-spacing: .01em !important;
}

/* ================================================================
   TRANSFER STATUS BADGES
   ================================================================ */
.transfer-badge-pending  { background: #FEF3C7 !important; color: #B45309 !important; }
.transfer-badge-approved { background: #DCFCE7 !important; color: #15803D !important; }
.transfer-badge-rejected { background: #FEE2E2 !important; color: #B91C1C !important; }

/* ================================================================
   CODE & MONOSPACE
   ================================================================ */
code {
    background: #F1F5F9 !important;
    border: 1px solid var(--pr-border) !important;
    border-radius: 4px !important;
    padding: 0.15em 0.4em !important;
    font-size: 0.85em !important;
    color: #1D4ED8 !important;
}

/* ================================================================
   INVENTORY SHOW — Detail value grid
   ================================================================ */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.detail-item-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--pr-text-muted);
    margin-bottom: 0.2rem;
}
.detail-item-value {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--pr-text);
}

/* ================================================================
   FILTER CARD
   ================================================================ */
.filter-card {
    background: var(--pr-card) !important;
    border: 1px solid var(--pr-border) !important;
    border-radius: var(--pr-radius) !important;
    padding: 1rem 1.25rem !important;
    margin-bottom: 1rem !important;
    box-shadow: var(--pr-shadow-card) !important;
}

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
    text-align: center;
    padding: 3rem 2rem !important;
    color: var(--pr-text-muted) !important;
}
.empty-state .empty-icon {
    font-size: 3rem;
    opacity: 0.2;
    display: block;
    margin-bottom: 0.75rem;
}

/* ================================================================
   SPINNER
   ================================================================ */
.spinner-border {
    color: var(--pr-primary) !important;
}

/* ================================================================
   MAIN WRAPPER
   ================================================================ */
.main-wrapper {
    background: var(--pr-bg) !important;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991.98px) {
    .content-area {
        padding: 1rem !important;
    }
    .topbar {
        padding: 0 1rem !important;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .stat-value {
        font-size: 1.4rem !important;
    }
    .card-body {
        padding: 1rem !important;
    }
    .btn-group .btn {
        padding: 0.35rem 0.5rem !important;
    }
    .table td, .table th {
        padding: 0.6rem 0.75rem !important;
    }
}

/* ================================================================
   LOGIN PAGE — Fullscreen Video Premium
   ================================================================ */

/* Body override login uchun */
body.login-fullscreen-body {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #0F172A !important;
    min-height: 100vh;
}

/* Fon konteyneri */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.login-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.login-bg-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #0F172A 100%);
}

.login-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.45);
}

/* Asosiy layout */
.login-layout {
    position: relative;
    z-index: 10;
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* CHAP qism — 65% */
.login-left {
    flex: 0 0 65%;
    width: 65%;
    display: flex;
    align-items: center;
    padding: 3rem 4rem;
}

.login-left-content {
    max-width: 560px;
}

.login-brand {
    margin-bottom: 2.5rem;
}

.login-brand-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2563EB, #06B6D4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,99,235,0.4);
}

.login-brand-icon .bi {
    font-size: 2rem;
    color: #fff;
}

.login-hero-title {
    font-size: 56px !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 1.25rem !important;
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.login-hero-title span {
    color: #06B6D4;
    display: block;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-top: 0.15em;
}

.login-hero-subtitle {
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.7 !important;
    margin-bottom: 2rem !important;
    font-weight: 400 !important;
}

.login-features {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
}

.login-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.login-feature-check {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #2563EB, #06B6D4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37,99,235,0.35);
    line-height: 24px;
    text-align: center;
}

.login-copyright {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    font-weight: 400;
}

/* O'NG qism — 35% */
.login-right {
    flex: 0 0 35%;
    width: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem;
}

/* Glassmorphism card */
.login-card-glass {
    width: 420px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.2);
}

.login-card-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.login-logo-img {
    max-width: 120px;
    max-height: 70px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.login-logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2563EB, #06B6D4);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,99,235,0.4);
}

.login-logo-icon .bi {
    font-size: 1.75rem;
    color: #fff;
}

.login-card-title {
    text-align: center;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin-bottom: 1.75rem !important;
    letter-spacing: 0.01em;
}

/* Form elementlari */
.login-form-group {
    margin-bottom: 1.1rem;
}

.login-form-label {
    display: block;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 0.4rem;
}

.login-form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.login-form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-form-input:focus {
    border-color: #2563EB;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.login-input-group {
    position: relative;
    display: flex;
}

.login-input-group .login-form-input {
    padding-right: 2.75rem;
    border-radius: 10px;
}

.login-eye-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.login-eye-btn:hover {
    color: #fff;
}

/* Kirish tugmasi */
.login-submit-btn {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.22s ease;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    letter-spacing: 0.02em;
}

.login-submit-btn:hover {
    background: linear-gradient(135deg, #1D4ED8 0%, #0891B2 100%);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.55);
    transform: translateY(-2px);
}

.login-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Alert override — glass uchun */
.login-card-glass .alert {
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    margin-bottom: 1rem;
}

.login-card-glass .alert-danger {
    background: rgba(220, 38, 38, 0.2) !important;
    border-color: rgba(220, 38, 38, 0.4) !important;
    color: #FCA5A5 !important;
}

.login-card-glass .alert-success {
    background: rgba(22, 163, 74, 0.2) !important;
    border-color: rgba(22, 163, 74, 0.4) !important;
    color: #86EFAC !important;
}

/* ── RESPONSIVE — Mobil ────────────────────────────────────── */
@media (max-width: 991.98px) {
    body.login-fullscreen-body {
        overflow-y: auto;
    }

    .login-layout {
        flex-direction: column;
        min-height: 100vh;
    }

    .login-left {
        flex: none;
        width: 100%;
        padding: 2.5rem 1.5rem 2rem;
        justify-content: center;
        text-align: center;
    }

    .login-left-content {
        max-width: 100%;
    }

    .login-brand {
        display: flex;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .login-hero-title {
        font-size: 36px !important;
    }

    .login-features {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        margin: 0 auto 2rem;
    }

    .login-right {
        flex: none;
        width: 100%;
        padding: 0 1rem 2.5rem;
        justify-content: center;
    }

    .login-card-glass {
        width: 100%;
        max-width: 440px;
    }
}

@media (max-width: 575.98px) {
    .login-hero-title {
        font-size: 28px !important;
    }

    .login-hero-subtitle {
        font-size: 0.9rem !important;
    }

    .login-left {
        padding: 2rem 1.25rem 1.5rem;
    }

    .login-card-glass {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }
}

/* ================================================================
   PRINT — Premium ko'rinish buzilmasin
   ================================================================ */
@media print {
    .sidebar,
    .topbar,
    .btn-print-bar,
    .btn,
    .alert,
    nav,
    .content-footer,
    .no-print {
        display: none !important;
    }
    .main-wrapper {
        margin-left: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
    }
    .content-area {
        padding: 0 !important;
    }
    .card {
        border: 1px solid #DEE2E6 !important;
        box-shadow: none !important;
        transform: none !important;
    }
    .card::before { display: none !important; }
    .stat-card::before { display: none !important; }
    body {
        background: #fff !important;
        font-size: 12px !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    /* premium.css print overrides actdan keyinroq bo'lsin */
    .act-page {
        box-shadow: none !important;
        border: none !important;
    }
}
