* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brown-dark: #24150f;
    --brown: #4a2c1d;
    --brown-light: #6b4630;
    --gold: #b9935a;
    --gold-light: #d7b77b;
    --cream: #f6efe5;
    --cream-dark: #e9ddcf;
    --white: #ffffff;
    --text: #2d211b;
    --muted: #8d7d71;
    --danger: #a94c4c;
    --success: #47775a;
    --shadow: 0 30px 80px rgba(25, 15, 10, 0.20);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text);
}

button,
input,
select,
textarea {
    font-family: inherit;
}


/* =========================
   LOGIN
========================= */

.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(185, 147, 90, 0.15),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(185, 147, 90, 0.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #21130d,
            #4a2c1d 50%,
            #2b1911
        );
}

.login-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.coffee-decoration {
    position: absolute;
    color: rgba(255, 255, 255, 0.04);
    font-size: 150px;
    user-select: none;
}

.decoration-one {
    top: -30px;
    left: 5%;
}

.decoration-two {
    bottom: 12%;
    left: 13%;
    font-size: 80px;
}

.decoration-three {
    right: 4%;
    bottom: -30px;
}

.login-container {
    width: 100%;
    max-width: 460px;
    padding: 25px;
    position: relative;
    z-index: 2;
}

.login-card {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.99),
            rgba(249, 243, 235, 0.98)
        );

    border-radius: 32px;
    padding: 48px 42px 35px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.brand {
    text-align: center;
    margin-bottom: 35px;
}

.brand-logo {
    width: 82px;
    height: 82px;
    margin: 0 auto 17px;

    border-radius: 26px;

    display: flex;
    justify-content: center;
    align-items: center;

    background:
        linear-gradient(
            145deg,
            var(--gold),
            #92713f
        );

    box-shadow:
        0 12px 30px rgba(185, 147, 90, 0.30);
}

.brand-logo span {
    font-size: 38px;
}

.brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 54px;
    line-height: 1;
    color: var(--brown-dark);
    font-weight: 700;
}

.brand-en {
    margin-top: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    letter-spacing: 4px;
    color: var(--gold);
    font-weight: 600;
}

.brand p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brown);
}

.input-box {
    height: 57px;
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 0 15px;

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.75);

    border: 1px solid var(--cream-dark);

    transition: 0.25s;
}

.input-box:focus-within {
    border-color: var(--gold);

    box-shadow:
        0 0 0 4px rgba(185, 147, 90, 0.10);
}

.input-icon {
    font-size: 17px;
    opacity: 0.75;
}

.input-box input {
    width: 100%;
    height: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: var(--text);

    font-size: 13px;
}

.input-box input::placeholder {
    color: #afa39b;
}

.password-toggle {
    border: none;
    background: transparent;
    font-size: 17px;
    opacity: 0.65;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    height: 58px;

    margin-top: 7px;

    border: none;
    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            var(--brown),
            var(--brown-dark)
        );

    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 14px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.25s;

    box-shadow:
        0 12px 25px rgba(74, 44, 29, 0.22);
}

.login-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 17px 32px rgba(74, 44, 29, 0.28);
}

.login-btn:active {
    transform: translateY(0);
}

.btn-arrow {
    font-size: 20px;
    transition: 0.25s;
}

.login-btn:hover .btn-arrow {
    transform: translateX(-4px);
}

.alert {
    padding: 12px 15px;

    border-radius: 13px;

    margin-bottom: 20px;

    display: flex;
    align-items: center;

    gap: 10px;

    font-size: 12px;
}

.alert-error {
    background: rgba(169, 76, 76, 0.08);

    border:
        1px solid rgba(169, 76, 76, 0.15);

    color: var(--danger);
}

.login-divider {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 30px;
}

.login-divider span {
    height: 1px;
    flex: 1;
    background: var(--cream-dark);
}

.login-divider small {
    color: var(--gold);

    font-family: 'Playfair Display', serif;

    font-size: 11px;

    letter-spacing: 2px;
}

.login-footer {
    text-align: center;

    margin-top: 12px;

    color: var(--muted);

    font-size: 10px;
}


/* =========================
   DASHBOARD
========================= */

.dashboard-page {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(185, 147, 90, 0.10),
            transparent 28%
        ),
        #f7f2eb;
}


/* HEADER */

.main-header {
    min-height: 82px;

    padding: 0 5%;

    background: rgba(255, 255, 255, 0.94);

    border-bottom: 1px solid #e9dfd4;

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: sticky;

    top: 0;

    z-index: 100;

    backdrop-filter: blur(15px);
}

.header-brand {
    display: flex;

    align-items: center;

    gap: 13px;
}

.header-logo {
    width: 48px;
    height: 48px;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #b9935a,
            #896a3d
        );

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 22px;

    box-shadow:
        0 8px 20px rgba(185, 147, 90, 0.22);
}

.header-brand h2 {
    font-family: 'Playfair Display', serif;

    font-size: 25px;

    color: #2b1911;

    line-height: 1;
}

.header-brand span {
    display: block;

    font-family: 'Playfair Display', serif;

    font-size: 8px;

    letter-spacing: 2px;

    color: #b9935a;

    margin-top: 4px;
}

.header-user {
    display: flex;

    align-items: center;

    gap: 13px;
}

.user-info {
    text-align: right;
}

.user-info strong {
    display: block;

    font-size: 12px;

    color: #3a281e;
}

.user-info small {
    display: block;

    color: #a08f81;

    font-size: 10px;

    margin-top: 2px;
}

.user-avatar {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: #4a2c1d;

    color: white;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 16px;

    font-weight: 700;
}

.logout-button {
    width: 38px;
    height: 38px;

    border-radius: 12px;

    display: flex;

    align-items: center;
    justify-content: center;

    text-decoration: none;

    color: #9c6a58;

    background: #fbf3ed;

    transition: 0.25s;
}

.logout-button:hover {
    background: #4a2c1d;

    color: white;

    transform: translateY(-2px);
}


/* CONTAINER */

.dashboard-container {
    width: min(1400px, 90%);

    margin: auto;

    padding: 45px 0 60px;
}


/* WELCOME */

.welcome-section {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 35px;
}

.welcome-small,
.section-heading span {
    color: #b9935a;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1px;
}

.welcome-section h1 {
    margin-top: 5px;

    font-size: 27px;

    color: #2b1911;
}

.welcome-section p {
    color: #958478;

    font-size: 12px;

    margin-top: 5px;
}

.current-date {
    background: white;

    border: 1px solid #eadfd3;

    border-radius: 15px;

    padding: 12px 20px;

    text-align: center;

    min-width: 130px;
}

.current-date span {
    display: block;

    font-size: 10px;

    color: #9a897b;
}

.current-date strong {
    display: block;

    color: #4a2c1d;

    font-size: 13px;

    margin-top: 3px;
}


/* NAVIGATION */

.dashboard-navigation {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;

    margin-bottom: 25px;
}

.nav-card {
    min-height: 92px;

    padding: 18px;

    background: white;

    border: 1px solid #eadfd3;

    border-radius: 18px;

    display: flex;

    align-items: center;

    gap: 13px;

    text-decoration: none;

    color: #2d211b;

    transition: 0.25s;
}

.nav-card:hover {
    transform: translateY(-4px);

    border-color: #b9935a;

    box-shadow:
        0 15px 30px rgba(50, 30, 20, 0.08);
}

.nav-icon {
    width: 48px;
    height: 48px;

    border-radius: 14px;

    background: #f8f1e8;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 22px;
}

.nav-card div:nth-child(2) {
    flex: 1;
}

.nav-card strong {
    display: block;

    font-size: 13px;
}

.nav-card span {
    display: block;

    margin-top: 3px;

    color: #9b8a7d;

    font-size: 9px;
}

.nav-card b {
    color: #b9935a;

    font-size: 17px;
}


/* STATISTICS */

.statistics-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;

    margin-bottom: 25px;
}

.stat-card {
    background: white;

    border: 1px solid #eadfd3;

    border-radius: 20px;

    padding: 21px;

    transition: 0.25s;
}

.stat-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 30px rgba(50, 30, 20, 0.07);
}

.stat-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 18px;
}

.stat-icon {
    width: 43px;
    height: 43px;

    border-radius: 13px;

    background: #f8f1e8;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 19px;
}

.stat-label {
    font-size: 9px;

    color: #b9935a;

    background: #faf5ee;

    padding: 4px 9px;

    border-radius: 20px;
}

.stat-number {
    display: block;

    font-family: 'Playfair Display', serif;

    font-size: 28px;

    color: #2b1911;
}

.stat-number small {
    font-family: 'Cairo', sans-serif;

    font-size: 11px;

    color: #b9935a;
}

.stat-title {
    display: block;

    color: #9a897b;

    font-size: 10px;

    margin-top: 4px;
}


/* CONTENT */

.dashboard-content {
    display: grid;

    grid-template-columns: 1.7fr 1fr;

    gap: 20px;

    margin-bottom: 40px;
}

.dashboard-panel {
    background: white;

    border: 1px solid #eadfd3;

    border-radius: 22px;

    overflow: hidden;
}

.panel-header {
    padding: 22px 23px 18px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-bottom: 1px solid #f0e8df;
}

.panel-header span {
    color: #b9935a;

    font-size: 9px;
}

.panel-header h2 {
    font-size: 16px;

    margin-top: 3px;

    color: #33231a;
}

.panel-header a {
    color: #b9935a;

    text-decoration: none;

    font-size: 10px;

    font-weight: 700;
}


/* TABLE */

.orders-table-wrapper {
    overflow-x: auto;
}

.orders-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 10px;
}

.orders-table th {
    text-align: right;

    padding: 13px 20px;

    background: #fcfaf7;

    color: #9b8a7d;

    font-size: 9px;

    font-weight: 600;
}

.orders-table td {
    padding: 14px 20px;

    border-top: 1px solid #f1e9e0;

    white-space: nowrap;
}

.orders-table td strong {
    color: #4a2c1d;
}


/* STATUS */

.status-badge {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 8px;

    font-weight: 700;
}

.status-new {
    background: #fff4df;

    color: #9b6c2c;
}

.status-preparing {
    background: #eee8f8;

    color: #6d5291;
}

.status-completed {
    background: #e9f5ed;

    color: #47775a;
}

.status-cancelled {
    background: #faeaea;

    color: #9b4d4d;
}


/* TOP PRODUCTS */

.top-products {
    padding: 7px 20px 15px;
}

.top-product {
    display: flex;

    align-items: center;

    gap: 11px;

    padding: 13px 0;

    border-bottom: 1px solid #f2eae2;
}

.top-product:last-child {
    border-bottom: none;
}

.product-rank {
    width: 25px;
    height: 25px;

    border-radius: 8px;

    background: #4a2c1d;

    color: white;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 9px;
}

.product-mini-icon {
    width: 39px;
    height: 39px;

    border-radius: 11px;

    background: #f8f1e8;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 18px;
}

.product-mini-info {
    flex: 1;
}

.product-mini-info strong {
    display: block;

    font-size: 11px;

    color: #3c2b21;
}

.product-mini-info span {
    display: block;

    margin-top: 3px;

    color: #a08e81;

    font-size: 8px;
}

.top-product > b {
    color: #b9935a;

    font-size: 15px;
}


/* EMPTY */

.empty-state {
    padding: 45px 20px;

    text-align: center;

    color: #9c8b7d;
}

.empty-state div {
    font-size: 32px;

    margin-bottom: 10px;
}

.empty-state p {
    font-size: 10px;
}


/* QUICK */

.quick-section {
    margin-top: 10px;
}

.section-heading {
    margin-bottom: 15px;
}

.section-heading h2 {
    margin-top: 3px;

    font-size: 18px;

    color: #33231a;
}

.quick-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}

.quick-card {
    background: white;

    border: 1px solid #eadfd3;

    border-radius: 18px;

    padding: 20px;

    text-decoration: none;

    color: #30221a;

    transition: 0.25s;
}

.quick-card:hover {
    transform: translateY(-3px);

    border-color: #b9935a;
}

.quick-card > span {
    display: block;

    font-size: 25px;

    margin-bottom: 12px;
}

.quick-card strong {
    display: block;

    font-size: 12px;
}

.quick-card small {
    display: block;

    color: #9a897b;

    font-size: 9px;

    margin-top: 4px;
}


/* FOOTER */

.main-footer {
    padding: 25px 5%;

    border-top: 1px solid #eadfd3;

    display: flex;

    justify-content: center;

    gap: 10px;

    color: #a08f81;

    font-size: 9px;
}

.main-footer span:first-child {
    font-family: 'Playfair Display', serif;

    color: #b9935a;

    letter-spacing: 1px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .dashboard-navigation,
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-content {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 650px) {

    .main-header {
        padding: 0 20px;
    }

    .user-info {
        display: none;
    }

    .dashboard-container {
        width: 92%;

        padding-top: 30px;
    }

    .welcome-section {
        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }

    .dashboard-navigation,
    .statistics-grid,
    .quick-grid {
        grid-template-columns: 1fr;
    }

    .welcome-section h1 {
        font-size: 22px;
    }

    .current-date {
        width: 100%;
    }

    .login-card {
        padding: 38px 25px 28px;

        border-radius: 25px;
    }

    .brand h1 {
        font-size: 46px;
    }

    .brand-logo {
        width: 72px;
        height: 72px;

        border-radius: 22px;
    }
}