﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1f2937;
    line-height: 1.6;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}
.static-page-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: 256px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.sidebar.collapsed {
    width: 64px;
}

.sidebar .sidebar-logo.expanded{
   width:160px;
}
.sidebar .sidebar-logo.collapsed{
   width:20px;
}

.sidebar .sidebar-logo.expanded{
    display:block;
}
.sidebar .sidebar-logo.collapsed{
    display:none;
}


.sidebar.collapsed .sidebar-logo.expanded {
    display: none;
    width:50px;
}
.sidebar.collapsed .sidebar-logo.collapsed{
    display:block;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}




.brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f08d11 0%, #ff9f2e 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}




.brand-text h1 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.brand-text p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.sidebar-toggle {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

    .sidebar-toggle:hover {
        background: #f3f4f6;
        color: #f08d11;
    }

.sidebar-search {
    padding: 16px;
}

.search-input-wrapper {
    position: relative;
}

    .search-input-wrapper i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #9ca3af;
        font-size: 14px;
    }

.search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .search-input:focus {
        outline: none;
        border-color: #f08d11;
        background: white;
    }

.sidebar-nav {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
    font-weight: 500;
    position: relative;
    text-decoration: none;
}

    .nav-item:hover {
        background: #f3f4f6;
        color: #f08d11;
    }

    .nav-item.active {
        background: #f08d11;
        color: white;
    }

        .nav-item.active:hover {
            background: #e07c0a;
        }

    .nav-item i {
        font-size: 16px;
        width: 20px;
        text-align: center;
    }

    .nav-item span:first-of-type {
        flex: 1;
    }

.badge {
    background: #ef4444;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

    .badge.alert {
        background: #ef4444;
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #f08d11;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.user-role {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: #f8fafc;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.header-text h1 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.header-text p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: #f08d11;
    color: white;
    border: 1px solid #f08d11;
}

    .btn-primary:hover {
        background: #e07c0a;
        border-color: #e07c0a;
    }

.btn-outline {
    background: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
}

    .btn-outline:hover {
        background: #f3f4f6;
        border-color: #9ca3af;
    }

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}


button.quadrant-filter:hover {
    background: #f08d11;
    border-color: #f08d11;
    color: #fff !important;
}

.hidden {
    display: none !important;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

.stat-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin: 0 0 4px 0;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

    .stat-change.positive {
        color: #059669;
    }

    .stat-change.negative {
        color: #dc2626;
    }

.stat-change-text {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

    .stat-icon i {
        font-size: 20px;
    }

    .stat-icon.revenue i {
        color: #059669;
    }

    .stat-icon.restaurants i {
        color: #2563eb;
    }

    .stat-icon.orders i {
        color: #7c3aed;
    }

    .stat-icon.users i {
        color: #f08d11;
    }

    .stat-icon.items i {
        color: #2563eb;
    }

    .stat-icon.low-stock i {
        color: #dc2626;
    }

    .stat-icon.expiring i {
        color: #d97706;
    }

    .stat-icon.pending i {
        color: #059669;
    }

    .stat-icon.active i {
        color: #059669;
    }

    .stat-icon.inactive i {
        color: #dc2626;
    }

    .stat-icon.new i {
        color: #d97706;
    }

    .stat-icon.satisfaction i {
        color: #fbbf24;
    }

    .stat-icon.peak i {
        color: #8b5cf6;
    }

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* Cards */
.card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

    .card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

    .card-header h3 {
        font-size: 18px;
        font-weight: 600;
        color: #111827;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .card-header h3 i {
            color: #f08d11;
        }

.card-content {
    padding: 24px;
}

/* Alert Card */
.alert-card {
    border-left: 4px solid #dc2626;
}

.alert-title {
    color: #b91c1c !important;
}

.alert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.alert-item {
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

    .alert-header h4 {
        font-size: 16px;
        font-weight: 600;
        color: #111827;
        margin: 0;
    }

.alert-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stock-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6b7280;
}

.supplier {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* Restaurant List */
.restaurant-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.restaurant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.restaurant-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: column;
    align-items: baseline;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

    .status-dot.open {
        background: #10b981;
    }

    .status-dot.closed {
        background: #ef4444;
    }

.restaurant-details {
    display: flex;
    flex-direction: column;
}

.restaurant-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.restaurant-location {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.restaurant-stats {
    text-align: right;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

    .rating i {
        color: #fbbf24;
        font-size: 14px;
    }

    .rating span {
        font-size: 14px;
        font-weight: 600;
    }

.orders {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* Order List */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.order-info {
    display: flex;
    flex-direction: column;
}

.order-id {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.order-restaurant {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.order-details {
    text-align: right;
}

.order-amount {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.order-status-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-time {
    font-size: 12px;
    color: #6b7280;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

    .status-badge.completed {
        background: #d1fae5;
        color: #065f46;
    }

    .status-badge.preparing {
        background: #fef3c7;
        color: #92400e;
    }

    .status-badge.pending {
        background: #f3f4f6;
        color: #374151;
    }

    .status-badge.open {
        background: #d1fae5;
        color: #065f46;
    }

    .status-badge.closed {
        background: #fee2e2;
        color: #991b1b;
    }

    .status-badge.critical {
        background: #fee2e2;
        color: #991b1b;
    }

    .status-badge.low {
        background: #fef3c7;
        color: #92400e;
    }

    .status-badge.good {
        background: #d1fae5;
        color: #065f46;
    }

    .status-badge.active {
        background: #d1fae5;
        color: #065f46;
    }

    .status-badge.inactive {
        background: #f3f4f6;
        color: #374151;
    }

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #f08d11;
    border-radius: 4px;
    transition: width 0.3s ease;
}

    .progress-fill.good {
        background: #10b981;
    }

    .progress-fill.critical {
        background: #ef4444;
    }

/* Filters */
.filters {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

    .search-wrapper i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #9ca3af;
        font-size: 14px;
    }

.filter-search {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .filter-search:focus {
        outline: none;
        border-color: #f08d11;
    }

/* Restaurant Grid */
.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
}

.restaurant-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .restaurant-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

.restaurant-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

    .restaurant-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .restaurant-image .status-badge {
        position: absolute;
        top: 16px;
        right: 16px;
    }

.restaurant-card-content {
    padding: 24px;
}

.restaurant-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.restaurant-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.location {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #6b7280;
}

    .rating-info i {
        color: #fbbf24;
    }

    .rating-info span:first-of-type {
        font-weight: 600;
        color: #111827;
    }

.restaurant-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.stat-item {
    /*background: #f9fafb;*/
    background: transparent;
    padding: 12px;
    border-radius: 8px;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

    .stat-header i {
        color: #f08d11;
        font-size: 14px;
    }

    .stat-header span {
        font-size: 12px;
        font-weight: 500;
        color: #6b7280;
    }

.stat-number {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    text-align: left;
}

.restaurant-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

    .restaurant-details p {
        font-size: 14px;
        color: #6b7280;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .restaurant-details i {
        width: 16px;
        color: #9ca3af;
    }

.restaurant-actions {
    display: flex;
    gap: 12px;
}

    .restaurant-actions .btn {
        flex: 1;
        justify-content: center;
    }

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

    .dropdown-toggle:hover {
        background: #f3f4f6;
        color: #374151;
    }

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 1000;
    display: none;
    padding: 8px 0;
}

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-menu a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        color: #374151;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.2s ease;
    }

        .dropdown-menu a:hover {
            background: #f3f4f6;
            color: #111827;
        }

        .dropdown-menu a.danger {
            color: #dc2626;
        }

            .dropdown-menu a.danger:hover {
                background: #fee2e2;
                color: #991b1b;
            }

/* Table Styles */
.table-container {
    overflow:visible
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .data-table th {
        background: #f9fafb;
        padding: 12px;
        text-align: left;
        font-weight: 600;
        color: #374151;
        border-bottom: 1px solid #e5e7eb;
    }

    .data-table td {
        padding: 16px 12px;
        border-top: none!important;
        border-bottom: 1px solid #f3f4f6;
        vertical-align: top;
    }

    .data-table tr:hover {
        background: #f9fafb;
    }

/* Ingredient Table Specific */
.ingredient-info {
    display: flex;
    flex-direction: column;
}

.ingredient-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.ingredient-meta {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.category-badge {
    background: #f3f4f6;
    color: #374151;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.stock-level {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
}

.stock-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.min-stock {
    color: #6b7280;
}

/* User Table Specific */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-footer .user-info {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex-direction: column;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #f08d11;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.user-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

    .user-contact span {
        font-size: 12px;
        color: #6b7280;
        display: flex;
        align-items: center;
        gap: 4px;
    }

.role-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

    .role-badge.manager {
        background: #ede9fe;
        color: #6b21a8;
    }

    .role-badge.chef {
        background: #fed7aa;
        color: #c2410c;
    }

    .role-badge.waiter {
        background: #dbeafe;
        color: #1d4ed8;
    }

    .role-badge.cashier {
        background: #d1fae5;
        color: #065f46;
    }

/* Analytics Specific Styles */
.chart-card {
    min-height: 300px;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.performance-item {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.performance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

    .performance-header h4 {
        font-size: 16px;
        font-weight: 600;
        color: #111827;
        margin: 0;
    }

.performance-score {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

    .performance-score.excellent {
        background: #d1fae5;
        color: #065f46;
    }

    .performance-score.good {
        background: #fef3c7;
        color: #92400e;
    }

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.metric {
    text-align: center;
}

.metric-label {
    font-size: 12px;
    color: #6b7280;
    display: block;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

/* Settings Styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.setting-group {
    margin-bottom: 20px;
}

    .setting-group:last-child {
        margin-bottom: 0;
    }

.setting-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.setting-input,
.setting-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .setting-input:focus,
    .setting-select:focus {
        outline: none;
        border-color: #f08d11;
        box-shadow: 0 0 0 3px rgba(240, 141, 17, 0.1);
    }

.setting-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

    .toggle-label:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.3s;
        border-radius: 50%;
    }

input:checked + .toggle-label {
    background-color: #f08d11;
}

    input:checked + .toggle-label:before {
        transform: translateX(24px);
    }

.setting-description {
    font-size: 12px;
    color: #6b7280;
    margin: 4px 0 0 0;
}

.setting-actions {
    display: flex;
    gap: 12px;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .time-inputs input {
        flex: 1;
    }

    .time-inputs span {
        color: #6b7280;
        font-size: 14px;
    }

/* Integration Styles */
.integration-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.integration-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.integration-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.integration-icon {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.integration-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.integration-details p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.integration-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Modal Styles */
.modal {
    display: none;
    align-items: center; /* vertical centering */
    justify-content: center; /* horizontal centering */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

    .modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 100%;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    margin: 0; /* override margin-left: auto */
}


.modal.modal-fullscreen.show {
    height: 100%;
}
.modal.modal-fullscreen .modal-content {
    max-width: 98%;
    margin: 20px;
    height: -webkit-fill-available;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header h3 {
        font-size: 18px;
        font-weight: 600;
        color: #111827;
        margin: 0;
    }

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .modal-close:hover {
        color: #374151;
    }

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: #374151;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.2s ease;
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #f08d11;
            box-shadow: 0 0 0 3px rgba(240, 141, 17, 0.1);
        }

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-info {
    border-left: 4px solid #3b82f6;
}

.notification i {
    font-size: 18px;
}

.notification-success i {
    color: #10b981;
}

.notification-error i {
    color: #ef4444;
}

.notification-info i {
    color: #3b82f6;
}

.notification span {
    flex: 1;
    font-size: 14px;
    color: #374151;
}

.notification-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    margin-left:auto;
}

    .notification-close:hover {
        color: #374151;
    }

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .restaurant-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .performance-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 8px 16px;
    }

    .nav-item {
        white-space: nowrap;
        min-width: auto;
    }

    .sidebar-search,
    .sidebar-footer {
        display: none;
    }

    .main-content {
        padding: 16px;
    }

    .page-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .header-actions {
        justify-content: stretch;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .search-wrapper {
        max-width: none;
    }

    .alert-grid {
        grid-template-columns: 1fr;
    }

    .restaurant-stats {
        grid-template-columns: 1fr;
    }

    .restaurant-actions {
        flex-direction: column;
    }

    .table-container {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }

    .performance-metrics {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .integration-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .integration-status {
        justify-content: space-between;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 12px;
    }

    .card-content {
        padding: 16px;
    }

    .restaurant-card-content {
        padding: 16px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    .header-text h1 {
        font-size: 24px;
    }

    .setting-actions {
        flex-direction: column;
    }

    .time-inputs {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Sidebar collapsed state */
.sidebar.collapsed .brand-text,
.sidebar.collapsed .search-input-wrapper,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .badge,
.sidebar.collapsed .user-info {
    display: none;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .user-profile {
    justify-content: center;
}

/* Smooth transitions */
.sidebar * {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.main-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

    .main-content::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* Animation classes */
.updated {
    animation: highlight 1s ease;
}

@keyframes highlight {
    0% {
        background-color: #fef3c7;
    }

    100% {
        background-color: transparent;
    }
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading {
    position: relative;
    overflow: hidden;
}

    .loading::after {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: loading 1.5s infinite;
    }

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Menu Tabs */
.menu-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    padding-bottom: 16px;
}

.tab-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .tab-btn:hover {
        background: #f3f4f6;
        color: #374151;
    }

    .tab-btn.active {
        background: #f08d11;
        color: white;
    }

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
}

.menu-item-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .menu-item-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

.menu-item-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

    .menu-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.item-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.availability-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

    .availability-badge.available {
        background: #d1fae5;
        color: #065f46;
    }

    .availability-badge.out-of-stock {
        background: #fee2e2;
        color: #991b1b;
    }

.popular-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.special-badge {
    background: #ede9fe;
    color: #6b21a8;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.seasonal-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.menu-item-content {
    padding: 20px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.item-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.item-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.prep-time {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-details {
    margin-bottom: 16px;
}

.pricing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.cost {
    font-size: 12px;
    color: #6b7280;
}

.discount {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.restaurant-availability {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.restaurant-tag {
    background: #d1fae5;
    color: #065f46;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

    .restaurant-tag.unavailable {
        background: #f3f4f6;
        color: #6b7280;
    }

.item-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
}

    .stat i {
        color: #f08d11;
    }

/* Large Modal */
.large-modal {
    max-width: 700px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

    .checkbox-label input[type="checkbox"] {
        width: auto;
        margin: 0;
    }

.file-upload {
    position: relative;
}

    .file-upload input[type="file"] {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
        display: none;
    }

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .file-upload-label:hover {
        border-color: #f08d11;
        background: #fef7ed;
    }

    .file-upload-label i {
        font-size: 24px;
        color: #6b7280;
        margin-bottom: 8px;
    }

    .file-upload-label span {
        font-size: 14px;
        color: #6b7280;
    }

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    transition: border-color 0.3s ease;
}

    .image-preview-container img {
        transition: all 0.3s ease;
    }

    .image-preview-container button:hover {
        background: rgba(255,0,0,0.9) !important;
    }

.ingredientsDetails:has(div), .recipesDetails:has(div) {
    margin-top: 10px;
    background: #e2ecf399;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #f5f5f5;
}

.ingredient-detail-row input, .recipe-detail-row input, 
.ingredient-detail-row select, .recipe-detail-row select {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 14px;
    background: #fafbfc;
}

.ingredient-detail-row, .recipe-detail-row {
    margin-bottom: 8px;
    justify-content: flex-end;
}

    .ingredient-detail-row .ing_unit:first-child,
    .recipe-detail-row .recipe_unit:first-child {
        width: 90% !important;
        text-align: left;
        flex: 1;
    }



/* Responsive Menu Grid */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-tabs {
        justify-content: flex-start;
    }

    .item-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        flex-direction: column;
    }
}




/* Select2 */

span.select2-selection.select2-selection--multiple {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db !important;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

li.select2-selection__choice {
    margin: 0px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    padding-left: 20px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e2ecf3 !important;
    border: 1px solid #cbcbcb !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    top: 4px !important;
}

li.select2-selection__choice {
    margin: 0px 2px !important;
}

span.select2-selection:has(.select2-search__field):focus {
    outline: none;
    border-color: #f08d11 !important;
    box-shadow: 0 0 0 3px rgba(240, 141, 17, 0.1);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #f08d11c7 !important;
    color: white;
}

.select2-results__option--selected {
    background-color: #ffc8833b !important;
}





/* Vendor Modal Styles */
.modal-large {
    max-width: 900px;
    width: 90%;
}

.tab-navigation {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
    padding-bottom: 8px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-navigation .tab-btn.active {
    color: #fff;
    border-bottom-color: #f08d11;
}

    .tab-btn:hover {
        color: #f08d11;
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

.vendor-tab-empty h2 {
    text-align: center;
    margin-top: 2rem;
    color: #666;
}


.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.vendor-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

    .vendor-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

.vendor-info h4 {
    margin: 0 0 8px 0;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
}

.vendor-category {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 12px 0;
}

.vendor-contact,
.vendor-email {
    color: #4b5563;
    font-size: 14px;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vendor-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 12px 0;
}

    .vendor-rating i {
        color: #fbbf24;
        font-size: 14px;
    }

    .vendor-rating span {
        margin-left: 8px;
        font-weight: 600;
        color: #111827;
    }

.vendor-actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

/* Linked Vendors Tab */
.linked-vendors-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.linked-vendor-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

    .linked-vendor-item .vendor-info {
        flex: 1;
    }

        .linked-vendor-item .vendor-info h4 {
            margin: 0 0 4px 0;
        }

.link-date {
    color: #6b7280;
    font-size: 12px;
    margin: 4px 0 0 0;
}

.vendor-stats {
    display: flex;
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.linked-vendor-item .vendor-actions {
    display: flex;
    gap: 8px;
    margin: 0;
}

@media (max-width: 768px) {
    .linked-vendor-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .vendor-stats {
        align-self: stretch;
        justify-content: space-around;
    }

    .linked-vendor-item .vendor-actions {
        align-self: stretch;
        justify-content: center;
    }
}





/* jQuery DataTable Modern Pagination Design */


.table-image{
    width:50px;
    height:50px;
    object-fit:cover;
    border-radius:6px;
}
.insight-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter {
    display: none;
}

.dataTables_paginate {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    gap: 8px;
}

    .dataTables_paginate .paginate_button {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        color: #333;
        padding: 8px 14px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        
    }

        .dataTables_paginate .paginate_button:hover {
            background: #f08d11!important;
            border-color: #f08d11!important;
            color: #fff!important;
        }

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #f08d11 !important;
    border-color: #f08d11 !important;
    font-weight: 600;
    border-radius: 50% !important;
}
.table-container .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    color: #fff !important;
}
.table-container .dataTables_wrapper .dataTables_paginate .paginate_button.previous:hover,
.table-container .dataTables_wrapper .dataTables_paginate .paginate_button.next:hover {
    color: #f08d11 !important;
    background:transparent!important;
}
.table-container .dataTables_wrapper .dataTables_paginate .paginate_button.previous.disabled:hover,
.table-container .dataTables_wrapper .dataTables_paginate .paginate_button.next.disabled:hover {
    color: #f08d11 !important;
    background:transparent!important;
    border:none!important;
    cursor:not-allowed!important;
}

        .dataTables_paginate .paginate_button.disabled {
            background: #e9ecef;
            border-color: #dee2e6;
            color: #6c757d;
            cursor: not-allowed;
        }

    .dataTables_paginate .ellipsis {
        padding: 8px;
        color: #6c757d;
    }

/* DataTable Info Design */
.dataTables_info {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 15px;
    margin: 15px 0;
    font-size: 14px;
    color: #333;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .dataTables_info::before {
        content: '\f05a'; /* FontAwesome info-circle icon */
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        color: #f08d11;
        margin-right: 8px;
    }

/* Ensure table container looks modern */
.data-table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: visible;
}

    .data-table th,
    .data-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #dee2e6;
    }

    .data-table th {
        background: #f8f9fa;
        font-weight: 600;
        color: #333;
    }

    .data-table tbody tr:hover {
        background: #f1f3f5;
    }