:root {
    --black: #090909;
    --black-soft: #151515;
    --red: #d71920;
    --red-dark: #a90f15;
    --white: #ffffff;
    --background: #f4f5f7;
    --border: #e3e5e8;
    --text: #1c1d20;
    --muted: #71757c;
    --success: #16834a;
    --shadow: 0 16px 45px rgba(14, 18, 27, 0.10);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

/* LOGIN */

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    background: var(--white);
}

.login-brand {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 70px;
    color: var(--white);
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(215, 25, 32, 0.34),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #050505 0%,
            #121212 55%,
            #250508 100%
        );
}

.login-brand::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    bottom: -160px;
    border: 70px solid rgba(215, 25, 32, 0.14);
    border-radius: 50%;
}

.login-brand::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    background: var(--red);
}

.brand-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.login-logo {
    width: min(520px, 90%);
    max-height: 205px;
    object-fit: contain;
    object-position: left center;
    border-radius: 12px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
}

.brand-label,
.eyebrow {
    margin: 32px 0 10px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.brand-content h1 {
    margin: 0;
    max-width: 580px;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.04;
}

.brand-description {
    max-width: 560px;
    margin: 25px 0;
    color: #d1d1d1;
    font-size: 18px;
    line-height: 1.6;
}

.brand-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.brand-points span {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px;
}

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

.login-card h2 {
    margin: 0;
    font-size: 38px;
}

.login-subtitle {
    margin: 12px 0 34px;
    color: var(--muted);
    line-height: 1.5;
}

.login-card label {
    display: block;
    margin: 20px 0 9px;
    font-size: 14px;
    font-weight: 700;
}

.input-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fafafa;
    transition: 0.2s ease;
}

.input-box:focus-within {
    border-color: var(--red);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.09);
}

.input-icon {
    padding-left: 16px;
    color: var(--red);
    font-size: 11px;
}

.input-box input {
    width: 100%;
    padding: 16px;
    border: 0;
    outline: 0;
    background: transparent;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 800;
    transition: 0.2s ease;
}

.primary-button {
    width: 100%;
    margin-top: 28px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow: 0 12px 26px rgba(215, 25, 32, 0.25);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(215, 25, 32, 0.33);
}

.secondary-button {
    color: var(--red);
    border: 1px solid rgba(215, 25, 32, 0.22);
    background: rgba(215, 25, 32, 0.06);
}

.security-note {
    margin-top: 24px;
    text-align: center;
    color: #989ba0;
    font-size: 12px;
}

.login-mobile-logo {
    display: none;
}

.alert {
    margin: 18px 0;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 14px;
}

.alert-error {
    color: #8d1218;
    border: 1px solid #f3c1c3;
    background: #fff0f1;
}

/* DASHBOARD */

.app-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px 1fr;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 270px;
    display: flex;
    flex-direction: column;
    color: var(--white);
    background:
        linear-gradient(
            180deg,
            var(--black) 0%,
            var(--black-soft) 100%
        );
}

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

.sidebar-brand img {
    width: 100%;
    height: 82px;
    object-fit: contain;
    border-radius: 7px;
}

.sidebar-brand span {
    display: block;
    margin-top: 14px;
    color: #a9aaad;
    text-align: center;
    font-size: 12px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 5px 0;
    padding: 13px 15px;
    border-radius: 10px;
    color: #c7c8ca;
    font-size: 14px;
    font-weight: 700;
    transition: 0.18s ease;
}

.nav-link span {
    width: 21px;
    color: var(--red);
    text-align: center;
    font-size: 18px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(215, 25, 32, 0.16);
}

.nav-link.active {
    border-left: 3px solid var(--red);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer p {
    margin: 0 0 4px;
    color: #8d8e92;
    font-size: 11px;
}

.sidebar-footer strong {
    display: block;
    font-size: 14px;
}

.sidebar-footer a {
    display: inline-block;
    margin-top: 14px;
    color: #ef6f74;
    font-size: 12px;
}

.main-content {
    grid-column: 2;
    padding: 38px;
}

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

.topbar .eyebrow,
.section-heading .eyebrow {
    margin: 0 0 7px;
}

.topbar h1 {
    margin: 0;
    font-size: 34px;
}

.page-description {
    margin: 8px 0 0;
    color: var(--muted);
}

.compact-button {
    width: auto;
    margin: 0;
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-card,
.content-card {
    border: 1px solid rgba(22, 26, 35, 0.06);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 21px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    flex: 0 0 50px;
    border-radius: 13px;
    color: var(--red);
    background: rgba(215, 25, 32, 0.08);
    font-size: 22px;
    font-weight: 900;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    margin: 4px 0;
    font-size: 30px;
}

.stat-card small {
    color: #9b9da1;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
    gap: 20px;
    margin-top: 22px;
}

.content-card {
    padding: 24px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;
    font-size: 20px;
}

.section-heading a {
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
}

.empty-state {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    border: 1px dashed #d7d9dd;
    border-radius: 14px;
    background: #fafafa;
}

.empty-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--red);
    background: rgba(215, 25, 32, 0.08);
    font-size: 30px;
}

.empty-state h3 {
    margin: 18px 0 7px;
}

.empty-state p {
    max-width: 360px;
    margin: 0 0 21px;
    color: var(--muted);
    line-height: 1.5;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 11px 0;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: 0.18s ease;
}

.quick-action:hover {
    transform: translateX(3px);
    border-color: rgba(215, 25, 32, 0.3);
    background: #fff8f8;
}

.quick-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 11px;
    color: var(--white);
    background: var(--black-soft);
    font-size: 20px;
}

.quick-action strong,
.quick-action small {
    display: block;
}

.quick-action small {
    margin-top: 4px;
    color: var(--muted);
}

/* ERROR */

.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
    background: var(--background);
}

.error-card {
    width: min(500px, 100%);
    padding: 50px;
    text-align: center;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.error-card > span {
    color: var(--red);
    font-size: 76px;
    font-weight: 900;
}

.error-card .primary-button {
    width: auto;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-brand {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 28px;
    }

    .login-mobile-logo {
        display: block;
        margin-bottom: 32px;
    }

    .login-mobile-logo img {
        width: 100%;
        max-height: 130px;
        object-fit: contain;
        border-radius: 10px;
    }

    .app-layout {
        display: block;
    }

    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
    }

    .sidebar-brand img {
        height: 95px;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-footer {
        display: none;
    }

    .main-content {
        padding: 24px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 18px;
    }

    .topbar h1 {
        font-size: 27px;
    }

    .compact-button {
        width: 100%;
    }
}

.quotation-list-wrapper {
    overflow-x: auto;
}

.quotation-list {
    width: 100%;
    border-collapse: collapse;
}

.quotation-list th {
    padding: 14px;
    color: white;
    background: #111111;
    font-size: 12px;
    text-align: left;
}

.quotation-list td {
    padding: 14px;
    border-bottom: 1px solid #e6e7e9;
}

.quotation-list tbody tr:hover {
    background: #fff7f7;
}

.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    color: #8d1218;
    background: #fff0f1;
    font-size: 11px;
    font-weight: 800;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.mini-button {
    width: auto;
    min-height: 35px;
    margin: 0;
    padding: 0 12px;
    font-size: 11px;
}

