:root {
    --primary: #0B5D47;
    --primary-hover: #094C3A;
    --secondary: #169976;
    --secondary-hover: #127A61;
    --accent: #1E7F60;
    --background: #F3F9F7;
    --card-background: #FFFFFF;
    --text-primary: #102721;
    --text-secondary: #2C6B5A;
    --text-white: #FFFFFF;
  
    --border: #D0E7E0;
    --shadow: rgba(11, 93, 71, 0.12);
  
    --success: #2E7D32;
    --warning: #EF6C00;
    --danger: #C62828;
    --info: #20856A;
  
    --light: #F0F7F5;
    --muted: #7FA89B;
  
    --table-header: #0B5D47;
    --table-row: #E8F2EF;
    --table-row-hover: #D0E7E0;
  }
  
  


* {
    font-family: 'Outfit', sans-serif;
}

.l-body {
    background-color: var(--border);
    max-height: 100vh;
}

/* Error Page */
.error-container {
    text-align: center;
    margin-top: 100px;
}

.error-code {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-primary);
}

.error-text {
    color: var(--text-secondary);
}

.back-link {
    text-decoration: none;
    font-weight: bold;
    color: var(--accent);
}

.back-link:hover {
    text-decoration: underline;
}

.error-image img {
    width: 100%;
    max-width: 350px;
}

/* Login Section */
.log-container {
    background: var(--card-background);
    max-width: 900px;
    margin: auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px var(--shadow);
}

.google-btn {
    background-color: var(--light);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 500;
}

.google-btn img {
    width: 20px;
    margin-right: 10px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider span {
    padding: 0 10px;
    color: var(--muted);
}

.send-btn {
    background-color: var(--primary);
    color: var(--text-white);
    font-size: 18px;
    padding: 8px;
    border-radius: 5px;
    width: 100%;
}

.send-btn:hover {
    background-color: var(--primary-hover);
    color: var(--text-white);
}

.forgot-password {
    text-align: right;
    font-size: 15px;
    color: var(--primary);
    text-decoration: none;
}

.signup-text {
    font-size: 16px;
    text-align: center;
}

.signup-text a {
    color: var(--primary);
    text-decoration: none;
}

.signup-text a:hover {
    text-decoration: underline;
}

.login-image img {
    width: 100%;
    max-width: 400px;
}

.register-image img {
    width: 100%;
    max-width: 450px;
}

.logo-text-bottom {
    color: var(--primary);
    font-size: 0.8em;
}

/* Forget Password */
.go-back {
    text-align: center;
    font-size: 15px;
    margin-top: 10px;
}

.go-back a {
    color: var(--primary);
    text-decoration: none;
}

.go-back a:hover {
    text-decoration: underline;
}

.forgot-image img {
    width: 100%;
    max-width: 450px;
}

/* Change Password */
.change-password-container {
    background: var(--card-background);
    max-width: 900px;
    height: 600px;
    margin: auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px var(--shadow);
}

.change-password-go-back {
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}

.change-password-go-back a {
    color: var(--primary);
    text-decoration: none;
}

.change-password-go-back a:hover {
    text-decoration: underline;
}

.change-pass-image img {
    width: 100%;
    max-width: 400px;
}

/* Confirm OTP */
.otp-container {
    background: var(--card-background);
    max-width: 900px;
    height: 600px;
    margin: auto;
    border-radius: 15px;
    box-shadow: 0px 4px 10px var(--shadow);
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 1px solid var(--border);
    border-radius: 5px;
    margin: 5px;
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0px 0px 5px rgba(72, 238, 138, 0.5);
}

.otp-image img {
    width: 100%;
    max-width: 500px;
}

@media (max-width: 768px) {
    .log-container {
        flex-direction: column;
        text-align: center;
        padding: 0px 40px;
        height: 80vh;
        width: 80vw;
        margin: auto;
        justify-content: center;
        align-items: center;
    }

    .login-div {
        flex-direction: column;
        text-align: center;
    }

    .w-50 {
        width: 100% !important;
    }

    .register-image, .login-image, .forgot-image, .otp-image, .change-pass-image {
        display: none;
    }
}

@media (max-width: 576px) {
    .log-container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .form-control {
        font-size: 0.85rem;
    }

    .btn {
        font-size: 0.9rem;
    }

    .signup-text,
    .google-btn {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .form-control {
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .signup-text,
    .google-btn {
        font-size: 0.75rem;
    }

    .google-btn img {
        width: 16px;
        height: 16px;
    }
}

/* Home Page */
.hero-img {
    max-width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
}

/* Admin Section */
.admin-btns {
    background-color: var(--primary);
    border-radius: 10px;
}

.admin-btns:hover {
    background-color: var(--primary-hover);
}

.icon-container {
    border-radius: 50%;
}

.search-bar {
    max-width: 100px;
}

@media (max-width: 768px) {
    .search-container,
    .notification-icon {
        display: none;
    }
}

.add-product-btn {
    background-color: var(--primary);
    color: var(--text-white);
}

.add-product-btn:hover {
    background-color: var(--primary-hover);
    color: var(--text-white);
}

.timeline {
    position: relative;
    padding-left: 20px;
    margin-top: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid var(--card-background);
}

.card-header {
    background-color: var(--primary);
    color: var(--text-white);
}

/* Add Product */
.add-product-form {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.form-label {
    font-weight: 500;
}

.image-upload {
    border: 2px dashed var(--text-primary);
    padding: 20px 80px;
    cursor: pointer;
    background-color: var(--background);
    border-radius: 5px;
}

.image-upload:hover {
    border-color: var(--primary);
    background-color: var(--light);
}

.image-bar {
    width: 1000px;
}

.color-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--border);
}

.color-option.selected {
    border-color: var(--secondary);
}

.stock-btn1 {
    width: 75px;
    border: 1px solid var(--success);
    background-color: #8af5bf;
    color: var(--success);
    border-radius: 10px;
}

.stock-btn2 {
    width: 75px;
    border: 1px solid var(--warning);
    background-color: #f7fb0496;
    color: var(--warning);
    border-radius: 10px;
}

.stock-btn3 {
    width: 75px;
    border: 1px solid var(--danger);
    background-color: #f9d3d3;
    color: var(--danger);
    border-radius: 10px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    margin-right: 10px;
    border: 2px solid var(--border);
}

.selected {
    border: 3px solid var(--text-primary);
}

#customFileButton {
    border-radius: 0.25rem 0 0 0.25rem;
}

#fileNamesDisplay {
    background-color: var(--light);
    border: 1px solid var(--border);
    border-left: none;
    cursor: default;
    font-size: 14px;
}

.customer-table a {
    text-decoration: none;
}

.profile-card {
    background: var(--card-background);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 2px 10px var(--shadow);
}

.status-badge {
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 15px;
    background-color: #d4f5d0;
    color: var(--success);
}

.transaction-status {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
}

.processing { background: #ffe8c1; color: var(--warning); }
.shipped { background: #d9f0ff; color: var(--info); }
.delivered { background: #d4f5d0; color: var(--success); }

.user-navbar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.navbar-brand {
    font-size: 2.2em;
    color: var(--text-white) !important;
}

.user-nav-text {
    background-color: var(--border) !important;
    color: var(--primary) !important;
    border-radius: 20px;
    padding: 5px 20px;
}

.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.feature-box {
    text-align: center;
    padding: 20px;
}

.feature-box i {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.divider-home {
    width: 1px;
    background-color: var(--border);
    height: 80px;
    margin: auto;
}

/* Subscription Banner */
.subscription-banner-div {
    background-color: var(--primary);
    color: var(--text-white);
    padding: 10px 20px;
    text-align: center;
}

.subscription-banner h2 {
    font-size: 28px;
    font-weight: bold;
}

.subscription-banner p {
    font-size: 16px;
}

.email-input {
    max-width: 350px;
    width: 100%;
    display: inline-block;
}

.subscribe-btn {
    background-color: #F7941D;
    border: none;
    color: var(--text-white);
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 5px;
}

.illustration {
    height: 350px;
}

.resend-link {
    color: #0c088b !important;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.resend-link.disabled {
    color: var(--muted) !important;
    pointer-events: none;
    cursor: not-allowed;
}

/* Admin Table */
.table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--table-header);
    color: var(--text-white);
    font-weight: 500;
    padding: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.table thead th:last-child {
    border-right: none;
    border-top-right-radius: 8px;
}

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

.table tbody tr {
    background-color: var(--table-row);
    border-bottom: 1px solid var(--border);
}

.table tbody tr:hover {
    background-color: var(--table-row-hover);
}

.table td,
.table th {
    padding: 10px;
}

.table td {
    border-right: 1px solid var(--border);
}

.table td:last-child {
    border-right: none;
}

.table-bordered {
    border: none;
}

.table-hover tbody tr:hover {
    background-color: var(--light);
    transition: background-color 0.2s;
}

.category-description {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

td {
    vertical-align: middle;
}

.card {
    border: none;
    box-shadow: 0 2px 4px var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

.badge {
    font-size: 0.9rem;
    padding: 0.5em 0.75em;
}

.pagination .page-link {
    border: none;
    color: var(--secondary);
}

.pagination .active .page-link {
    background-color: var(--primary);
    color: var(--text-white);
}

.table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    background: var(--card-background);
    height: calc(100vh - 70px);
    position: sticky;
    top: 68px;
    border-right: 1px solid var(--border);
    padding: 0 25px;
    overflow-y: hidden;
    transition: all 0.2s ease-in-out;
}

.sidebar-link {
    font-size: 16px;
    font-weight: 500;
    padding: 12px 0px;
    border-radius: 8px;
    margin: 5px 10px;
    color: var(--text-primary);
    transition: all 0.3s ease-in-out;
}

.sidebar-link:hover {
    background-color: var(--border);
    color: var(--primary) !important;
}

.sidebar-link.active {
    background-color: var(--primary);
    color: var(--text-white) !important;
    font-weight: bold;
    box-shadow: 0 2px 10px var(--shadow);
    border-left: 4px solid var(--primary);
}

.sidebar .logout-link {
    color: var(--danger);
}

.sidebar .logout-link:hover {
    background-color: #ffe5e5;
    color: #c9302c;
}

.sidebar-header {
    margin-top: 55px;
    padding-top: 10px;
}

.offcanvas-body .sidebar-link.active {
    background-color: var(--primary);
    width: fit-content;
    color: var(--text-white) !important;
    font-weight: bold;
    padding-right: 30px !important;
    box-shadow: 0 2px 10px var(--shadow);
    border-left: 4px solid var(--primary);
}

.custom-outline-btn {
    border: 1px solid var(--border)
}

.custom-outline-btn:hover {
    background-color: var(--secondary);
    color: var(--text-white);
}

.custom-btn {
    color: var(--text-white);
    background-color: var(--secondary);
}

.custom-btn:hover {
    border: 1px solid var(--secondary);
    background-color: var(--card-background);
    color: var(--secondary);
}

.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-background);
    box-shadow: 0 0 25px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 12px 25px var(--shadow);
}

.product-img {
    height: 260px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.product-card .card-body {
    padding: 1rem;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
}

.order-product-card {
    display: flex;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-background);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-control.navbar-search {
    padding: 0px 12px;
}

.bg-violet {
    background-color: #f6eef8;
}

.stock-color {
    background-color: var(--success);
    border-radius: 28px;
    padding: 9px 8px;
    width: 100px;
}

.no-stock-color {
    background-color: var(--danger);
    border-radius: 28px;
    padding: 9px 8px;
    width: 100px;
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .custom-sm-container {
        max-width: 540px;
    }
}

@media (max-width: 576px) {
    .summary-card {
        padding: 0.75rem 1rem;
    }

    .summary-card .card-body {
        padding: 1rem !important;
    }

    .summary-card h4 {
        font-size: 1rem;
    }

    .summary-card p {
        font-size: 0.8rem;
    }

    .summary-card .icon-container {
        width: 40px;
        height: 40px;
    }

    .summary-card i {
        font-size: 1.25rem;
    }

    .navbar-brand {
        font-size: 1.8em;
    }
}

.checkout-btn {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: transform 0.2s ease;
    border-radius: 5px;
    font-size: 1.1rem;
    color: var(--text-white);
}

.checkout-btn:hover {
    background: linear-gradient(90deg, var(--primary-hover), var(--secondary-hover));
    border-radius: 5px;
    font-size: 1.1rem;
    color: var(--text-white);
}

.btn-save {
    background-color: var(--primary);
    color: var(--text-white);
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
}

.btn-save:hover {
    background-color: var(--primary-hover);
    color: var(--text-white);
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
}

.btn-cancel {
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid var(--primary);
}

.btn-cancel:hover {
    background-color: #f0e7f4;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid var(--primary);
}

.custom-outline-btn.active {
    border: 1px solid var(--secondary);
    background-color: var(--secondary);
    color: var(--text-white);
}

.admin-status-badge {
    border-radius: 28px;
    width: 130px;
    font-size: 13px;
}

.status-pending { background-color: #fef9c3; color: var(--warning); border-radius: 10px; }
.status-shipped { background-color: #dbeafe; color: var(--info); border-radius: 10px; }
.status-delivered { background-color: #dcfce7; color: var(--success); border-radius: 10px; }
.status-cancelled { background-color: #fee2e2; color: var(--danger); border-radius: 10px; }
.status-processing { background-color: #ede9fe; color: #7e22ce; border-radius: 10px; }
.status-returned { background-color: #ffedd5; color: #ea580c; border-radius: 10px; }

.break-text {
    word-break: break-word;
    white-space: normal;
    max-width: 500px;
}

.text-break {
    word-break: break-word;
}

.rounded-circle {
    border-radius: 50%;
    object-fit: cover;
}

.offer-badge {
    font-size: 0.65rem !important;
}

@media (min-width: 768px) {
    .offer-badge {
        font-size: 0.75rem !important;
    }
}

.image-container {
    height: 270px;
    overflow: hidden;
    text-align: center;
}

@media (max-width: 768px) {
    .image-container {
        height: 200px;
    }

    .sidebar-header {
        margin-top: 25px;
        padding-top: 10px;
    }
}

@media (max-width: 576px) {
    .image-container {
        height: 160px;
    }

    .sidebar-header {
        margin-top: 10px;
        padding-top: 10px;
    }
}

@media (min-width: 768px) {
    .display-md-3 {
        font-size: calc(1.525rem + 3vw);
    }

    .fs-md-4 {
        font-size: 1.25rem !important;
    }
}

.subscription-banner h2 {
    font-size: 1.7rem;
}

@media (max-width: 576px) {
    .subscription-banner h2 {
        font-size: 1rem;
    }
}

.subscription-banner p {
    font-size: 1rem;
}

@media (max-width: 576px) {
    .subscription-banner p {
        font-size: 0.7rem;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 60px;
    }
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    text-align: center;
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.profile-avatar {
    border-radius: 50%;
    object-fit: cover;
}

@media (min-width: 576px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .profile-header {
        text-align: center;
    }
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.spinner-box {
    text-align: center;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--primary);
    color: var(--text-white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
}

.theme-toggle:hover {
    background-color: var(--primary-hover);
}