@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.icon-spin {
    animation: icon-spin 0.8s linear infinite;
}
@keyframes icon-spin {
    to { transform: rotate(360deg); }
}

:root {
    --primary-color: #0F766E;
    /* Matches Ride Hailing Logo and Active states */
    --background-color: #F6F6F6;
    /* Matches Figma background */
    --sidebar-bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --text-primary: #121212;
    --text-secondary: #666666;
    --border-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-primary);
    overflow: hidden;
    /* Main container handles scroll */
}

body.login-page {
    overflow: hidden;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 24%),
        radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.16), transparent 26%),
        linear-gradient(135deg, #041816 0%, #072521 42%, #f7f7f4 42%, #f7f7f4 100%);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 0.92fr;
    align-items: center;
    gap: 48px;
    padding: 48px;
    box-sizing: border-box;
    position: relative;
}

.login-hero {
    color: #ecfdf5;
    max-width: 660px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    width: fit-content;
}

.login-brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 30px rgba(3, 16, 14, 0.26);
    flex-shrink: 0;
}

.login-brand-mark svg {
    display: block;
    width: 100%;
    height: 100%;
}

.login-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.login-brand-copy span {
    font-size: 15px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(236, 253, 245, 0.72);
}

.login-brand-copy strong {
    font-size: 26px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d1fae5;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-hero h1 {
    margin: 0;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    max-width: 12ch;
}

.login-hero p {
    margin: 0;
    max-width: 56ch;
    color: rgba(236, 253, 245, 0.82);
    font-size: 17px;
    line-height: 1.7;
}

.login-points {
    display: grid;
    gap: 14px;
    margin-top: 10px;
}

.login-point {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.login-point-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(20, 184, 166, 0.95));
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.login-point strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 3px;
}

.login-point p {
    margin: 0;
    color: rgba(236, 253, 245, 0.76);
    font-size: 14px;
    line-height: 1.55;
}

.login-card {
    width: min(100%, 520px);
    justify-self: end;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 30px;
    box-shadow: 0 34px 90px rgba(3, 14, 16, 0.24);
    padding: 30px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.login-form[hidden],
.login-step-view[hidden] {
    display: none !important;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.42), rgba(255, 255, 255, 0));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.login-card-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.login-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.login-step-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-step-status {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-card-head h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.login-card-head p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-step-view {
    display: grid;
    gap: 16px;
}

.login-step-panel {
    animation: login-step-in 0.32s ease;
}

@keyframes login-step-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-field {
    display: grid;
    gap: 8px;
}

.login-field label {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.login-field input {
    height: 52px;
    border-radius: 14px;
    border: 1px solid #dbe4ea;
    background: #ffffff;
    padding: 0 16px;
    font-family: inherit;
    font-size: 15px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.login-field input:focus {
    border-color: rgba(15, 118, 110, 0.55);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, 0.55), rgba(148, 163, 184, 0));
}

.login-step-note {
    margin: -4px 0 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.8));
    border: 1px solid rgba(15, 118, 110, 0.12);
    color: #0f172a;
    font-size: 13px;
    line-height: 1.6;
}

.otp-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.otp-digit {
    height: 62px;
    border-radius: 16px;
    border: 1px solid #dbe4ea;
    background: #ffffff;
    text-align: center;
    font-family: inherit;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.otp-digit:focus {
    border-color: rgba(15, 118, 110, 0.65);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
    transform: translateY(-1px);
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}

.login-btn {
    height: 52px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f766e, #115e59);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(15, 118, 110, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(15, 118, 110, 0.32);
}

.login-btn-secondary {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 16px 34px rgba(30, 64, 175, 0.24);
}

.login-btn-ghost {
    background: #eef2f7;
    color: #0f172a;
    box-shadow: none;
}

.login-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.login-hint {
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

.login-feedback {
    min-height: 20px;
    font-size: 14px;
    font-weight: 600;
}

.login-feedback.error {
    color: #b42318;
}

.login-feedback.success {
    color: #027a48;
}

.login-orb {
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(12px);
    opacity: 0.65;
}

.login-orb.one {
    width: 220px;
    height: 220px;
    right: 8%;
    top: 8%;
    background: rgba(16, 185, 129, 0.16);
}

.login-orb.two {
    width: 280px;
    height: 280px;
    left: 4%;
    bottom: 6%;
    background: rgba(14, 116, 144, 0.12);
}

@media (max-width: 980px) {
    body.login-page {
        overflow: auto;
    }

    .login-shell {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .login-hero {
        max-width: none;
    }

    .login-card {
        justify-self: stretch;
        width: 100%;
    }

    .login-card-topline {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .login-shell {
        padding: 18px;
    }

    .login-hero h1 {
        font-size: 36px;
    }

    .login-card {
        padding: 20px;
        border-radius: 22px;
    }

    .login-card::before {
        border-radius: 22px;
    }

    .login-brand {
        gap: 12px;
    }

    .login-brand-mark {
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }

    .login-brand-copy strong {
        font-size: 22px;
    }

    .otp-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .otp-digit {
        height: 56px;
        font-size: 20px;
    }
}

body.login-page {
    background: #062726;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 0.92fr;
    align-items: center;
    gap: 40px;
    padding: 48px;
    box-sizing: border-box;
    position: relative;
}

.login-brand-panel {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
    padding-left: clamp(12px, 3vw, 44px);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.login-brand {
    gap: 14px;
}

.login-brand--stacked {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: min(100%, 360px);
}

.login-brand-logo {
    width: 100%;
    max-width: 360px;
}

.login-brand-logo svg {
    display: block;
    width: 100%;
    height: auto;
}

.login-brand-copy span {
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.18em;
}

.login-brand-copy strong {
    color: #ffffff;
    font-size: 28px;
}

.login-orb,
.login-badge,
.login-points,
.login-point,
.login-step-chip,
.login-step-status,
.login-divider,
.login-step-note,
.login-hint {
    display: none !important;
}

.login-card {
    width: min(100%, 440px);
    justify-self: end;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(3, 14, 16, 0.24);
    padding: 30px;
}

.login-card-head {
    gap: 6px;
    margin-bottom: 18px;
}

.login-card-head h2 {
    font-size: 26px;
}

.login-card-head p {
    color: #64748b;
    font-size: 14px;
}

.login-form,
.login-step-view {
    gap: 14px;
}

.login-field {
    gap: 7px;
}

.login-field span {
    font-size: 13px;
    color: #0f172a;
}

.login-field input {
    height: 50px;
    border-radius: 14px;
    border: 1px solid #d7e0e7;
    box-shadow: none;
}

.login-field input:focus {
    border-color: rgba(15, 118, 110, 0.55);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.otp-grid {
    gap: 8px;
}

.otp-digit {
    height: 58px;
    border-radius: 14px;
    border: 1px solid #d7e0e7;
}

.otp-digit:focus {
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.login-actions {
    gap: 10px;
    margin-top: 2px;
}

.login-btn {
    height: 50px;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.22);
}

.login-btn-secondary {
    background: #155e75;
    box-shadow: 0 14px 30px rgba(21, 94, 117, 0.2);
}

.login-btn-ghost {
    background: #eef2f7;
}

@media (max-width: 980px) {
    body.login-page {
        overflow: auto;
    }

    .login-shell {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .login-brand-panel {
        justify-content: flex-start;
        min-height: auto;
        padding: 0;
        border-right: none;
    }

    .login-card {
        width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 640px) {
    .login-shell {
        padding: 18px;
    }

    .login-card {
        padding: 22px;
        border-radius: 22px;
    }

    .login-brand-copy strong {
        font-size: 24px;
    }

    .login-brand--stacked {
        width: 100%;
        max-width: 290px;
        gap: 12px;
    }

    .otp-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Layout */
.dashboard-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    margin: 28px 0 30px 0;
    min-height: 72px;
    overflow: hidden;
}

.logo img {
    display: block;
    width: 152px;
    height: auto;
    flex-shrink: 0;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 8px;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    text-decoration: none;
    color: #4B5563;
    /* Slightly darker grey for better contrast */
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.2s;
    gap: 16px;
}

/* Sidebar menu icons - only these change color on active */
.sidebar .menu-link i:first-child,
.sidebar .menu-link .menu-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar .menu-link .menu-icon {
    color: #666666;
}
.sidebar .menu-link .menu-icon img,
.sidebar .menu-link .menu-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.sidebar .menu-link.active {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

.sidebar .menu-link.active .menu-icon {
    color: #FFFFFF;
}

.sidebar .menu-link:hover:not(.active) {
    background-color: #F8FAFC;
}

.sidebar .menu-item.has-submenu .submenu-arrow {
    transition: transform 0.3s;
    margin-left: auto;
    font-size: 12px;
}

.sidebar .menu-item.has-submenu .submenu-arrow {
    color: #666666;
}
.sidebar .menu-item.has-submenu .submenu-arrow img,
.sidebar .menu-item.has-submenu .submenu-arrow svg {
    width: 12px;
    height: 12px;
    transition: color 0.2s ease;
}

.sidebar .menu-link.active .submenu-arrow {
    color: #FFFFFF;
}

.menu-item.has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

/* Submenu Styles */
.sub-menu {
    list-style: none;
    padding: 8px 0 8px 0;
    margin: 0;
    display: none;
}

.menu-item.open .sub-menu {
    display: block;
}

.sub-menu-item {
    margin-bottom: 4px;
    padding-left: 12px;
}

.sub-menu-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    gap: 12px;
    border-radius: 8px;
}

.sidebar .sub-menu-link .menu-icon {
    color: #666666;
}
.sidebar .sub-menu-link i,
.sidebar .sub-menu-link .menu-icon img,
.sidebar .sub-menu-link .menu-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.sidebar .sub-menu-link.active {
    background-color: #F0FDFA;
    color: var(--primary-color);
}

.sidebar .sub-menu-link.active .menu-icon {
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.header {
    height: 80px;
    /* Matched Figma 81px roughly */
    background-color: var(--background-color);
    /* Grey background as per screenshot */
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    flex-shrink: 0;
}

.search-bar {
    position: relative;
    width: 380px;
    /* Wider search bar */
}

.search-bar input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 52px;
    /* Left padding for icon + spacing to prevent overlap */
    border: none;
    background-color: #FFFFFF;
    /* White background */
    border-radius: 8px;
    font-family: 'Inter';
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.search-bar input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.search-bar i,
.search-bar .header-icon,
.search-bar img:first-child {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.4);
    font-size: 18px;
    pointer-events: none;
}

.search-bar .header-icon img,
.search-bar img:first-child {
    width: 20px;
    height: 20px;
    display: block;
    filter: none; /* Keep original icon colors */
}

/* Header icons - always use original SVG colors, no overrides */
.header .header-icon img,
.header .chevron-icon img {
    width: 20px;
    height: 20px;
    display: block;
    filter: none;
}

.account-deletion-page {
    overflow: auto;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 30%),
        linear-gradient(180deg, #f4fbfa 0%, #f6f6f6 55%, #eef4f3 100%);
}

.account-deletion-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 20px 72px;
}

.account-deletion-hero {
    margin-bottom: 28px;
}

.account-deletion-eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-deletion-hero h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.account-deletion-copy {
    max-width: 760px;
    margin: 16px 0 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.6;
}

.account-deletion-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.account-note-card,
.account-deletion-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

.account-note-card {
    padding: 18px 20px;
}

.account-note-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.account-note-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.account-deletion-card {
    padding: 28px;
}

.account-deletion-status {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.account-deletion-status.tone-info {
    background: #eff6ff;
    color: #1d4ed8;
}

.account-deletion-status.tone-success {
    background: #ecfdf5;
    color: #047857;
}

.account-deletion-status.tone-error {
    background: #fef2f2;
    color: #b91c1c;
}

.account-deletion-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.account-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-field span {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.account-field input {
    height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: #fff;
    font: inherit;
    color: #111827;
    outline: none;
}

.account-field input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.account-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}

.account-help-text {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.account-primary-btn,
.account-secondary-btn,
.account-danger-btn {
    border: 0;
    border-radius: 14px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.account-primary-btn,
.account-secondary-btn {
    min-width: 152px;
    height: 50px;
    padding: 0 18px;
}

.account-primary-btn {
    background: #0f766e;
    color: #fff;
    box-shadow: 0 16px 34px rgba(15, 118, 110, 0.22);
}

.account-secondary-btn {
    background: #ecfeff;
    color: #155e75;
}

.account-danger-btn {
    min-width: 190px;
    height: 52px;
    padding: 0 20px;
    background: #b91c1c;
    color: #fff;
    box-shadow: 0 16px 34px rgba(185, 28, 28, 0.2);
}

.account-primary-btn:hover,
.account-secondary-btn:hover,
.account-danger-btn:hover {
    transform: translateY(-1px);
}

.account-primary-btn:disabled,
.account-secondary-btn:disabled,
.account-danger-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.account-review-box {
    padding: 16px 18px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.account-review-box strong {
    display: block;
    margin-bottom: 8px;
}

.account-review-box p {
    margin: 4px 0;
    color: #374151;
}

.account-checkbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #111827;
    line-height: 1.5;
}

.account-checkbox input {
    margin-top: 3px;
}

.account-actions-row-danger {
    padding-top: 6px;
}

@media (max-width: 768px) {
    .account-deletion-shell {
        padding: 32px 16px 56px;
    }

    .account-deletion-notes {
        grid-template-columns: 1fr;
    }

    .account-deletion-card {
        padding: 20px;
        border-radius: 20px;
    }

    .account-primary-btn,
    .account-secondary-btn,
    .account-danger-btn {
        width: 100%;
    }
}
    filter: none !important;
}

.header .chevron-icon img {
    width: 14px;
    height: 14px;
}

.user-profile {
    display: flex;
    align-items: center;
    height: 100%;
}

.admin-logout-btn {
    appearance: none;
    border: 1px solid rgba(15, 118, 110, 0.18);
    background: #ffffff;
    color: #0f766e;
    border-radius: 999px;
    padding: 10px 16px;
    margin-right: 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.admin-logout-btn:hover {
    transform: translateY(-1px);
    background: #f0fdfa;
    border-color: rgba(15, 118, 110, 0.32);
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.12);
}

.notification-bell {
    position: relative;
    margin-right: 24px;
    padding-right: 24px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    /* Vertical Divider */
    height: 32px;
    display: flex;
    align-items: center;
}

.notification-bell i,
.notification-bell .header-icon {
    font-size: 24px;
    color: #5F6868;
    cursor: pointer;
}

.notification-bell .header-icon img {
    width: 24px;
    height: 24px;
    display: block;
    filter: none; /* Keep original icon colors */
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 22px;
    background: #FF3131;
    color: white;
    font-size: 10px;
    font-weight: bold;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--background-color);
}

.user-info {
    text-align: left;
    /* Text aligns left */
    margin-left: 12px;
    /* Space from Avatar */
    margin-right: 12px;
    /* Space from Chevron */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-name {
    font-family: 'Inter';
    font-weight: 600;
    font-size: 14px;
    color: #303030;
    line-height: 1.4;
    display: block;
}

.user-role {
    font-family: 'Inter';
    font-weight: 400;
    font-size: 12px;
    color: #666666;
    line-height: 1.2;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0;
    /* Removed right margin */
}

.chevron-icon {
    font-size: 16px;
    color: #2B3942;
    cursor: pointer;
}

.chevron-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

/* Content Area */
.content-area {
    flex: 1;
    /* Key for vertical scroll */
    overflow-y: auto;
    /* Allow vertical scroll */
    padding: 32px;
}

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

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-topbar .dashboard-title {
    margin-bottom: 0;
}

.create-user-btn,
.primary-action-btn,
.secondary-action-btn {
    border: none;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.create-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #0F766E;
    color: #FFFFFF;
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.2);
}

.create-user-btn:hover,
.primary-action-btn:hover,
.secondary-action-btn:hover {
    transform: translateY(-1px);
}

.create-user-btn-plus {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.create-user-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(3px);
    z-index: 1090;
}

.create-user-panel {
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 32%),
        linear-gradient(180deg, #FFFFFF 0%, #FCFFFE 100%);
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.create-user-panel[hidden],
.create-user-backdrop[hidden] {
    display: none !important;
}

.create-user-panel.create-user-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    margin: 0;
    z-index: 1100;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.22);
}

body.modal-open {
    overflow: hidden;
}

.create-user-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.create-user-panel-header h2 {
    margin: 6px 0 8px;
    font-size: 24px;
    line-height: 1.15;
}

.create-user-copy,
.create-user-note {
    margin: 0;
    color: #64748B;
    font-size: 14px;
    line-height: 1.6;
}

.create-user-eyebrow {
    margin: 0;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.create-user-chip {
    flex-shrink: 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: #E6FFFA;
    color: #0F766E;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.create-user-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-group span {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.field-group input,
.field-group select {
    height: 48px;
    border-radius: 14px;
    border: 1px solid #D7E3E0;
    background: #FFFFFF;
    padding: 0 16px;
    font-size: 15px;
    color: #0F172A;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group input:focus,
.field-group select:focus {
    border-color: #0F766E;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.field-group-wide {
    grid-column: 1 / -1;
}

.create-user-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 8px;
}

.create-user-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.primary-action-btn {
    padding: 13px 20px;
    background: #0F766E;
    color: #FFFFFF;
}

.secondary-action-btn {
    padding: 13px 18px;
    background: #F1F5F9;
    color: #334155;
}

.primary-action-btn:disabled,
.secondary-action-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.create-user-result {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #0F172A;
    font-size: 14px;
    line-height: 1.6;
}

.create-user-result strong {
    color: #0F766E;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    /* Increased radius */
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    /* Fixed height for consistency */
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stat-card--link {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stat-card--link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 118, 110, 0.24);
}

.stat-card--link:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.18);
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    .dashboard-topbar,
    .create-user-panel-header,
    .create-user-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .create-user-form,
    .stats-grid,
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .create-user-buttons {
        width: 100%;
    }

    .create-user-btn,
    .primary-action-btn,
    .secondary-action-btn {
        width: 100%;
        justify-content: center;
    }
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

/* Icon Styles */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    /* Circle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.icon-passengers {
    background-color: #F0F5FF;
    /* Light Blue */
    color: #3B82F6;
    /* Blue */
}

.icon-drivers {
    background-color: #FDF2F8;
    /* Light Pink */
    color: #DB2777;
    /* Pink */
}

.icon-active {
    background-color: #ECFDF5;
    /* Light Green */
    color: #10B981;
    /* Emerald */
}

.icon-revenue {
    background-color: #E0F2FE;
    /* Light Cyan */
    color: #06B6D4;
    /* Cyan */
}

/* Actions - arrow button: compact, dark green arrow, light gray rounded square */
.stat-arrow-box {
    width: 28px;
    height: 28px;
    background: #F3F4F6;
    /* Very faint gray */
    border-radius: 10px;
    /* Significantly rounded (squircle-like) */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #166534;
    /* Dark green arrow */
    flex-shrink: 0;
    cursor: pointer;
}

.stat-arrow-box svg {
    width: 12px;
    height: 12px;
}

/* Content */
.stat-content-wrapper {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Space between label and value */
}

.stat-label {
    font-size: 14px;
    color: #64748B;
    /* Slate 500 */
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #0F172A;
    /* Slate 900 */
    text-align: right;
    /* Aligned to right */
    align-self: flex-end;
    line-height: 1;
}


/* Charts and Maps Section */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Chart bigger than Map */
    gap: 24px;
    margin-bottom: 32px;
    height: 400px;
}

.chart-section,
.map-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.section-header {
    display: flex;
    justify-content: flex-start;
    /* Start from left */
    align-items: center;
    margin-bottom: 24px;
    height: auto;
}

/* header-left-group is removed */

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #121212;
    margin-bottom: 0;
    margin-right: 48px;
    /* Force gap between Title and Legend */
}

.chart-legend {
    display: flex;
    flex-direction: row;
    /* HStack */
    gap: 24px;
    font-size: 14px;
    color: #666666;
    margin-left: 0;
    margin-top: 6px;
    /* "Little below offset" */
    margin-right: auto;
    /* Push remaining items (Menu) to far right */
}

/* Ensure right alignment for headers without legends */
.header-actions {
    margin-left: auto;
    color: #9CA3AF;
    cursor: pointer;
}

.table-controls {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.control-item {
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4B5563;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.control-item:hover {
    background-color: #F3F4F6;
    border-color: #D1D5DB;
}

.search-input-box {
    padding: 8px 12px;
    width: 240px;
    /* Specific width for search */
    cursor: text;
}

.search-input-box i {
    color: #9CA3AF;
}

.search-input-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #111827;
}

.search-input-box input::placeholder {
    color: #9CA3AF;
}

.dropdown-btn i {
    font-size: 12px;
    color: #6B7280;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.menu-icon {
    color: #9CA3AF;
    /* Grey color for three dots */
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
}

.chart-container-inner {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}


/* Driver Table */
.table-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 32px;
}

.table-controls {
    display: flex;
    gap: 12px;
}

.dropdown {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #FFFFFF;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 16px;
}

th {
    text-align: left;
    padding: 12px 16px;
    background-color: #F9FAFB;
    color: #6B7280;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

th:first-child {
    border-top-left-radius: 8px;
}

th:last-child {
    border-top-right-radius: 8px;
}

td {
    padding: 16px;
    border-bottom: 1px solid #F3F4F6;
    font-size: 14px;
    color: var(--text-primary);
    vertical-align: middle;
}

/* User Column */
.driver-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.driver-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.driver-details {
    display: flex;
    flex-direction: column;
}

.driver-name {
    font-weight: 500;
    color: var(--text-primary);
}

.driver-role {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Rating */
.rating-cell {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.star-icon {
    color: #F59E0B;
    /* Yellow */
}

/* Status Badges */
.badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.badge-active {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.badge-suspended {
    background-color: #FFF7ED;
    color: #F97316;
}

/* Improved Status Badges for Passenger Table */
.status-badge {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
}

.status-active {
    background-color: #ECFFE2;
    color: #3D9F0A;
}

.status-suspended {
    background-color: #FFF4E5;
    color: #F97316;
}

.status-blocked {
    background-color: #FEE2E2;
    color: #EF4444;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #F6F6F6;
    padding: 15px 16px;
    color: #61677F;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    /* Match uppercase from Screenshot */
    letter-spacing: normal;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sort-icon {
    font-size: 12px;
    color: #9CA3AF;
    margin-left: 4px;
    cursor: pointer;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
    color: #4F5867;
}

.driver-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.driver-name {
    font-weight: 500;
    color: #303030;
    font-size: 14px;
}

.action-btn {
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
}

.inline-action-btn {
    border: none;
    border-radius: 999px;
    padding: 9px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.inline-action-btn:hover {
    transform: translateY(-1px);
}

.inline-action-btn.block {
    background: #FEE2E2;
    color: #B91C1C;
}

.inline-action-btn.unblock {
    background: #DCFCE7;
    color: #166534;
}

.inline-action-btn.neutral {
    background: #E2E8F0;
    color: #334155;
}

.contact-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-stack strong {
    color: #0F172A;
}

.contact-stack span {
    color: #64748B;
    font-size: 12px;
}

.role-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ECFDF3;
    color: #027A48;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.role-chip.role-driver {
    background: #EFF6FF;
    color: #1D4ED8;
}

.role-chip.role-admin,
.role-chip.role-sub-admin {
    background: #F5F3FF;
    color: #6D28D9;
}

.table-filter-select {
    height: 42px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #FFFFFF;
    padding: 0 14px;
    font-family: 'Inter', sans-serif;
    color: #334155;
    outline: none;
}

.empty-hint {
    text-align: center;
    padding: 48px 20px;
    color: #64748B;
}
