:root{
  --navy:#172033;
  --navy-2:#202a3e;
  --orange:#f59e0b;
  --orange-2:#ffb020;
  --bg:#f5f7fb;
  --card:#ffffff;
  --text:#172033;
  --muted:#718096;
  --border:#e4e9f0;
  --success:#159447;
  --danger:#dc3545;
  --warning:#b7791f;
  --info:#2563eb;
  --shadow:0 10px 30px rgba(23,32,51,.08);
  --radius:18px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
.app-shell{display:flex;min-height:100vh}
.sidebar{width:270px;background:linear-gradient(180deg,#172033 0%,#202a3e 100%);color:#fff;position:fixed;inset:0 auto 0 0;z-index:20;overflow:auto}
 .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
}
.brand .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 9px;
}

.brand .brand-mark img {
    width: 27px;
    height: 27px;
}

/* Hover effect */
.brand-mark:hover {
    transform: translateY(-6px) scale(1.05);
    filter: drop-shadow(0 10px 20px rgba(255, 255, 255, 0.20));
}

.brand-mark:hover img {
    transform: rotate(-3deg) scale(1.04);
    filter: brightness(1.08);
}

/* Smooth floating animation */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .brand-mark {
        animation: none;
        transition: none;
    }

    .brand-mark img {
        transition: none;
    }
}
.brand h1{font-size:20px;margin:0}.brand small{display:block;color:#aab4c5;margin-top:3px}
.nav{padding:14px 12px}.nav-section{font-size:11px;color:#8f9bb0;text-transform:uppercase;letter-spacing:.12em;padding:14px 12px 7px}
.nav a,.nav button{width:100%;border:0;background:transparent;color:#dfe5ee;display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:12px;text-align:left;margin:2px 0}
.nav a:hover,.nav a.active,.nav button:hover{background:rgba(255,255,255,.09);color:#fff}
.nav .icon {
    width: 22px;
    height: 22px;
    min-width: 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #aeb8c9;
    opacity: 1;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.nav .icon svg {
    width: 19px;
    height: 19px;
    display: block;
}

.nav a:hover .icon,
.nav a.active .icon,
.nav button:hover .icon {
    color: #f59e0b;
}

.nav a:hover .icon,
.nav button:hover .icon {
    transform: scale(1.05);
}

.nav a.active .icon {
    color: #f59e0b;
}
.nav a.active {
    color: #ffffff;

    background: linear-gradient(
        135deg,
        #f59e0b,
        #6366f1
    );

    box-shadow:
        0 6px 18px rgba(79, 70, 229, 0.25);
}

.nav a.active .icon {
    color: #ffffff;
}
.main{margin-left:270px;width:calc(100% - 270px);min-width:0}
/* =========================================================
   MODERN REPO MASTER TOPBAR
   ========================================================= */

.topbar {
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 24px;

    position: sticky;
    top: 0;
    z-index: 100;

    background: linear-gradient(
        135deg,
        #f59e0b,
        #172033
    );

    border-bottom: 1px solid #e9edf3;

    box-shadow:
        0 2px 12px rgba(15, 23, 42, 0.04);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        box-shadow 0.25s ease,
        background 0.25s ease;
}


/* =========================================================
   TITLE
   ========================================================= */

.topbar-title {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 18px;
    font-weight: 750;

    letter-spacing: -0.3px;

    color: #ffffff;
}


/* Small accent beside title */

.topbar-title::before {
    content: "";

    width: 4px;
    height: 22px;

    border-radius: 999px;

    background: linear-gradient(
        180deg,
        #172033,
        #172033
    );
}


/* =========================================================
   ACTION AREA
   ========================================================= */

.topbar-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}


/* =========================================================
   TOPBAR BUTTONS
   ========================================================= */

.topbar-actions button {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #e5e9ef;

    border-radius: 10px;

    background: #ffffff;

    color: #5f6b7a;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.topbar-actions button:hover {
    color: #4f46e5;

    background: #f7f7ff;

    border-color: #d9dcff;

    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(79, 70, 229, 0.10);
}


.topbar-actions button:active {
    transform: translateY(0);
}


/* =========================================================
   TOPBAR ICON
   ========================================================= */

.topbar-actions svg {
    width: 18px;
    height: 18px;
}


/* =========================================================
   USER / PROFILE AREA
   ========================================================= */

.topbar-user {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 5px 9px 5px 5px;

    border: 1px solid #e7eaf0;

    border-radius: 12px;

    background: #ffffff;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.topbar-user:hover {
    background: #f8f9fc;

    border-color: #dfe3ea;

    box-shadow:
        0 5px 16px rgba(15, 23, 42, 0.07);
}


/* Avatar */

.topbar-user-avatar {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #4f46e5,
            #6366f1
        );

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
}


/* User name */

.topbar-user-name {
    font-size: 12px;

    font-weight: 650;

    color: #172033;
}


/* User role */

.topbar-user-role {
    display: block;

    margin-top: 1px;

    font-size: 10px;

    color: #8a94a6;
}


/* =========================================================
   NOTIFICATION BADGE
   ========================================================= */

.topbar-notification {
    position: relative;
}


.topbar-notification::after {
    content: "";

    position: absolute;

    top: 7px;
    right: 7px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #ef4444;

    border: 2px solid #ffffff;
}
/* =========================================================
   TOPBAR HOVER EFFECT
   ========================================================= */

.topbar {
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.topbar:hover {
    background: rgba(255, 255, 255, 0.98);

    border-bottom-color: #dfe4ec;

    box-shadow:
        0 5px 20px rgba(15, 23, 42, 0.07);
}


/* =========================================================
   TITLE HOVER
   ========================================================= */

.topbar-title {
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.topbar-title:hover {
    color: #f59e0b;

    transform: translateX(2px);
}


/* Accent bar */

.topbar-title::before {
    transition:
        height 0.25s ease,
        box-shadow 0.25s ease;
}

.topbar-title:hover::before {
    height: 26px;

    box-shadow:
        0 0 10px rgba(99, 102, 241, 0.35);
}


/* =========================================================
   ACTION BUTTON HOVER
   ========================================================= */

.topbar-actions button {
    transition:
        transform 0.25s cubic-bezier(.2,.8,.2,1),
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.topbar-actions button:hover {
    transform: translateY(-2px);

    color: #f59e0b;

    background: #f5f6ff;

    border-color: #d8dcff;

    box-shadow:
        0 7px 18px rgba(79, 70, 229, 0.13);
}


/* Icon animation */

.topbar-actions button:hover svg {
    transform: scale(1.08);
}

.topbar-actions button svg {
    transition:
        transform 0.25s ease;
}


/* =========================================================
   USER PROFILE HOVER
   ========================================================= */

.topbar-user {
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.topbar-user:hover {
    transform: translateY(-2px);

    background: #fafaff;

    border-color: #d9ddff;

    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.08);
}


/* Avatar hover */

.topbar-user-avatar {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.topbar-user:hover .topbar-user-avatar {
    transform: scale(1.06);

    box-shadow:
        0 5px 12px rgba(79, 70, 229, 0.25);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .topbar {
        height: 62px;

        padding: 0 14px;
    }

    .topbar-title {
        font-size: 16px;
    }

    .topbar-title::before {
        height: 18px;
    }

    .topbar-actions {
        gap: 6px;
    }

    .topbar-actions button {
        width: 36px;
        height: 36px;
    }

    .topbar-user-name,
    .topbar-user-role {
        display: none;
    }

    .topbar-user {
        padding: 3px;
        border: none;
        background: transparent;
    }

}
/* =========================================================
   TOPBAR
   ========================================================= */




/* Left */

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}


.topbar-title {
    font-size: 18px;
    font-weight: 750;
    color: #172033;
    letter-spacing: -0.3px;
}


/* Right */

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* =========================================================
   NOTIFICATION BUTTON
   ========================================================= */

.notification-btn {
    position: relative;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #f3e2b8;

    border-radius: 11px;

    background: #fffaf0;

    color: #f59e0b;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.notification-btn svg {
    width: 19px;
    height: 19px;

    transition:
        transform 0.25s ease;
}


.notification-btn:hover {
    transform: translateY(-2px);

    color: #d97706;

    background: #fff4d6;

    border-color: #f5c451;

    box-shadow:
        0 7px 18px rgba(245, 158, 11, 0.20);
}


.notification-btn:hover svg {
    transform: scale(1.08);
}


/* =========================================================
   NOTIFICATION BADGE
   ========================================================= */

.notification-badge {
    position: absolute;

    top: -4px;
    right: -4px;

    min-width: 18px;
    height: 18px;

    padding: 0 5px;

    display: none;

    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: #ef4444;

    border: 2px solid #ffffff;

    color: #ffffff;

    font-size: 9px;
    font-weight: 800;

    line-height: 1;
}


.notification-badge.show {
    display: flex;
}


/* =========================================================
   USER CHIP
   ========================================================= */

.user-chip {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 4px 10px 4px 5px;

    border: 1px solid #e5e9ef;

    border-radius: 12px;

    background: #ffffff;

    color: #172033;

    font-size: 12px;
    font-weight: 650;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.user-chip:hover {
    transform: translateY(-1px);

    border-color: #dce1e8;

    box-shadow:
        0 6px 16px rgba(15,23,42,0.07);
}


.avatar {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #4f46e5,
            #6366f1
        );

    color: #ffffff;

    font-size: 12px;
    font-weight: 750;
}
/* =========================================================
   NOTIFICATION PANEL
   ========================================================= */

#notificationPanel {
    position: fixed;

    top: 74px;
    right: 24px;

    z-index: 9999;
}


.notification-panel {
    width: 390px;
    max-height: 560px;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid #e5e9ef;

    border-radius: 18px;

    box-shadow:
        0 24px 60px rgba(15,23,42,0.18);

    overflow: hidden;

    animation:
        notificationAppear 0.25s ease;
}


@keyframes notificationAppear {

    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* Header */

.notification-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 18px 14px;

    border-bottom: 1px solid #eef1f5;
}


.notification-panel-head strong {
    display: block;

    font-size: 15px;

    color: #172033;
}


.notification-panel-head small {
    display: block;

    margin-top: 3px;

    font-size: 11px;

    color: #8a94a6;
}


.notification-close {
    width: 30px;
    height: 30px;

    border: 0;

    border-radius: 8px;

    background: #f4f6f8;

    color: #697586;

    font-size: 20px;

    cursor: pointer;
}


.notification-close:hover {
    background: #eef0f4;

    color: #172033;
}


/* =========================================================
   TABS
   ========================================================= */

.notification-tabs {
    display: flex;

    gap: 4px;

    padding: 8px;

    border-bottom: 1px solid #eef1f5;

    overflow-x: auto;
}


.notification-tab {
    border: 0;

    background: transparent;

    padding: 7px 10px;

    border-radius: 8px;

    color: #7b8494;

    font-size: 11px;

    font-weight: 650;

    white-space: nowrap;

    cursor: pointer;
}


.notification-tab:hover {
    background: #f5f6f8;

    color: #172033;
}


.notification-tab.active {
    background: #eef0ff;

    color: #4f46e5;
}


/* =========================================================
   LIST
   ========================================================= */

.notification-list {
    max-height: 430px;

    overflow-y: auto;
}


.notification-item {
    display: flex;

    gap: 12px;

    padding: 14px 16px;

    border-bottom: 1px solid #f0f2f5;

    cursor: pointer;

    transition:
        background 0.2s ease;
}


.notification-item:hover {
    background: #f8f9fc;
}


.notification-icon {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #eef0ff;

    color: #4f46e5;

    font-size: 15px;
}


.notification-content {
    min-width: 0;
}


.notification-content strong {
    display: block;

    font-size: 12px;

    color: #172033;
}


.notification-content p {
    margin: 4px 0 0;

    font-size: 11px;

    line-height: 1.5;

    color: #727d8d;
}


.notification-time {
    display: block;

    margin-top: 5px;

    font-size: 9px;

    color: #a0a8b5;
}


.notification-loading,
.notification-empty {
    padding: 40px 20px;

    text-align: center;

    color: #8a94a6;

    font-size: 12px;
}
.user-chip{display:flex;align-items:center;gap:9px;background:#f6f8fb;border:1px solid var(--border);padding:7px 11px;border-radius:999px}
.avatar{width:32px;height:32px;border-radius:50%;background:var(--orange);display:grid;place-items:center;font-weight:800}
.page{padding:26px;max-width:1600px;margin:auto}
.page-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:22px}
.page-head h2{margin:0;font-size:27px}.page-head p{margin:6px 0 0;color:var(--muted)}
.actions{display:flex;flex-wrap:wrap;gap:9px}
.btn{border:1px solid var(--border);background:#fff;color:var(--text);border-radius:11px;padding:10px 14px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.btn:hover{filter:brightness(.98);box-shadow:0 5px 15px rgba(0,0,0,.05)}
.btn.primary{background:var(--orange);border-color:var(--orange);color:#172033}
.btn.dark{background:var(--navy);border-color:var(--navy);color:#fff}
.btn.danger{background:#fff0f1;border-color:#ffd1d5;color:#b4232f}
.btn.success{background:#eaf8ef;border-color:#bfe9cc;color:#087a37}
.btn.info{background:#edf4ff;border-color:#cfe0ff;color:#1d4ed8}
.btn.sm{padding:7px 10px;font-size:12px}
.btn:disabled{opacity:.5;cursor:not-allowed}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.hero{padding:25px;background:linear-gradient(135deg,#fff 0%,#fff7e8 100%);position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;width:170px;height:170px;border-radius:50%;background:rgba(245,158,11,.13);right:-50px;top:-60px}
.hero .eyebrow{color:#b36b00;font-size:12px;text-transform:uppercase;font-weight:800;letter-spacing:.08em}
.hero h2{font-size:27px;margin:8px 0}.hero p{max-width:700px;color:var(--muted);margin:0;line-height:1.6}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:17px}
.stat{padding:18px}.stat-label{font-size:12px;color:var(--muted);font-weight:700}.stat-value{font-size:29px;font-weight:900;margin-top:6px}.stat-sub{font-size:12px;color:var(--muted);margin-top:3px}
.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}
.quick {
    padding: 18px;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
    cursor: pointer;
}


.quick-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    margin: 0;
}
.quick-icon{width:45px;height:45px;border-radius:14px;background:#fff3d8;display:grid;place-items:center;font-size:21px;margin-bottom:12px}.quick h3{margin:0 0 5px;font-size:16px}.quick p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.panel{padding:18px}.panel h3{margin:0 0 14px;font-size:17px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:800;color:#465166}.field input,.field select,.field textarea{width:100%;border:1px solid #d8dee8;border-radius:10px;background:#fff;padding:10px 11px;outline:none}.field textarea{min-height:90px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#f2b84b;box-shadow:0 0 0 3px rgba(245,158,11,.13)}
.toolbar{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:14px}.toolbar .grow{flex:1;min-width:220px}.search{border:1px solid var(--border);background:#fff;border-radius:11px;padding:10px 12px;width:100%}
.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:800px}.table th,.table td{padding:11px 10px;border-bottom:1px solid #edf0f4;text-align:left;font-size:13px;vertical-align:middle}.table th{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#68758b;background:#fafbfc;position:sticky;top:0}.table tr:hover td{background:#fcfdff}
.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;white-space:nowrap}.badge.pending{background:#fff7dd;color:#9a6700}.badge.success,.badge.released{background:#eaf8ef;color:#087a37}.badge.parked{background:#eaf1ff;color:#2458b8}.badge.repo{background:#fff0e1;color:#a44d00}.badge.danger{background:#ffecef;color:#b4232f}.badge.info{background:#e9f2ff;color:#1d4ed8}.badge.gray{background:#edf0f4;color:#586578}
.empty{text-align:center;padding:45px 15px;color:var(--muted)}.loading{text-align:center;padding:35px;color:var(--muted)}
.kpi-row{display:flex;gap:10px;flex-wrap:wrap}.kpi{padding:14px 16px;background:#f8fafc;border:1px solid var(--border);border-radius:13px;min-width:150px}.kpi strong{display:block;font-size:20px}.kpi span{font-size:11px;color:var(--muted)}
.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.detail{padding:12px 13px;background:#f8fafc;border:1px solid #e9edf3;border-radius:12px}.detail label{display:block;font-size:10px;color:var(--muted);text-transform:uppercase;font-weight:800;letter-spacing:.05em}.detail div{font-weight:700;margin-top:4px;word-break:break-word}
.drawer-toggle{display:none;border:0;background:#f5f7fb;border-radius:10px;width:40px;height:40px}
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.55);display:none;align-items:center;justify-content:center;z-index:100;padding:18px}.modal-backdrop.open{display:flex}.modal{background:#fff;border-radius:18px;max-width:900px;width:100%;max-height:92vh;overflow:auto;box-shadow:0 30px 70px rgba(0,0,0,.25)}.modal-head{padding:17px 19px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.modal-body{padding:19px}.close{border:0;background:#f3f5f8;border-radius:9px;width:34px;height:34px}
.toast-root{position:fixed;right:18px;bottom:18px;z-index:200;display:flex;flex-direction:column;gap:9px}.toast{min-width:280px;max-width:420px;background:#172033;color:#fff;border-radius:12px;padding:12px 15px;box-shadow:0 15px 35px rgba(0,0,0,.18);font-size:13px}.toast.success{border-left:4px solid #38b76b}.toast.error{border-left:4px solid #ef5360}
/* =========================================================
   REPO MASTER — MODERN LOGIN PAGE
   ========================================================= */

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(79, 70, 229, 0.16),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(14, 165, 233, 0.12),
            transparent 35%
        ),
        #08111f;
    overflow: hidden;
}


/* =========================================================
   LEFT SIDE
   ========================================================= */

.login-art {
    position: relative;
    display: flex;
    align-items: center;
    padding: 70px 9%;
    color: #ffffff;
    overflow: hidden;
}


/* Decorative circles */

.login-art::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    top: -160px;
    left: -160px;
}

.login-art::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.035);
    bottom: -350px;
    right: -280px;
}


.login-art-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}


/* =========================================================
   LOGO
   ========================================================= */

.brand-mark {
    position: relative;
    width: 82px;
    height: 82px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;

    border-radius: 24px;

    background: rgba(255,255,255,0.055);

    border: 1px solid rgba(255,255,255,0.10);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 18px 45px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.08);

    transition:
        transform 0.45s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.45s ease,
        border-color 0.45s ease;

    animation: logoFloat 4s ease-in-out infinite;
}


.brand-mark img {
    width: 64px;
    height: 64px;

    object-fit: contain;

    position: relative;
    z-index: 2;

    transition:
        transform 0.45s cubic-bezier(.2,.8,.2,1),
        filter 0.45s ease;
}


/* Logo glow */

.brand-glow {
    position: absolute;

    width: 55px;
    height: 55px;

    border-radius: 50%;

    background: rgba(99,102,241,0.30);

    filter: blur(25px);

    opacity: 0.65;

    transition:
        transform 0.45s ease,
        opacity 0.45s ease;
}


/* Logo hover */

.brand-mark:hover {
    transform: translateY(-7px) scale(1.04);

    border-color: rgba(255,255,255,0.20);

    box-shadow:
        0 25px 60px rgba(0,0,0,0.32),
        0 0 35px rgba(99,102,241,0.14),
        inset 0 1px 0 rgba(255,255,255,0.12);
}


.brand-mark:hover img {
    transform: scale(1.07) rotate(-2deg);
    filter: brightness(1.08);
}


.brand-mark:hover .brand-glow {
    transform: scale(1.45);
    opacity: 0.9;
}


@keyframes logoFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

}


/* =========================================================
   BRAND LABEL
   ========================================================= */

.brand-label {
    display: inline-flex;

    padding: 7px 12px;

    margin-bottom: 18px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;

    color: rgba(255,255,255,0.62);

    background: rgba(255,255,255,0.045);

    border: 1px solid rgba(255,255,255,0.07);
}


/* =========================================================
   HEADING
   ========================================================= */

.login-art h1 {
    margin: 0;

    max-width: 620px;

    font-size: clamp(42px, 5vw, 68px);

    line-height: 1.04;

    letter-spacing: -2.8px;

    font-weight: 750;

    color: #ffffff;
}


.login-art h1 span {
    display: block;

    background:
        linear-gradient(
            100deg,
            #ffffff 10%,
            #a5b4fc 55%,
            #67e8f9 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.login-description {
    max-width: 550px;

    margin: 25px 0 34px;

    color: rgba(255,255,255,0.58);

    font-size: 16px;

    line-height: 1.75;
}


/* =========================================================
   FEATURES
   ========================================================= */

.login-points {
    display: flex;
    flex-direction: column;

    gap: 13px;

    max-width: 520px;
}


.login-point {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 13px 16px;

    border-radius: 14px;

    background: rgba(255,255,255,0.035);

    border: 1px solid rgba(255,255,255,0.055);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}


.login-point:hover {
    transform: translateX(6px);

    background: rgba(255,255,255,0.065);

    border-color: rgba(255,255,255,0.11);
}


.point-icon {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(99,102,241,0.16);

    color: #a5b4fc;

    font-size: 14px;
    font-weight: 800;
}


.login-point strong {
    display: block;

    margin-bottom: 2px;

    font-size: 13px;

    color: rgba(255,255,255,0.90);
}


.login-point small {
    display: block;

    font-size: 11px;

    color: rgba(255,255,255,0.42);
}


/* =========================================================
   FOOTER STATUS
   ========================================================= */

.login-footer-note {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 30px;

    font-size: 11px;

    color: rgba(255,255,255,0.35);
}


.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #34d399;

    box-shadow:
        0 0 0 4px rgba(52,211,153,0.08),
        0 0 12px rgba(52,211,153,0.45);
}


/* =========================================================
   RIGHT LOGIN AREA
   ========================================================= */

.login-box {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px;

    background:
        rgba(255,255,255,0.018);

    border-left: 1px solid rgba(255,255,255,0.055);
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
    width: 100%;
    max-width: 430px;

    padding: 42px;

    border-radius: 24px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.18);

    animation: cardAppear 0.7s cubic-bezier(.2,.8,.2,1);
}


@keyframes cardAppear {

    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* =========================================================
   LOGIN HEADER
   ========================================================= */

.login-card-header h2 {
    margin: 0;

    font-size: 30px;
    letter-spacing: -0.8px;

    color: #172033;
}

.login-card-header .sub {
    margin-top: 8px;

    font-size: 13px;

    color: #6b7280;
}

/* =========================================================
   MOBILE LOGO
   ========================================================= */

.mobile-logo {
    display: none;
}


/* =========================================================
   LOGIN TABS
   ========================================================= */
.login-tabs {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 4px;

    padding: 4px;

    margin-top: 30px;
    margin-bottom: 26px;

    border-radius: 12px;

    background: #f1f3f7;

    border: 1px solid #e5e7eb;
}

.login-tabs button {
    height: 40px;

    border: 0;

    border-radius: 9px;

    background: transparent;

    color: #6b7280;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.login-tabs button:hover {
    color: #172033;
}

.login-tabs button.active {
    color: #ffffff;

    background: #172033;

    box-shadow: 0 4px 12px rgba(23, 32, 51, 0.18);
}


/* =========================================================
   FORM INPUTS
   ========================================================= */

.login-card input,
.login-card select {
    width: 100%;

    box-sizing: border-box;

    height: 48px;

    padding: 0 15px;

    border-radius: 11px;

    border: 1px solid #dfe3e8;

    background: #ffffff;

    color: #172033;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.login-card input:focus,
.login-card select:focus {
    border-color: #6366f1;

    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.10);
}

.login-card input::placeholder {
    color: #9ca3af;
}

   

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-art {
        display: none;
    }

    .login-box {
        min-height: 100vh;

        border-left: none;

        padding: 25px;
    }

    .mobile-logo {
        display: flex;

        width: 58px;
        height: 58px;

        align-items: center;
        justify-content: center;

        margin-bottom: 20px;
    }

    .mobile-logo img {
        width: 58px;
        height: 58px;

        object-fit: contain;
    }

}


@media (max-width: 480px) {

    .login-box {
        padding: 16px;
    }

    .login-card {
        padding: 28px 22px;

        border-radius: 22px;
    }

    .login-card-header h2 {
        font-size: 26px;
    }

}
.login-box{display:flex;align-items:center;justify-content:center;padding:30px}

.login-tabs{display:flex;background:#f4f6f9;border-radius:11px;padding:4px;margin-bottom:17px}
.login-tabs button{flex:1;border:0;background:transparent;padding:9px;border-radius:8px;font-weight:800;color:#6b7688}
.login-tabs button.active{background:#fff;color:#172033;box-shadow:0 3px 9px rgba(0,0,0,.07)}
.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.gallery figure{margin:0;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#f8fafc}.gallery img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}.gallery figcaption{padding:7px;font-size:10px;color:var(--muted)}
.image-upload-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.image-slot{border:1px dashed #cfd7e4;border-radius:12px;padding:8px;text-align:center;background:#fafbfc}.image-slot img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:8px;margin-bottom:6px}.image-slot small{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}
.notice{padding:11px 13px;border-radius:11px;background:#fff8e8;border:1px solid #f8dda5;color:#855b00;font-size:12px}
.login-footer{display:flex;justify-content:space-between;gap:10px;margin-top:13px}
.link-btn{border:0;background:transparent;color:#a45d00;font-weight:800;padding:0}

@media(max-width:1100px){.stat-grid,.quick-grid{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:1fr 1fr}.detail-grid{grid-template-columns:1fr 1fr}.image-upload-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:850px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:translateX(0)}.main{margin-left:0;width:100%}.drawer-toggle{display:block}.topbar{padding:0 15px}.page{padding:17px}.login-shell{grid-template-columns:1fr}.login-art{display:none}.form-grid,.form-grid.three,.grid-2,.grid-3{grid-template-columns:1fr}.stat-grid,.quick-grid{grid-template-columns:1fr 1fr}.detail-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.stat-grid,.quick-grid{grid-template-columns:1fr}.page-head{flex-direction:column}.actions{width:100%}.actions .btn{flex:1}.image-upload-grid{grid-template-columns:repeat(2,1fr)}.login-card{padding:22px}.topbar-title{font-size:15px}.user-chip span{display:none}}
/* =========================================================
   REPO MASTER - DASHBOARD CARD HOVER
   ========================================================= */

/* ---------- STAT CARDS ---------- */

.stat-grid > .card.stat {
    cursor: pointer !important;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease !important;
}

.stat-grid > .card.stat:hover {
    background-color: #fff3d8 !important;
    border-color: #f59e0b !important;

    box-shadow:
        0 12px 28px rgba(245, 158, 11, 0.22) !important;

    transform: translateY(-5px) !important;
}


/* ---------- QUICK ACTION CARDS ---------- */

.quick-grid > .card.quick {
    cursor: pointer !important;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease !important;
}

.quick-grid > .card.quick:hover {
    background-color: #fff3d8 !important;
    border-color: #f59e0b !important;

    box-shadow:
        0 12px 28px rgba(245, 158, 11, 0.22) !important;

    transform: translateY(-5px) !important;
}


/* ---------- QUICK ACTION ICON ---------- */

.quick-grid > .card.quick .quick-icon {
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease !important;
}

.quick-grid > .card.quick:hover .quick-icon {
    background-color: #f59e0b !important;
    color: #172033 !important;

    transform:
        scale(1.08)
        rotate(3deg) !important;
}


/* ---------- STAT TEXT ---------- */

.stat-grid > .card.stat:hover .stat-label,
.stat-grid > .card.stat:hover .stat-value,
.stat-grid > .card.stat:hover .stat-sub {
    transition: color 0.25s ease;
}


/* ---------- QUICK TEXT ---------- */

.quick-grid > .card.quick:hover h3 {
    color: #a45d00 !important;
}

.quick-grid > .card.quick:hover p {
    color: #6b4b16 !important;
}
/* =========================================================
   REPO MASTER NOTIFICATIONS
   ========================================================= */

.topbar-actions .notification-btn {
    position: relative;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #f3e2b8;
    border-radius: 11px;

    background: #fffaf0;
    color: #f59e0b;

    cursor: pointer;

    transition:
        transform .25s ease,
        color .25s ease,
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.topbar-actions .notification-btn svg {
    width: 21px;
    height: 21px;
}

.topbar-actions .notification-btn:hover {
    transform: translateY(-2px);

    color: #d97706;
    background: #fff4d6;
    border-color: #f5c451;

    box-shadow:
        0 7px 18px rgba(245,158,11,.20);
}


/* RED COUNT */

.notification-badge {
    position: absolute;

    top: -5px;
    right: -5px;

    min-width: 18px;
    height: 18px;

    padding: 0 5px;

    display: none;

    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: #ef4444;
    color: #ffffff;

    border: 2px solid #ffffff;

    font-size: 10px;
    font-weight: 800;

    line-height: 1;
}


/* =========================================================
   NOTIFICATION PANEL
   ========================================================= */

#notificationPanel {
    position: fixed;

    top: 74px;
    right: 24px;

    z-index: 9999;
}

.notification-panel {
    width: 410px;
    max-width: calc(100vw - 30px);

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

    box-shadow:
        0 24px 60px rgba(15,23,42,.18);

    overflow: hidden;

    animation:
        notificationPanelIn
        .22s ease;
}

@keyframes notificationPanelIn {

    from {
        opacity: 0;
        transform:
            translateY(-8px)
            scale(.98);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}


/* HEADER */

.notification-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 18px 14px;

    border-bottom: 1px solid #eef0f4;
}

.notification-panel-head strong {
    display: block;

    color: #172033;

    font-size: 16px;
    font-weight: 800;
}

.notification-panel-head small {
    display: block;

    margin-top: 3px;

    color: #8a94a6;

    font-size: 12px;
}


.notification-close {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 9px;

    background: #f5f6f8;
    color: #64748b;

    font-size: 20px;

    cursor: pointer;
}

.notification-close:hover {
    background: #eef0f4;
    color: #172033;
}


/* TABS */

.notification-tabs {
    display: flex;

    gap: 6px;

    padding: 10px 12px;

    border-bottom: 1px solid #eef0f4;
}

.notification-tab {
    flex: 1;

    padding: 9px 8px;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: #64748b;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.notification-tab:hover {
    background: #f8fafc;
}

.notification-tab.active {
    background: #fff4d6;
    color: #d97706;
}


/* LIST */

.notification-list {
    max-height: 460px;

    overflow-y: auto;
}


/* ITEM */

.notification-item {
    display: flex;

    gap: 12px;

    padding: 15px 17px;

    border-bottom: 1px solid #f0f2f5;

    cursor: pointer;

    transition:
        background .2s ease;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: #fffbeb;
}


/* ICON */

.notification-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    font-size: 17px;
}

.notification-icon.vehicle {
    background: #fff4d6;
}

.notification-icon.agent {
    background: #eef2ff;
}


/* CONTENT */

.notification-content {
    min-width: 0;
    flex: 1;
}

.notification-content strong {
    display: block;

    color: #172033;

    font-size: 13px;
    font-weight: 800;
}

.notification-content p {
    margin: 4px 0 2px;

    color: #334155;

    font-size: 13px;
    font-weight: 700;
}

.notification-content small {
    display: block;

    color: #64748b;

    font-size: 11px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-time {
    display: block;

    margin-top: 5px;

    color: #94a3b8;

    font-size: 10px;
}


/* EMPTY */

.notification-empty {
    min-height: 180px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    padding: 25px;

    text-align: center;

    color: #64748b;
}

.notification-empty-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 6px;

    border-radius: 50%;

    background: #ecfdf5;
    color: #16a34a;

    font-weight: 800;
}

.notification-empty strong {
    color: #172033;
    font-size: 13px;
}

.notification-empty span {
    font-size: 12px;
}


/* LOADING */

.notification-loading {
    padding: 35px 20px;

    text-align: center;

    color: #8a94a6;

    font-size: 13px;
}


/* ERROR */

.notification-error {
    padding: 30px 20px;

    text-align: center;

    color: #dc2626;
}

.notification-error strong {
    display: block;
    font-size: 13px;
}

.notification-error span {
    display: block;
    margin-top: 5px;
    font-size: 11px;
}


/* MOBILE */

@media (max-width: 600px) {

    #notificationPanel {
        top: 68px;
        right: 10px;
        left: 10px;
    }

    .notification-panel {
        width: 100%;
        max-width: none;
    }

}
/* Fix registration form field visibility */
#registerForm {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#registerForm .field {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#registerForm .field > div {
    min-width: 0;
    box-sizing: border-box;
}

#registerForm input,
#registerForm textarea,
#registerForm select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Keep icons and input text properly positioned */
#registerForm input {
    min-height: 44px;
}

#registerForm #rName,
#registerForm #rMobile,
#registerForm #rPass {
    padding-left: 44px;
    padding-right: 12px;
}

/* Preserve space for the password eye button */
#registerForm #rPass {
    padding-right: 48px;
}

/* Prevent the form grid from overflowing */
#registerForm.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

#registerForm .field.full {
    grid-column: 1 / -1;
}

/* One column on mobile screens */
@media (max-width: 600px) {
    #registerForm.form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #registerForm .field,
    #registerForm .field.full {
        grid-column: 1 / -1;
    }
}
/* FIX: Registration input fields cut off or partially visible */

#regBody {
    width: 100%;
    min-width: 0;
    overflow: visible !important;
}

#regBody #registerForm {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    gap: 16px !important;
}

#regBody #registerForm .field {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
}

#regBody #registerForm .field > div {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
}

#regBody #registerForm input,
#regBody #registerForm textarea {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    color: #172033 !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
    font-size: 14px !important;
    line-height: normal !important;
    text-indent: 0 !important;
    visibility: visible !important;
    -webkit-text-fill-color: #172033 !important;
}

#regBody #registerForm #rName,
#regBody #registerForm #rMobile,
#regBody #registerForm #rPass {
    padding-left: 44px !important;
}

#regBody #registerForm #rPass {
    padding-right: 48px !important;
}

#regBody #registerForm textarea {
    height: auto !important;
    min-height: 90px !important;
    padding-left: 44px !important;
}

#regBody #registerForm .field.full {
    grid-column: 1 / -1 !important;
}

@media (max-width: 600px) {
    #regBody #registerForm {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    #regBody #registerForm .field,
    #regBody #registerForm .field.full {
        grid-column: 1 / -1 !important;
    }
}

.user-chip {
    cursor: pointer;
}

.user-chip:hover {
    opacity: 0.85;
}

/* ================================
   VEHICLE MANAGEMENT PAGE
================================ */

.vehicles-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
    color: #172033;
}

.vehicles-heading {
    align-items: center;
    gap: 16px;
}

.vehicles-heading h2 {
    margin: 0 0 7px;
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -0.7px;
}

.vehicles-heading p {
    margin: 0;
    color: #7b8496;
    font-size: 14px;
}

.vehicle-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.vehicle-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 21px;
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 15px;
    box-shadow: 0 3px 12px rgba(23, 32, 51, 0.035);
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 13px;
    font-size: 24px;
    font-weight: 700;
}

.stat-blue {
    color: #2563eb;
    background: #eff6ff;
}

.stat-orange {
    color: #d97706;
    background: #fff7ed;
}

.stat-green {
    color: #15803d;
    background: #f0fdf4;
}

.stat-purple {
    color: #7c3aed;
    background: #f5f3ff;
}

.vehicle-stat span {
    display: block;
    color: #7b8496;
    font-size: 12px;
    font-weight: 600;
}

.vehicle-stat h3 {
    margin: 7px 0 0;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.vehicle-card {
    overflow: hidden;
    padding: 0;
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(23, 32, 51, 0.035);
}

.vehicle-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 23px 24px;
    border-bottom: 1px solid #edf0f5;
}

.vehicle-card-heading h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 750;
}

.vehicle-card-heading p {
    margin: 0;
    color: #8790a0;
    font-size: 13px;
}

.inventory-label {
    padding: 7px 10px;
    border: 1px solid #e8ecf2;
    border-radius: 8px;
    color: #64748b;
    background: #f8fafc;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.7px;
}

.vehicle-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    padding: 18px 24px;
    background: #fcfdff;
    border-bottom: 1px solid #edf0f5;
}

.vehicle-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 230px;
    min-width: 0;
    height: 43px;
    padding: 0 13px;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
}

.vehicle-search-box:focus-within {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.10);
}

.vehicle-search-box span {
    color: #8490a3;
    font-size: 24px;
}

.vehicle-search-box input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #172033;
    font: inherit;
    font-size: 13px;
}

.vehicle-filter {
    height: 43px;
    max-width: 180px;
    padding: 0 12px;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    background: #fff;
    color: #475569;
    font-size: 13px;
}

.vehicle-toolbar .btn {
    min-height: 42px;
    border-radius: 10px;
    font-weight: 650;
}

.vehicle-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.vehicle-loading {
    padding: 38px 20px;
    color: #8490a3;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1050px) {
    .vehicle-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .vehicles-page {
        gap: 16px;
    }

    .vehicles-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .vehicles-heading h2 {
        font-size: 23px;
    }

    .vehicles-heading .actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .vehicle-stats {
        gap: 10px;
    }

    .vehicle-stat {
        gap: 10px;
        padding: 13px;
        border-radius: 12px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 19px;
    }

    .vehicle-stat span {
        font-size: 11px;
    }

    .vehicle-stat h3 {
        font-size: 21px;
    }

    .vehicle-card-heading {
        align-items: flex-start;
        padding: 18px 15px;
    }

    .inventory-label {
        display: none;
    }

    .vehicle-toolbar {
        padding: 14px;
    }

    .vehicle-search-box {
        flex-basis: 100%;
    }

    .vehicle-filter {
        flex: 1;
        max-width: none;
        min-width: 0;
    }
}

/* Modern vehicle inventory table */

.vehicle-modern-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: separate;
    border-spacing: 0;
}

.vehicle-modern-table thead th {
    padding: 15px 16px;
    background: #f8fafc;
    color: #7b8496;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.65px;
    white-space: nowrap;
    border-bottom: 1px solid #e8ecf2;
}

.vehicle-modern-table tbody td {
    padding: 16px;
    color: #475569;
    font-size: 12px;
    border-bottom: 1px solid #f0f2f6;
    white-space: nowrap;
}

.vehicle-modern-table tbody tr {
    transition: background-color 0.15s ease;
}

.vehicle-modern-table tbody tr:hover {
    background: #f8fafc;
}

.vehicle-modern-table tbody tr:last-child td {
    border-bottom: 0;
}

.vehicle-number-cell {
    display: flex;
    align-items: center;
    gap: 11px;
}

.vehicle-row-icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    border: 1px solid #e5eaf2;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 750;
}

.vehicle-number-cell strong {
    display: block;
    color: #172033;
    font-size: 12px;
    font-weight: 750;
}

.vehicle-number-cell small {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 10px;
}

.vehicle-loan {
    color: #475569;
    font-weight: 600;
}

.vehicle-yard {
    color: #64748b;
}

.vehicle-details-btn {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
}

.vehicle-details-btn:hover {
    border-color: #f59e0b;
    color: #b45309;
    background: #fffbeb;
}

.vehicle-table-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px 22px;
    border-top: 1px solid #edf0f5;
    color: #8490a3;
    font-size: 12px;
}

.vehicle-table-footer strong {
    color: #172033;
}

.vehicle-empty {
    padding: 48px 20px;
    text-align: center;
}

.vehicle-empty-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 15px;
    border-radius: 16px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 30px;
}

.vehicle-empty h3 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 16px;
}

.vehicle-empty p {
    margin: 0;
    color: #8490a3;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .vehicle-modern-table {
        min-width: 1000px;
    }

    .vehicle-modern-table thead th,
    .vehicle-modern-table tbody td {
        padding: 13px 12px;
    }

    .vehicle-table-footer {
        padding: 13px 15px;
    }
}

/* Summary card hover effects */
.vehicle-stat {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

/* Subtle lift and shadow */
.vehicle-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(23, 32, 51, 0.10);
    border-color: #d6deea;
}

/* Highlight the icon */
.vehicle-stat .stat-icon {
    transition: transform 0.25s ease;
}

.vehicle-stat:hover .stat-icon {
    transform: scale(1.1);
}

/* Optional orange accent line */
.vehicle-stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #f59e0b;
    transition: width 0.3s ease;
}

.vehicle-stat:hover::before {
    width: 100%;
}

/* Keyboard accessibility */
.vehicle-stat:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 3px;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .vehicle-stat,
    .vehicle-stat .stat-icon,
    .vehicle-stat::before {
        transition: none;
    }

    .vehicle-stat:hover {
        transform: none;
    }
}

/* Colorful vehicle summary cards */
.vehicle-stat {
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(23, 32, 51, 0.04);
}

/* Total Vehicles — soft blue */
.vehicle-stat:nth-child(1) {
    background: linear-gradient(135deg, #e8f1ff, #f4f8ff);
    border-color: #d5e4ff;
}

/* Pending — soft orange */
.vehicle-stat:nth-child(2) {
    background: linear-gradient(135deg, #fff0dc, #fff8ed);
    border-color: #ffe1b5;
}

/* Parked — soft green */
.vehicle-stat:nth-child(3) {
    background: linear-gradient(135deg, #e1f8e9, #f2fcf5);
    border-color: #c9efd5;
}

/* Released — soft purple */
.vehicle-stat:nth-child(4) {
    background: linear-gradient(135deg, #eee7ff, #f8f5ff);
    border-color: #e0d4ff;
}

/* Improve text contrast */
.vehicle-stat span {
    color: #475569;
}

.vehicle-stat h3 {
    color: #172033;
}

/* Preserve the colored backgrounds on hover */
.vehicle-stat:hover {
    box-shadow: 0 12px 28px rgba(23, 32, 51, 0.12);
    border-color: #cbd5e1;
    transform: translateY(-5px);
}
