/* ===============================
   GLOBAL DESIGN
================================= */

:root {
    --bg-page: #f4f7fb;
    --bg-card: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --border-dark: #d1d5db;
    --green-dark: #02140b;
    --green-deep: #06351f;
    --green-main: #0f7a3b;
    --green: #16a34a;
    --green-light: #22c55e;
    --green-soft: #ecfdf5;
    --green-hover: #15803d;
    --red: #ef4444;
    --red-hover: #dc2626;
    --gray: #6b7280;
    --gray-hover: #4b5563;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 3px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 35px rgba(0,0,0,0.25);
    --green-gradient: radial-gradient(circle at 15% 20%, rgba(34, 197, 94, 0.35), transparent 35%), radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.25), transparent 35%), linear-gradient(135deg, #02140b 0%, #06351f 45%, #0f7a3b 100%);
    --green-gradient-page: radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.35), transparent 35%), radial-gradient(circle at 85% 75%, rgba(16, 185, 129, 0.35), transparent 35%), linear-gradient(135deg, #02140b 0%, #06351f 45%, #0f7a3b 100%);
    --button-gradient: linear-gradient(135deg, #0f7a3b 0%, #16a34a 55%, #22c55e 100%);
    --button-gradient-hover: linear-gradient(135deg, #065f2c 0%, #15803d 55%, #16a34a 100%);
}

/* ===============================
   GLOBAL RESET
================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html,
body {
    min-height: 100%;
}

body {
    background: var(--bg-page);
    color: #222;
}

a {
    text-decoration: none;
}

.page-wrapper {
    min-height: 100vh;
}

/* ===============================
   SHARED BUTTONS
================================= */
.btn {
    display: inline-block;
    border: none;
    padding: 11px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}

.btn-blue,
.btn-primary,
.btn-register,
.records-btn,
.records-search-btn,
.addproduct-save,
.profile-save-btn,
.loginpage-btn,
.loginpage-nav-btn,
.register-btn,
.landing-login-btn,
.landing-primary,
.landing-search-box a,
.admin-home-btn,
.admin-home-menu a,
.full-btn,
.cart-checkout-btn,
.btn-green {
    background: var(--button-gradient) !important;
    color: #ffffff !important;
    border: none !important;
}

    .btn-blue:hover,
    .btn-primary:hover,
    .btn-register:hover,
    .records-btn:hover,
    .records-search-btn:hover,
    .addproduct-save:hover,
    .profile-save-btn:hover,
    .loginpage-btn:hover,
    .loginpage-nav-btn:hover,
    .register-btn:hover,
    .landing-login-btn:hover,
    .landing-primary:hover,
    .landing-search-box a:hover,
    .admin-home-btn:hover,
    .admin-home-menu a:hover,
    .full-btn:hover,
    .cart-checkout-btn:hover,
    .btn-green:hover {
        background: var(--button-gradient-hover) !important;
        color: #ffffff !important;
    }

.btn-red,
.remove-btn,
.cart-remove-btn {
    background: var(--red) !important;
    color: white !important;
}

    .btn-red:hover,
    .remove-btn:hover,
    .cart-remove-btn:hover {
        background: var(--red-hover) !important;
    }

.btn-gray,
.addproduct-clear,
.profile-clear-btn,
.cart-continue-btn {
    background: var(--gray) !important;
    color: white !important;
}

    .btn-gray:hover,
    .addproduct-clear:hover,
    .profile-clear-btn:hover,
    .cart-continue-btn:hover {
        background: var(--gray-hover) !important;
    }

.full-btn {
    width: 100%;
    margin-top: 10px;
}

/* ===============================
   TOP NAVIGATION
================================= */
.topnav {
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    background: var(--green-gradient) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 36px !important;
    color: white !important;
}

.logo {
    display: flex !important;
    align-items: center !important;
    height: 50px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: white !important;
    margin: 0 !important;
}

.nav-links {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 50px !important;
    gap: 24px !important;
    margin-left: auto !important;
}

    .nav-links > a,
    .dropdown-btn {
        display: flex !important;
        align-items: center !important;
        height: 50px !important;
        color: white !important;
        font-size: 12px !important;
        font-weight: bold !important;
        text-decoration: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

        .nav-links > a:hover,
        .dropdown-btn:hover,
        .dropdown:hover .dropdown-btn {
            color: var(--green-light) !important;
        }

.dropdown {
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

.dropdown-content {
    display: none !important;
    position: absolute !important;
    top: 50px !important;
    right: 0 !important;
    left: auto !important;
    background: #ffffff !important;
    min-width: 190px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15) !important;
    z-index: 9999 !important;
    overflow: hidden !important;
}

.dropdown:hover .dropdown-content {
    display: block !important;
}

.dropdown-content a {
    display: block !important;
    height: auto !important;
    color: var(--green-deep) !important;
    background: #ffffff !important;
    padding: 13px 16px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

    .dropdown-content a:hover {
        background: var(--green-soft) !important;
        color: var(--green) !important;
    }

/* ===============================
   MAIN CONTENT / LAYOUT
================================= */
.main-content {
    min-height: calc(100vh - 125px);
    padding: 24px;
}

.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 65px);
}

.sidebar {
    width: 240px;
    background: #0b1f33;
    color: white;
    padding: 25px 0;
}

    .sidebar h3 {
        padding: 0 22px;
        margin-bottom: 25px;
        font-size: 16px;
        text-transform: uppercase;
    }

    .sidebar a {
        display: block;
        color: white;
        padding: 14px 22px;
        font-size: 14px;
        transition: 0.3s;
    }

        .sidebar a:hover,
        .sidebar a.active {
            background: var(--button-gradient) !important;
        }

.page-title {
    width: 100%;
    max-width: 980px;
    text-align: left;
    margin-bottom: 22px;
}

/* ===============================
   SIMPLE ADMIN HOMEPAGE
================================= */
.admin-home-simple {
    width: 100% !important;
    min-height: calc(100vh - 170px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 80px 20px !important;
    background: #ffffff !important;
}

    .admin-home-simple h1 {
        font-size: 58px !important;
        font-weight: 900 !important;
        letter-spacing: 6px !important;
        color: var(--green-dark) !important;
        margin-bottom: 65px !important;
    }

.admin-home-menu {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 28px !important;
    flex-wrap: wrap !important;
}

    .admin-home-menu a,
    .admin-home-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 200px !important;
        height: 62px !important;
        color: #ffffff !important;
        font-size: 20px !important;
        font-weight: bold !important;
        text-decoration: none !important;
        border-radius: 0 !important;
        transition: 0.2s ease !important;
    }

        .admin-home-menu a:hover,
        .admin-home-btn:hover {
            transform: translateY(-3px) !important;
            box-shadow: 0 6px 18px rgba(22, 163, 74, 0.28) !important;
        }

/* ===============================
   LANDING PAGE
================================= */
.landing-page,
.loginpage-wrapper,
.register-wrapper {
    min-height: 100vh;
    background: var(--green-gradient-page) !important;
    color: #ffffff;
}

.landing-page {
    overflow: hidden;
}

.landing-nav,
.loginpage-nav {
    width: 100%;
    height: 70px;
    padding: 0 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.loginpage-nav {
    height: 65px;
    padding: 0 38px;
}

.landing-logo,
.loginpage-logo {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
}

.landing-links,
.loginpage-nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.loginpage-nav-links {
    gap: 22px;
}

    .landing-links a,
    .loginpage-nav-links a {
        color: #dbeafe;
        font-size: 14px;
        font-weight: bold;
        text-decoration: none;
    }

        .landing-links a:hover,
        .loginpage-nav-links a:hover {
            color: var(--green-light) !important;
        }

.landing-login-btn,
.loginpage-nav-btn {
    padding: 10px 18px;
    border-radius: 22px;
}

.landing-hero {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 25px 50px;
    position: relative;
}

.landing-content {
    max-width: 920px;
    position: relative;
    z-index: 3;
}

.landing-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #dcfce7;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 24px;
}

.landing-content h1 {
    font-size: 72px;
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -3px;
    margin-bottom: 24px;
    color: #ffffff;
}

.landing-description {
    max-width: 680px;
    margin: 0 auto 28px;
    font-size: 17px;
    line-height: 1.7;
    color: #cbd5e1;
}

.landing-search-box {
    width: 100%;
    max-width: 560px;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 40px;
    padding: 7px;
    display: flex;
    align-items: center;
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.45) !important;
}

    .landing-search-box input {
        flex: 1;
        border: none;
        outline: none;
        padding: 13px 18px;
        border-radius: 30px;
        font-size: 14px;
        color: var(--text-main);
    }

    .landing-search-box a {
        padding: 13px 22px;
        border-radius: 30px;
        font-size: 13px;
        font-weight: bold;
        text-decoration: none;
    }

.landing-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.landing-primary,
.landing-secondary {
    padding: 13px 26px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.landing-secondary {
    border: 1px solid rgba(255,255,255,0.35);
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}

.landing-features {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 25px 55px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.landing-feature-card {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 18px;
    padding: 26px;
}

    .landing-feature-card span {
        display: block;
        font-size: 30px;
        margin-bottom: 14px;
    }

    .landing-feature-card h3 {
        font-size: 18px;
        color: #ffffff;
        margin-bottom: 10px;
    }

    .landing-feature-card p {
        font-size: 14px;
        color: #cbd5e1;
        line-height: 1.6;
    }

/* ===============================
   LOGIN / REGISTER CARDS
================================= */
.loginpage-container,
.register-container {
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
}

.loginpage-card,
.register-card {
    width: 430px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 8px 35px rgba(22, 163, 74, 0.22) !important;
    backdrop-filter: blur(14px);
}

.register-card {
    width: 450px;
    border-radius: 20px;
    padding: 38px;
}

    .loginpage-card h1,
    .register-card h1 {
        font-size: 32px;
        font-weight: bold;
        color: #ffffff;
        text-align: center;
        margin-bottom: 8px;
    }

    .register-card h1 {
        font-size: 34px;
    }

.loginpage-subtitle,
.register-subtitle {
    text-align: center;
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 28px;
}

.loginpage-role-box,
.loginpage-group,
.register-group,
.form-group,
.profile-info-group {
    margin-bottom: 18px;
}

    .loginpage-role-box label,
    .loginpage-group label,
    .register-group label,
    .form-group label,
    .profile-info-group label {
        display: block;
        font-size: 13px;
        font-weight: bold;
        color: #374151;
        margin-bottom: 7px;
    }

    .loginpage-role-box label,
    .loginpage-group label,
    .register-group label {
        color: #dbeafe;
    }

.loginpage-input,
.loginpage-select,
.register-input,
.register-select {
    width: 100%;
    height: 43px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    background: rgba(255,255,255,0.95);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.register-input,
.register-select {
    height: 45px;
    border-radius: 10px;
    padding: 0 14px;
}

.loginpage-btn,
.register-btn {
    width: 100%;
    height: 45px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.register-btn {
    height: 46px;
}

.loginpage-message,
.register-message {
    display: block;
    min-height: 18px;
    color: #fca5a5;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
}

.loginpage-bottom,
.register-bottom {
    margin-top: 20px;
    text-align: center;
    color: #cbd5e1;
    font-size: 13px;
}

.register-bottom {
    margin-top: 22px;
}

    .loginpage-bottom a,
    .register-bottom a {
        color: var(--green-light) !important;
        font-weight: bold;
        text-decoration: none;
    }

        .loginpage-bottom a:hover,
        .register-bottom a:hover {
            color: #86efac !important;
        }

.loginpage-validator,
.register-validator {
    display: block;
    color: #fca5a5;
    font-size: 12px;
    font-weight: bold;
    margin-top: 6px;
}

.loginpage-validation-summary,
.register-validation-summary {
    background: rgba(22, 163, 74, 0.12) !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
    color: #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: bold;
}

    .loginpage-validation-summary ul,
    .register-validation-summary ul {
        margin-left: 18px;
        margin-top: 8px;
    }

/* ===============================
   GENERAL FORMS
================================= */
.form-container {
    width: 100%;
    min-height: calc(100vh - 65px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.form-box {
    width: 420px;
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.12);
}

    .form-box h2 {
        text-align: center;
        margin-bottom: 25px;
        color: var(--green-dark);
    }

.form-control,
.profile-input {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

    .form-control:focus,
    .search-input:focus,
    .records-search-input:focus,
    .addproduct-input:focus,
    .profile-input:focus,
    .loginpage-input:focus,
    .loginpage-select:focus,
    .register-input:focus,
    .register-select:focus {
        outline: none !important;
        border-color: var(--green) !important;
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18) !important;
    }

/* ===============================
   HOME / HERO / FEATURES
================================= */
.hero {
    height: 430px;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url("images/bg.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 30px;
}

    .hero h1 {
        font-size: 45px;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 17px;
        margin-bottom: 25px;
    }

.hero-buttons a {
    display: inline-block;
    padding: 12px 22px;
    margin: 5px;
    border-radius: 5px;
    color: white;
}

.btn-secondary {
    border: 1px solid white;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

    .feature-card h3 {
        margin-bottom: 10px;
        color: var(--green-dark);
    }

/* ===============================
   DASHBOARD / CARDS
================================= */
.dashboard-page {
    width: 100%;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

    .dashboard-header h1 {
        font-size: 24px;
        color: var(--text-main);
    }

    .dashboard-header p,
    .admin-welcome {
        font-size: 14px;
        color: #374151;
        font-weight: bold;
    }

.cards,
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.card,
.dashboard-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 22px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.dashboard-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 120px;
}

.card h4 {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.card .value {
    font-size: 28px;
    font-weight: bold;
    color: var(--green-dark);
}

.card a,
.dashboard-card a,
.card-info a {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--green) !important;
    font-weight: bold;
    text-decoration: none;
}

.card-icon,
.report-icon {
    font-size: 32px;
    width: 45px;
    text-align: center;
    color: var(--green) !important;
}

.card-info p,
.dashboard-card p {
    font-size: 13px;
    font-weight: bold;
    color: #374151;
    margin-bottom: 6px;
}

.card-info h2,
.dashboard-card h2 {
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.dashboard-section,
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.dashboard-box {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

    .dashboard-box h3 {
        font-size: 16px;
        color: var(--text-main);
        margin-bottom: 15px;
    }

/* ===============================
   TABLES
================================= */
.table-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
}

table,
.dashboard-table,
.orderhistory-table,
.report-table,
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-size: 14px;
}

th,
.dashboard-table th,
.orderhistory-table th {
    background: #f0f4f8;
    color: var(--green-dark);
}

tr:hover,
.dashboard-table tr:hover,
.orderhistory-table tr:hover {
    background: #f0fdf4 !important;
}

.status,
.status-completed,
.order-status {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

    .status-success,
    .completed,
    .status-completed,
    .order-status.completed {
        background: #d4f8df;
        color: #07852d;
    }

    .status-warning,
    .order-status.pending {
        background: #fff0c2;
        color: #9a6a00;
    }

    .order-status.cancelled {
        background: #ffd6d6;
        color: #c1121f;
    }

/* ===============================
   PRODUCT SHOP / ALL PRODUCTS
================================= */
.shop-page,
.records-page,
.orderhistory-page,
.profile-page {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.shop-header,
.records-header {
    width: 100%;
    display: block;
    text-align: left;
    margin-bottom: 25px;
}

    .shop-title,
    .records-header h1,
    .orderhistory-title,
    .profile-title {
        font-size: 28px !important;
        font-weight: bold !important;
        color: var(--text-main) !important;
        margin: 0 0 22px 0 !important;
        text-align: left !important;
    }

.search-box,
.records-search {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 25px !important;
    width: 100% !important;
}

.search-input,
.records-search-input {
    width: 320px !important;
    height: 38px !important;
    padding: 8px 12px !important;
    border: 1px solid #cfd4dc !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    outline: none !important;
    background: #ffffff !important;
}

.product-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: 0.3s;
}

    .product-card:hover {
        transform: translateY(-5px);
    }

    .product-card img {
        width: 100%;
        height: 150px;
        object-fit: contain;
        margin-bottom: 15px;
    }

    .product-card h4 {
        color: var(--green-dark);
        margin-bottom: 10px;
    }

    .product-card p {
        margin-bottom: 8px;
        font-size: 14px;
    }

.price {
    color: var(--green) !important;
    font-weight: bold;
    margin-bottom: 8px;
}

/* ===============================
   VIEW RECORDS PAGE
================================= */
.records-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.records-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid #ececec;
}

    .records-card h3 {
        font-size: 16px;
        font-weight: bold;
        color: var(--text-main);
        margin-bottom: 22px;
    }

.records-btn {
    display: inline-block;
    width: 100%;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 10px;
    border-radius: 5px;
    transition: 0.2s;
}

/* ===============================
   ADD PRODUCT PAGE
================================= */
.addproduct-wrapper {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.addproduct-title {
    font-size: 24px !important;
    font-weight: bold !important;
    color: var(--text-main) !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.addproduct-box {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    padding: 40px 45px !important;
    box-shadow: var(--shadow-md) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.addproduct-group {
    display: block !important;
    width: 100% !important;
    max-width: 760px !important;
    margin-bottom: 24px !important;
    padding: 0 !important;
}

    .addproduct-group label {
        display: block !important;
        font-size: 15px !important;
        font-weight: bold !important;
        color: #374151 !important;
        margin-bottom: 9px !important;
        padding: 0 !important;
        text-align: left !important;
        width: 100% !important;
    }

.addproduct-input {
    display: block !important;
    width: 100% !important;
    height: 48px !important;
    padding: 10px 14px !important;
    border: 1px solid var(--border-dark) !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    font-size: 15px !important;
    color: var(--text-main) !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.addproduct-row {
    width: 100% !important;
    max-width: 760px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 40px !important;
    align-items: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
}

    .addproduct-row .addproduct-group {
        max-width: 360px !important;
    }

.addproduct-buttons {
    width: 100% !important;
    max-width: 760px !important;
    display: flex !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    margin-top: 14px !important;
}

.addproduct-save,
.addproduct-clear {
    border: none !important;
    border-radius: 5px !important;
    padding: 13px 28px !important;
    font-size: 15px !important;
    font-weight: bold !important;
    color: #ffffff !important;
    cursor: pointer !important;
}

.addproduct-file {
    display: block !important;
    width: 100% !important;
    max-width: 608px !important;
    height: 45px !important;
    padding: 10px !important;
    border: 1px solid var(--border-dark) !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    font-size: 14px !important;
    color: var(--text-main) !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

    .addproduct-file::file-selector-button {
        background: var(--button-gradient) !important;
        color: white !important;
        border: none;
        padding: 8px 14px;
        border-radius: 4px;
        font-weight: bold;
        cursor: pointer;
        margin-right: 12px;
    }

        .addproduct-file::file-selector-button:hover {
            background: var(--button-gradient-hover) !important;
        }

/* ===============================
   CART PAGE
================================= */
.cart-page,
.cart-page-center {
    width: 100% !important;
    max-width: 980px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: left !important;
}

.cart-title {
    font-size: 18px !important;
    font-weight: bold !important;
    color: var(--text-main) !important;
    margin: 0 0 18px 0 !important;
}

.cart-box,
.cart-card,
.orderhistory-box,
.profile-card {
    background: #ffffff !important;
    width: 100% !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    padding: 18px !important;
    box-shadow: var(--shadow-sm) !important;
    box-sizing: border-box !important;
}

.profile-card {
    padding: 28px !important;
}

.cart-table {
    margin-bottom: 18px !important;
}

    .cart-table th {
        background: #f9fafb !important;
        color: var(--text-main) !important;
        font-size: 12px !important;
        font-weight: bold !important;
        text-align: left !important;
        padding: 13px 16px !important;
        border: 1px solid var(--border) !important;
    }

    .cart-table td {
        font-size: 12px !important;
        color: var(--text-main) !important;
        padding: 13px 16px !important;
        border: 1px solid var(--border) !important;
        vertical-align: middle !important;
    }

.cart-qty,
.qty-box {
    width: 75px !important;
    height: 38px !important;
    text-align: center !important;
    border: 1px solid var(--border-dark) !important;
    border-radius: 5px !important;
    font-size: 12px !important;
}

.cart-remove-btn,
.remove-btn {
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 13px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    cursor: pointer !important;
}

.cart-summary-box,
.cart-summary {
    width: 100% !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    margin-bottom: 18px !important;
    overflow: hidden !important;
}

.cart-summary-row,
.summary-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    padding: 12px 20px !important;
    border-bottom: 1px solid var(--border) !important;
    align-items: center !important;
}

    .cart-summary-row:last-child,
    .summary-row:last-child {
        border-bottom: none !important;
    }

    .cart-summary-row span,
    .cart-summary-row strong,
    .summary-row span,
    .summary-row strong {
        text-align: center !important;
        font-size: 12px !important;
        font-weight: bold !important;
        color: var(--text-main) !important;
    }

.cart-discount,
.discount-text {
    color: var(--red) !important;
}

.cart-total-row strong,
.total-row strong {
    color: var(--green) !important;
}

.cart-buttons-row,
.cart-action-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 12px !important;
}

.cart-continue-btn {
    padding: 10px 18px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

.cart-checkout-btn {
    border: none !important;
    border-radius: 4px !important;
    padding: 10px 55px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    cursor: pointer !important;
}

.membership-select {
    width: 180px;
    margin: auto;
    padding: 8px;
    border: 1px solid var(--border-dark);
    border-radius: 5px;
}

.empty-cart {
    text-align: center;
    font-weight: bold;
    color: var(--text-muted);
    padding: 30px;
}

/* ===============================
   REPORTS PAGE
================================= */
.reports-page {
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.reports-title {
    width: 100% !important;
    text-align: left !important;
    font-size: 28px !important;
    font-weight: bold !important;
    color: var(--text-main) !important;
    margin: 0 0 22px 0 !important;
}

.reports-cards {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 22px !important;
    margin: 0 auto 24px auto !important;
}

.report-stat-card {
    background: #ffffff !important;
    border-radius: 6px !important;
    padding: 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-md) !important;
    min-height: 95px !important;
}

    .report-stat-card p {
        font-size: 13px !important;
        font-weight: bold !important;
        color: #374151 !important;
        margin: 0 0 8px 0 !important;
    }

    .report-stat-card h2 {
        font-size: 18px !important;
        font-weight: bold !important;
        color: var(--text-main) !important;
        margin: 0 !important;
    }

.reports-main-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 22px !important;
    margin: 0 auto !important;
    align-items: stretch !important;
}

.report-box {
    background: #ffffff !important;
    border-radius: 6px !important;
    padding: 18px !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-md) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

    .report-box h3 {
        font-size: 14px !important;
        font-weight: bold !important;
        color: var(--text-main) !important;
        margin: 0 0 18px 0 !important;
    }

.chart-box {
    min-height: 420px !important;
}

.bar-chart {
    width: 100% !important;
    height: 330px !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-around !important;
    border-left: 1px solid var(--border-dark) !important;
    border-bottom: 1px solid var(--border-dark) !important;
    padding: 25px 20px 0 20px !important;
    box-sizing: border-box !important;
}

.bar-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 120px !important;
    height: 100% !important;
}

.bar {
    width: 50px !important;
    background: linear-gradient(180deg, var(--green-light) 0%, var(--green) 100%) !important;
    border-radius: 3px 3px 0 0 !important;
    margin-bottom: 10px !important;
}

.bar-item span {
    font-size: 12px !important;
    text-align: center !important;
    color: var(--text-main) !important;
    line-height: 1.2 !important;
}

.report-side {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
}

.members-box {
    min-height: 220px !important;
}

.generated-box {
    min-height: 150px !important;
}

.report-table td {
    padding: 15px 0 !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 14px !important;
    font-weight: bold !important;
}

    .report-table td:last-child {
        text-align: right !important;
    }

.generated-box p {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #374151 !important;
    margin: 0 !important;
}

/* ===============================
   ORDER HISTORY PAGE
================================= */
.orderhistory-box {
    padding: 20px !important;
}

.orderhistory-table th {
    background: #f9fafb !important;
    color: var(--text-main) !important;
    font-size: 13px !important;
    font-weight: bold !important;
    padding: 14px !important;
    text-align: left !important;
    border-bottom: 1px solid var(--border) !important;
}

.orderhistory-table td {
    font-size: 13px !important;
    color: var(--text-main) !important;
    padding: 14px !important;
    border-bottom: 1px solid var(--border) !important;
}

/* ===============================
   PROFILE PAGE
================================= */
.profile-layout {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
}

.profile-card h2 {
    font-size: 20px !important;
    font-weight: bold !important;
    color: var(--text-main) !important;
    margin: 0 0 6px 0 !important;
}

.profile-subtitle {
    font-size: 13px !important;
    color: var(--text-muted) !important;
    margin-bottom: 22px !important;
}

.profile-input {
    height: 42px !important;
    padding: 10px 12px !important;
    border: 1px solid var(--border-dark) !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

    .profile-input[readonly] {
        background: #f9fafb !important;
        color: var(--text-muted) !important;
        cursor: not-allowed !important;
    }

.profile-message {
    display: block !important;
    font-size: 13px !important;
    font-weight: bold !important;
    color: #07852d !important;
    margin-bottom: 15px !important;
}

.profile-button-row {
    display: flex !important;
    gap: 12px !important;
    margin-top: 10px !important;
}

.profile-save-btn,
.profile-clear-btn {
    border: none !important;
    border-radius: 5px !important;
    padding: 12px 22px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: white !important;
    cursor: pointer !important;
}

/* ===============================
   FOOTER
================================= */
.footer,
.clean-footer,
.landing-footer {
    background: var(--green-gradient) !important;
    color: white;
    text-align: center;
    padding: 18px;
    font-size: 14px;
    font-weight: bold;
}

.clean-footer {
    padding: 28px 45px 18px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.clean-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-brand h2 {
    font-size: 22px;
    margin-bottom: 6px;
    color: white;
}

.footer-brand p {
    font-size: 13px;
    color: #cbd5e1;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

    .footer-links a {
        color: #dcfce7 !important;
        font-size: 13px;
        font-weight: bold;
        text-decoration: none;
        transition: 0.2s;
    }

        .footer-links a:hover {
            color: var(--green-light) !important;
        }

.clean-footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    font-size: 12px;
    color: #cbd5e1;
    font-weight: bold;
}

/* ===============================
   RESPONSIVE DESIGN
================================= */
@media screen and (max-width: 1000px) {
    .cards,
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .features,
    .landing-features {
        grid-template-columns: 1fr;
    }

    .dashboard-section,
    .dashboard-grid,
    .reports-main-grid {
        grid-template-columns: 1fr !important;
    }

    .reports-cards {
        grid-template-columns: 1fr !important;
    }

    .records-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-layout {
        grid-template-columns: 1fr !important;
    }
}

@media screen and (max-width: 750px) {
    .clean-footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media screen and (max-width: 700px) {
    .topnav {
        flex-direction: column !important;
        height: auto !important;
        padding: 15px !important;
    }

    .nav-links {
        height: auto !important;
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center !important;
    }

    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .cards,
    .dashboard-cards,
    .product-grid,
    .report-grid,
    .records-grid {
        grid-template-columns: 1fr !important;
    }

    .hero h1 {
        font-size: 32px;
    }

    .landing-content h1 {
        font-size: 48px;
        letter-spacing: -1px;
    }

    .addproduct-row {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .cart-buttons-row,
    .cart-action-row {
        flex-direction: column !important;
        gap: 14px !important;
        align-items: stretch !important;
    }
}

@media screen and (max-width: 600px) {
    .loginpage-nav {
        padding: 0 20px;
    }

    .loginpage-card,
    .register-card {
        width: 100%;
        padding: 28px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .records-search,
    .search-box {
        width: 100%;
        flex-direction: column;
        align-items: stretch !important;
    }

    .records-search-input,
    .search-input {
        width: 100% !important;
    }

    .admin-home-simple h1 {
        font-size: 40px !important;
        letter-spacing: 3px !important;
    }

    .admin-home-menu {
        flex-direction: column !important;
        width: 100% !important;
    }

        .admin-home-btn,
        .admin-home-menu a {
            width: 100% !important;
            max-width: 320px !important;
        }
}