/* ============================================
   REUSABLE CSS CLASSES & DESIGN SYSTEM
   ============================================ */

/* Color Variables */
/* @import url('https://fonts.cdnfonts.com/css/sf-pro-display'); */
/* 100 - Thin */
@font-face {
    font-family: "SF Pro";
    src: url("/assets/font/SF-Pro-Text-Thin.otf") format("opentype");
    font-weight: 100;
    font-style: normal;
}

/* 200 - Extra Light */
@font-face {
    font-family: "SF Pro";
    src: url("/assets/font/SF-Pro-Text-Ultralight.otf") format("opentype");
    font-weight: 200;
    font-style: normal;
}

/* 300 - Light */
@font-face {
    font-family: "SF Pro";
    src: url("/assets/font/SF-Pro-Text-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
}

/* 400 - Regular */
@font-face {
    font-family: "SF Pro";
    src: url("/assets/font/SF-Pro-Text-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}

/* 500 - Medium */
@font-face {
    font-family: "SF Pro";
    src: url("/assets/font/SF-Pro-Text-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
}

/* 600 - Semibold */
@font-face {
    font-family: "SF Pro";
    src: url("/assets/font/SF-Pro-Text-Semibold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
}

/* 700 - Bold */
@font-face {
    font-family: "SF Pro";
    src: url("/assets/font/SF-Pro-Text-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}

/* 800 - Heavy */
@font-face {
    font-family: "SF Pro";
    src: url("/assets/font/SF-Pro-Heavy.otf") format("opentype");
    font-weight: 800;
    font-style: normal;
}

/* 900 - Black */
@font-face {
    font-family: "SF Pro";
    src: url("/assets/font/SF-Pro-Black.otf") format("opentype");
    font-weight: 900;
    font-style: normal;
}

:root {
    --color-primary: #095950;
    --color-text: #2d2d2d;
    --color-bg: #fcfcfc;
    --color-border: #e9e9e9;
    --color-white: #ffffff;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #e11100;
    --color-muted: #555555;
    --color-blue: #004ac4;

    --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro",
        sans-serif;
    --font-display: "Outfit", "Degular Display", sans-serif;
}

*:not(i) {
    font-family: "SF Pro", sans-serif;
}

.fw_100 {
    font-weight: 100 !important;
}

.fw_200 {
    font-weight: 200 !important;
}

.fw_300 {
    font-weight: 300 !important;
}

.fw_400 {
    font-weight: 400 !important;
}

.fw_mid {
    font-weight: 500 !important;
}

.fw_semibold {
    font-weight: 600 !important;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.text-color {
    color: var(--color-text) !important;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

.sfPro,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
div {
    font-family: "SF Pro", sans-serif;
    letter-spacing: 0.3px;
}

/* Layout Classes */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 24px;
    margin-left: 100%;
    background-color: var(--color-bg);
}

/* Sidebar Styles */
.sidebar {
    width: 100%;
    background-color: #fcfcfc;
    border-right: 1px solid #e9e9e9;
    padding: 24px 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 24px 32px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.5px;
}

.logo-subtext {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-item:hover {
    background-color: #f9fafb;
}

.nav-item.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.textPrimary {
    color: var(--color-primary);
}

.nav-icon {
    width: 20px;
    height: 20px;
}

/* Header Styles */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {}

.greeting-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.greeting-subtitle {
    font-size: 16px;
    color: var(--color-muted);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Search Bar */
.search-container {
    position: relative;
    width: 300px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--color-white);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Notification Bell */
.notification-bell {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--color-danger);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.user-meta {
    font-size: 12px;
    color: var(--color-muted);
}

/* Card Styles */

.card-large {
    grid-column: span 2;
}

.card-full-width {
    grid-column: span 3;
}

.card-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card_title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
    margin-top: 0 !important;
}

.cardTitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
}

.page_title {
    font-size: 21px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 4px;
    margin-top: 0 !important;
}

.card-subtitle {
    font-size: 16px;
    color: var(--color-muted);
    margin: 0;
}

/* Link Styles */
.link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

/* Revenue Section */
.revenue-section {
    margin-bottom: 24px;
}

.revenue-amount {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.revenue-change {
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
}

.revenue-change.positive {
    color: var(--color-success);
}

.revenue-change.negative,
.text-danger {
    color: var(--color-danger);
}

/* Chart Section */
.chart-section {
    margin-top: 24px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-muted);
    letter-spacing: 0.5px;
}

.chart-period {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
}

#revenueChart {
    height: 100%;
    max-height: 228px !important;
}

#statisticsChart {
    height: 300px !important;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stats-grid.for-four {
    grid-template-columns: repeat(4, 1fr);
}

.fs_48 {
    font-size: 48px;

}

.stat-box {
    padding: 16px;
    border-radius: 15px;
    border: 1px solid var(--color-border);
    height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-total {
    background-color: #f2fffd;
    border-color: #095950;
}

.stat-delivery {
    background-color: #edffe8;
    border-color: #229300;
}

.stat-review {
    background-color: #fff2e4;
    border-color: #d75200;
}

.stat-pickup {
    background-color: #f5eeff;
    border-color: #5e00d9;
}


.varint.stat-total {
    border-color: #09595033;
}

.varint.stat-delivery {
    border-color: #22930033;
}

.varint.stat-review {
    border-color: #d7520033;
}

.varint.stat-pickup {
    border-color: #5e00d933;
}

.stat-icon {
    img {
        width: 26px;
    }
}

.stat-label {
    font-size: 16px;
    color: var(--color-text);
    line-height: 16px;
    letter-spacing: 0.4px;
}

.stat-value {
    font-size: 42px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0px;
    line-height: normal;
    word-break: break-all;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Order Metrics */
.order-metrics {
    margin-top: 30px;
}

.metric-item {
    font-size: 14px;
    font-weight: 500;
}

.metric-label,
.text-muted {
    color: var(--color-muted);
}

.metric-value {
    font-weight: 600;
    color: var(--color-text);
}

/* Add Product Section */
.add-product-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px;
    background-color: #effffd;
    border: 1.5px dashed var(--color-primary);
    border-radius: 12px;
    margin-bottom: 24px;
}

.product-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-add-product {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-product:hover {
    background-color: #074540;
}

.product-count {
    font-size: 45px;
    font-weight: 400;
    color: var(--color-text);
    line-height: normal;
}

.product-label {
    font-size: 24px;
    color: var(--color-text);
    margin-bottom: 12px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.product-thumb {
    width: 100%;
    max-width: 80px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

/* Staff List */
.staff-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.staff-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.staff-avatar {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.staff-avatar.big {
    width: 90px;
    height: 90px;
    border-radius: 5px;
    object-fit: cover;
}

.staff-avatar-initials {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-text);
}

.staff-info {
    flex: 1;
}

.staff-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text);
}

.staff-id {
    font-size: 16px;
    color: var(--color-muted);
    font-weight: 500;
    margin-right: 12px;
}

.staff-status {
    font-size: 16px;
    font-weight: 500;
}

.staff-status.sm {
    font-size: 14px;
    font-weight: 500;
}

.status-active {
    color: #008a29;
}

.status-danger {
    color: #E21100;
}

.status-pending {
    color: #fb9905;
}

/* Chart Controls */
.chart-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.legend-items {
    display: flex;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 6px 10px;
    border: 1px solid #e5e5ef;
    border-radius: 8px;
    color: #1e1b39;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.time-filters {
    display: flex;
    gap: 12px;
    background: #f8f8ff;
    border-radius: 15px;
    padding: 6px 4px;
}

.time-filter-btn {
    padding: 6px 12px;
    border: none;
    background-color: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    color: #9291a5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-filter-btn:hover {
    border-color: var(--color-primary);
}

.time-filter-btn.active {
    background-color: #1e1b39;
    color: var(--color-white);
    border-color: #1e1b39;
    border-radius: 13px;
    padding: 7px 15px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-large {
        grid-column: span 2;
    }

    .card-full-width {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
        padding: 16px;
    }

    .sidebar {
        /* transform: translateX(-100%); */
        transform: translateX(0%);
    }

    .sidebar-mini.sidebar-collapse .main-sidebar {
        width: 0px;
        overflow: hidden;
    }

    .sidebar-mini.sidebar-collapse .content-wrapper {
        margin-left: 25px;
    }

    .menu-items {
        padding: 18% 15%;
    }

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

    .card-large,
    .card-full-width {
        grid-column: span 1;
    }

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

    .header-right {
        width: 100%;
        flex-wrap: wrap;
    }

    .search-container {
        width: 100%;
    }

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

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .forfive {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .greeting-title {
        font-size: 24px;
    }

    .revenue-amount {
        font-size: 28px;
    }

    .chart-controls {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .legend-items {
        flex-direction: column;
        gap: 8px;
    }
}

/* Utility Classes */
.mt-3 {
    margin-top: 1rem;
}

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

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.link-primary {
    color: var(--color-blue);
}

.link-success {
    color: var(--color-primary);
}

.theme-success .text-primary {
    color: var(--color-primary) !important;
}

.link-primary:hover {
    color: #00358b !important;
}

.link-success:hover {
    color: #03695d !important;
}

/* Toastr text */
#toast-container>div {
    font-size: 16px;
    /* 👈 font size increase */
    color: #ffffff !important;
    /* 👈 white text */
}

/* Title (agar use ho raha ho) */
#toast-container .toast-title {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff !important;
}

/* Message */
#toast-container .toast-message {
    font-size: 15px;
    color: #ffffff !important;
}

.suggestion-box {
    position: absolute;
    width: 100%;
    z-index: 1000;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-top: 4px;
    /* max-height: 200px; */
    overflow-y: auto;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f1f5ff;
}
.rating-stars {
    display: flex;
    gap: 6px;
    font-size: 28px;
    cursor: pointer;
    justify-content: center;
}

.rating-stars .star {
    color: #ccc; /* default grey */
    transition: color 0.2s ease;
}

.rating-stars .star.active {
    color: #ffc107; /* yellow */
}
.low_stock_background {
    background-color: #ffa5007a !important;
}
.out_of_stock_background {
    background-color: #ff00006e !important;
}
.absolute{
    position: absolute !important;
}
.colgreen {
    color: #376862;
}
.bgGreen {
    background-color: #376862;
}
#ProductID {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-primary) !important;
}


.ingredient-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    min-height: 56px;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    background: #ffffff !important;
    border: 1px solid #a5a5a5;
    width: 100%;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ingredient-tags-wrapper:focus-within {
    border-color: #376862;
    background: #ffffff !important;
}

.ingredients-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    margin-right: 0.5rem;
}

.ingredient-pill {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem 0.35rem 0.45rem;
    border-radius: 4px;
    font-size: 0.95rem;
    background: #376862 ;
    color: #fff;
    line-height: 1.2;
    border: 1px solid #376862;
    font-weight: 500;
    text-transform: capitalize !important;
}

.ingredient-pill button {
    border: none;
    background: #376862;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ingredient-input {
    flex: 1 1 auto;
    min-width: 160px;
    border: none;
    background: transparent;
    outline: none;
    padding: 0.25rem 0;
    font-size: 1rem;
    color: #0f172a;
    width: auto;
    max-width: 100%;
    margin-left: 0;
    text-align: left;
}

.ingredient-input::placeholder {
    color: #4b5563;
    opacity: 1;
}