﻿/* ============================================================
   TradeDesk — Stylesheet.css
   Sections:
     1. Page Layout & Login
     2. Left Panel
     3. Brand
     4. Left Hero
     5. Right Panel (Login)
     6. Shared Form Elements
     7. Register Page
     8. Sidebar (User Master)
     9. Main Content (User Master)
    10. Shop Page
   ============================================================ */


/* ===== 1. PAGE LAYOUT & LOGIN ===== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-page {
    display: flex;
    width: 1200px;
    min-height: 720px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    zoom: 1.15;
}


/* ===== 2. LEFT PANEL ===== */

.login-left {
    flex: 1;
    background: #0d1b2e;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    position: relative;
}

    .login-left::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 56px), repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 56px);
        pointer-events: none;
    }


/* ===== 3. BRAND ===== */

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 2px solid #2dd4a0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #2dd4a0;
}

.brand-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

.brand-sub {
    font-size: 11px;
    color: #8899aa;
    letter-spacing: 0.14em;
}


/* ===== 4. LEFT HERO ===== */

.hero {
    position: relative;
    z-index: 1;
}

    .hero h1 {
        font-size: 42px;
        font-weight: 700;
        line-height: 1.2;
        color: #fff;
        margin: 0 0 1rem;
    }

        .hero h1 span {
            color: #2dd4a0;
        }

    .hero p {
        font-size: 15px;
        color: #8899aa;
        line-height: 1.7;
        margin: 0 0 2rem;
        max-width: 340px;
    }

.features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .features li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 15px;
        color: #cdd6e0;
    }

        .features li::before {
            content: '✓';
            width: 22px;
            height: 22px;
            border-radius: 50%;
            border: 1.5px solid #2dd4a0;
            color: #2dd4a0;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

.left-footer {
    font-size: 13px;
    color: #556677;
    position: relative;
    z-index: 1;
}


/* ===== 5. RIGHT PANEL (LOGIN) ===== */

.login-right {
    flex: 1.1;
    background: #fff;
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f9f4;
    color: #0f6e56;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.login-right h2,
.register-card h2 {
    font-size: 34px;
    font-weight: 700;
    color: #0d1b2e;
    margin: 0 0 0.4rem;
}

.login-right .subtitle,
.register-card .subtitle {
    font-size: 15px;
    color: #6b7a8d;
    margin: 0 0 2rem;
}


/* ===== 6. SHARED FORM ELEMENTS ===== */

.form-group {
    margin-bottom: 1.4rem;
}

    .form-group label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: #0d1b2e;
        margin-bottom: 0.5rem;
    }

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-wrap .icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #8899aa;
        font-size: 17px;
    }

    .input-wrap input[type="text"],
    .input-wrap input[type="password"] {
        width: 100%;
        padding: 14px 16px 14px 44px;
        font-size: 15px;
        border: 1.5px solid #dde3ed;
        border-radius: 10px;
        background: #f5f7fa;
        color: #0d1b2e;
        outline: none;
        box-sizing: border-box;
        font-family: inherit;
        transition: border-color 0.15s;
    }

    .input-wrap input:focus {
        border-color: #2dd4a0;
        background: #fff;
    }

.forgot {
    text-align: right;
    margin-top: 0.5rem;
}

    .forgot a {
        font-size: 13px;
        color: #1a6fcf;
        text-decoration: none;
    }

.btn-signin,
.btn-register {
    width: 100%;
    padding: 15px;
    background: #0d1b2e;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    font-family: inherit;
    letter-spacing: 0.02em;
}

    .btn-signin:hover,
    .btn-register:hover {
        background: #1a3050;
    }

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1.4rem 0;
    color: #b0bac8;
    font-size: 14px;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e5eaf0;
    }

.register-row {
    text-align: center;
    font-size: 14px;
    color: #6b7a8d;
}

    .register-row a {
        color: #1a6fcf;
        font-weight: 600;
        text-decoration: none;
    }

.enc-note {
    text-align: center;
    font-size: 12px;
    color: #b0bac8;
    margin-top: 1.25rem;
    filter: grayscale(1);
}


/* ===== 7. REGISTER PAGE ===== */

.register-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f0f4f8;
    font-family: 'Segoe UI', sans-serif;
}

.register-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    padding: 4rem 3.5rem;
    width: 520px;
    zoom: 1.15;
}

.register-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.register-select {
    width: 100%;
    padding: 14px 48px 14px 16px;
    font-size: 15px;
    border: 1.5px solid #dde3ed;
    border-radius: 10px;
    background: #f5f7fa;
    color: #0d1b2e;
    outline: none;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

    .register-select:focus {
        border-color: #2dd4a0;
        background: #fff;
    }

.select-arrow {
    position: absolute;
    right: 16px;
    top: 35%;
    transform: translateY(-50%) scaleX(1.6);
    color: #555e6d;
    font-size: 16px;
    pointer-events: none;
    font-weight: 700;
}


/* ===== 8. SIDEBAR (User Master) ===== */

/* Reset body centering for dashboard pages */
body:has(.wrapper) {
    display: block;
    align-items: unset;
    justify-content: unset;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #0d1b2e;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 50;
    border-right: 1px solid rgba(45,212,160,0.15);
}

    /* Same grid overlay as login left panel */
    .sidebar::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 56px), repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 56px);
        pointer-events: none;
    }

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.75rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(45,212,160,0.15);
    position: relative;
    z-index: 1;
    text-decoration: none;
}

.sidebar-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 2px solid #2dd4a0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #2dd4a0;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.sidebar-sub {
    font-size: 10px;
    color: #8899aa;
    letter-spacing: 0.12em;
}

.sidebar-user {
    margin: 1.25rem 1.5rem;
    padding: 0.85rem 1rem;
    background: rgba(45,212,160,0.08);
    border: 1px solid rgba(45,212,160,0.18);
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

.sidebar-user-label {
    font-size: 11px;
    color: #8899aa;
    margin-bottom: 2px;
    letter-spacing: 0.06em;
}

.sidebar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #2dd4a0;
}

.nav-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #556677;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem 0.4rem;
    position: relative;
    z-index: 1;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 0.75rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

    .sidebar-nav a,
    .sidebar-nav .logout-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 14px;
        border-radius: 9px;
        font-size: 14px;
        font-weight: 500;
        color: #8899aa;
        text-decoration: none;
        border: none;
        background: none;
        width: 100%;
        text-align: left;
        cursor: pointer;
        font-family: 'Segoe UI', sans-serif;
        transition: background 0.15s, color 0.15s, padding-left 0.15s;
    }

        .sidebar-nav a:hover {
            background: rgba(255,255,255,0.06);
            color: #fff;
        }

        .sidebar-nav a.active {
            background: rgba(45,212,160,0.12);
            color: #2dd4a0;
            border: 1px solid rgba(45,212,160,0.2);
        }

.nav-icon {
    font-size: 17px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 1rem 0.75rem 1.5rem;
    border-top: 1px solid rgba(45,212,160,0.12);
    position: relative;
    z-index: 1;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    color: #8899aa;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: 'Segoe UI', sans-serif;
    transition: background 0.15s, color 0.15s;
}

    .logout-btn:hover {
        background: rgba(226,75,74,0.1);
        color: #e24b4a;
    }


/* ===== 9. MAIN CONTENT (User Master) ===== */

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem 2.5rem;
    min-height: 100vh;
    width: calc(100% - 260px);
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #dde3ed;
}

.topbar-title {
    font-size: 22px;
    font-weight: 700;
    color: #0d1b2e;
}

.topbar-sub {
    font-size: 13px;
    color: #8899aa;
    margin-top: 2px;
}

.topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f9f4;
    color: #0f6e56;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: 20px;
}

.card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #e8edf4;
    padding: 2rem 2.5rem;
    flex: 1;
    width: 100%;
}


/* ===== 10. SHOP PAGE ===== */

.shop-container {
    font-family: 'Segoe UI', sans-serif;
    color: #0d1b2e;
}

    .shop-container h2 {
        font-size: 20px;
        font-weight: 700;
        color: #0d1b2e;
        margin-bottom: 1rem;
        padding-bottom: 0.6rem;
        border-bottom: 2px solid #e8edf4;
    }

    .shop-container h3 {
        font-size: 16px;
        font-weight: 700;
        color: #0d1b2e;
        margin: 1.75rem 0 0.85rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e8edf4;
    }

/* Grid / Table */
.grid-view {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    font-size: 14px;
}

    .grid-view th {
        background: #0d1b2e;
        color: #fff;
        padding: 12px 14px;
        text-align: left;
        font-weight: 600;
        font-size: 13px;
        letter-spacing: 0.04em;
    }

        .grid-view th:first-child {
            border-radius: 8px 0 0 0;
        }

        .grid-view th:last-child {
            border-radius: 0 8px 0 0;
        }

    .grid-view td {
        padding: 11px 14px;
        border-bottom: 1px solid #e8edf4;
        color: #0d1b2e;
        vertical-align: middle;
    }

    .grid-view tr:last-child td {
        border-bottom: none;
    }

    .grid-view tr:hover td {
        background: #f5f9ff;
    }

    /* Quantity textbox */
    .grid-view input[type="text"],
    .grid-view input[type="number"] {
        width: 52px;
        padding: 6px 8px;
        font-size: 14px;
        font-family: 'Segoe UI', sans-serif;
        border: 1.5px solid #dde3ed;
        border-radius: 7px;
        background: #f5f7fa;
        color: #0d1b2e;
        outline: none;
        text-align: center;
        transition: border-color 0.15s;
    }

        .grid-view input[type="text"]:focus,
        .grid-view input[type="number"]:focus {
            border-color: #2dd4a0;
            background: #fff;
        }

/* Buttons */
.btn {
    padding: 7px 14px;
    background: #2dd4a0;
    color: #0d1b2e;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s, opacity 0.15s;
}

    .btn:hover {
        background: #22b989;
    }

.btn-checkout {
    padding: 11px 24px;
    background: #0d1b2e;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 9px;
    letter-spacing: 0.03em;
}

    .btn-checkout:hover {
        background: #1a3050;
    }

/* Summary Box */
.summary-box {
    background: #f5f9ff;
    border: 1px solid #dde3ed;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    width: 420px;
    margin-left: auto;
    margin-top: 1.5rem;
    text-align: right;
}

.summary-row {
    margin-bottom: 8px;
    font-size: 14px;
    color: #556677;
}

    .summary-row .lbl-value {
        color: #0d1b2e;
        font-weight: 600;
    }

    .summary-row.total-row {
        font-size: 17px;
        font-weight: 700;
        color: #0d1b2e;
        border-top: 1px dashed #dde3ed;
        padding-top: 10px;
        margin-top: 10px;
    }

    .summary-row.tier-row {
        font-size: 13px;
        color: #8899aa;
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e8edf4;
    }

.history-container {
    font-family: 'Segoe UI', sans-serif;
    color: #0d1b2e;
}

    .history-container h2 {
        font-size: 20px;
        font-weight: 700;
        color: #0d1b2e;
        margin-bottom: 1rem;
        padding-bottom: 0.6rem;
        border-bottom: 2px solid #e8edf4;
    }

.no-data {
    display: block;
    text-align: center;
    padding: 2rem;
    font-size: 15px;
    color: #8899aa;
}

.lnk-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.25rem;
    padding: 8px 16px;
    background: #f0f4f8;
    color: #0d1b2e;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #dde3ed;
    transition: background 0.15s, border-color 0.15s;
}

    .lnk-btn:hover {
        background: #e2e8f0;
        border-color: #c8d0dc;
    }

/* ===== 12. CHANGE PASSWORD PAGE ===== */

.change-password-container {
    max-width: 480px;
}

    .change-password-container h2 {
        font-size: 20px;
        font-weight: 700;
        color: #0d1b2e;
        margin-bottom: 0.4rem;
    }

    .change-password-container p {
        font-size: 14px;
        color: #8899aa;
        margin-bottom: 1.5rem;
    }

    .change-password-container hr {
        border: none;
        border-top: 1px solid #e8edf4;
        margin-bottom: 1.75rem;
    }

    .change-password-container .form-group {
        margin-bottom: 1.25rem;
    }

        .change-password-container .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: #0d1b2e;
            margin-bottom: 0.5rem;
        }

        .change-password-container .form-group input[type="password"] {
            width: 100%;
            max-width: 360px;
            padding: 11px 14px;
            font-size: 14px;
            font-family: 'Segoe UI', sans-serif;
            border: 1.5px solid #dde3ed;
            border-radius: 9px;
            background: #f5f7fa;
            color: #0d1b2e;
            outline: none;
            transition: border-color 0.15s, background 0.15s;
        }

            .change-password-container .form-group input[type="password"]:focus {
                border-color: #2dd4a0;
                background: #fff;
            }

.btn-update {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 11px 28px;
    background: #0d1b2e;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s;
}

    .btn-update:hover {
        background: #1a3050;
    }

/* ===== 13. ADD PRODUCT PAGE ===== */

.add-product-container {
    max-width: 480px;
}

    .add-product-container h2 {
        font-size: 20px;
        font-weight: 700;
        color: #0d1b2e;
        margin-bottom: 1.75rem;
        padding-bottom: 0.6rem;
        border-bottom: 2px solid #e8edf4;
    }

    .add-product-container .form-group {
        margin-bottom: 1.25rem;
    }

        .add-product-container .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: #0d1b2e;
            margin-bottom: 0.5rem;
        }

        .add-product-container .form-group input[type="text"] {
            width: 100%;
            max-width: 360px;
            padding: 11px 14px;
            font-size: 14px;
            font-family: 'Segoe UI', sans-serif;
            border: 1.5px solid #dde3ed;
            border-radius: 9px;
            background: #f5f7fa;
            color: #0d1b2e;
            outline: none;
            transition: border-color 0.15s, background 0.15s;
        }

            .add-product-container .form-group input[type="text"]:focus {
                border-color: #2dd4a0;
                background: #fff;
            }

.btn-add {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 11px 28px;
    background: #2dd4a0;
    color: #0d1b2e;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s;
}

    .btn-add:hover {
        background: #22b989;
    }