
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@100..900&display=swap&family=Arimo:ital,wght@0,400..700;1,400..700&family=Assistant:wght@200..800&family=Heebo:wght@100..900&family=IBM+Plex+Sans+Hebrew:wght@100;200;300;400;500;600;700&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Rubik:ital,wght@0,300..900;1,300..900&family=Varela+Round&display=swap');

/* משתנים גלובליים */
:root {
    --sidebar-width: 240px;
    --header-height: 56px;
    --primary-color: #008060;
    --hover-color: #f6f6f7;
    --border-color: #e1e3e5;
    --text-color: #202223;
    --badge-color: #e3e5e7;
}

/* מבנה בסיסי */
body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans Hebrew", sans-serif;
    background-color: #f6f6f7;
    direction: rtl;
}
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], input[type="url"], textarea, select,button,a{
    font-family: "Noto Sans Hebrew", sans-serif;
}
/* חלוקת המסך */
.admin-layout {
    display: flex;
    height: 100vh;
}

/* תפריט צד */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    background: white;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* לוגו */
.sidebar-brand {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    height: 24px;
}
.logo img {
    max-width: 210px;
}

   .logo{
       margin: 0 auto;
       padding: 20px;
       text-align: center;
       max-width: 180px;
   }
/* תפריט ניווט */
.sidebar-nav {
    padding: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 4px 0;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s;
    font-size: 14px;
}

.nav-item:hover {
    background-color: var(--hover-color);
}

.nav-item.active {
    background-color: rgba(0, 128, 96, 0.08);
    color: var(--primary-color);
    font-weight: 500;
}

.nav-item i {
    width: 20px;
    margin-left: 12px;
    text-align: center;
}

/* תגיות */
.nav-badge {
    margin-right: auto;
    background: var(--badge-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Header */
/* כותרת עליונה */
.top-header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
}

/* חיפוש */
.search-bar {
    position: relative;
    width: 480px;
    margin: 0 24px;
}

.search-input {
    width: 100%;
    height: 32px;
    padding: 0 36px;
    border: none;
    border-radius: 4px;
    background-color: #f6f6f7;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6d7175;
}

/* כפתורי פעולה */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
}

.header-button {
    background: none;
    border: none;
    padding: 8px;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 4px;
}

.header-button:hover {
    background-color: var(--hover-color);
}

/* תפריט משתמש */
.user-menu {
    position: relative;
}
.user-menu-dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 160px;
    z-index: 1000;
}

.user-menu-dropdown.active {
    display: block;
}

.user-menu-dropdown a {
    display: block;
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
}

.user-menu-dropdown a:hover {
    background-color: var(--hover-color);
}
/* תוכן ראשי */
.main-wrapper {
    margin-right: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

/* Main Content */
.main-content {
    grid-column: 2;
    padding: 10px;
    background: var(--background-color);
}


.notifications-wrapper {
    position: relative;
}

.notifications-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #d82c0d;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 16px;
    text-align: center;
}

.notifications-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    /* שינוי המיקום כך שיהיה בצד שמאל של הכפתור */
    left: 0;
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 8px; /* מרווח קטן מהכפתור */
}

@media (max-width: 350px) {
    .notifications-dropdown {
        width: calc(100vw - 32px);
        left: -100px; /* התאמה למסכים קטנים */
    }
}
.notifications-dropdown.active {
    display: block;
}

.notifications-header {
    padding: 12px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h3 {
    margin: 0;
    font-size: 16px;
}

.mark-all-read {
    background: none;
    border: none;
    color: #008060;
    font-size: 14px;
    cursor: pointer;
}

.notifications-list {
    padding: 8px 0;
}

.notification-item {
    padding: 12px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}

.notification-item:hover {
    background: #f9fafb;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    color: #6d7175;
}

.notification-time {
    font-size: 12px;
    color: #8c9196;
    margin-top: 4px;
}

.mark-read-btn {
    background: none;
    border: none;
    color: #008060;
    padding: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.notification-item:hover .mark-read-btn {
    opacity: 1;
}

.no-notifications {
    padding: 24px;
    text-align: center;
    color: #6d7175;
}

.no-notifications i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #008060;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

/* Data Table */
.data-table {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-color);
}

.table-cell {
    font-size: 14px;
    color: #6d7175;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 13px;
    background: #bbf7d0;
    color: #166534;
}

.status-badge.out-of-stock {
    background: #fecaca;
    color: #991b1b;
}

/* Action Buttons */
.action-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.action-button:hover {
    background-color: #006e52;
}

.secondary-button {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.secondary-button:hover {
    background: var(--background-color);
}
.search-input {

    padding: 0px !important;
    padding-right: 35px !important;
  }

/* התאמה למובייל */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(100%);
        transition: transform 0.3s;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-right: 0;
        width: 100%;
    }
 

}

@media (min-width: 768px) {
button.mobile-menu-button{
    display: none;
}
}
/* pages */

/* Dashboard Layout & Components */
.dashboard-container {
    padding: 24px;
    max-width: 100%;
}

/* 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-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-card .stat-title {
    color: #6d7175;
    font-size: 14px;
    font-weight: 500;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
}

.stat-card .stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.stat-change.positive {
    color: var(--primary-color);
}

.stat-change.negative {
    color: var(--error-color);
}

/* Recent Orders Table */
.recent-orders {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-top: 32px;
}

.recent-orders-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-orders-title {
    font-size: 16px;
    font-weight: 600;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 16px 24px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.orders-table th {
    background: #f9fafb;
    color: #6d7175;
    font-weight: 500;
    font-size: 14px;
}

.orders-table td {
    font-size: 14px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.status-new {
    background-color: #f0f5ff;
    color: #1d4ed8;
}

.status-preparing {
    background-color: #fff7ed;
    color: #9a3412;
}

.status-ready {
    background-color: #ecfdf5;
    color: #047857;
}

.status-completed {
    background-color: #f9fafb;
    color: #4b5563;
}

.status-cancelled {
    background-color: #fef2f2;
    color: #b91c1c;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.action-button.primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.action-button.secondary {
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    text-decoration: none;
}

.action-button:hover {
    filter: brightness(95%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 16px;
    }

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

    .quick-actions {
        flex-direction: column;
    }

    .orders-table th:nth-child(4),
    .orders-table td:nth-child(4) {
        display: none;
    }
}



/* settings */

/* Settings Page Layout */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

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

.settings-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

/* Settings Cards */
.settings-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header i {
    color: #6d7175;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 24px;
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e5e5;
    transition: 0.4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Store Status Card */
/* Sticky Status Card */
.store-status-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 24px;
    position: sticky;
    top: 24px;
    margin-bottom: 24px;
}

.store-url-section {
    margin: 16px 0;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
}

.store-url-label {
    font-size: 14px;
    color: #6d7175;
    margin-bottom: 8px;
}

.store-url {
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    word-break: break-all;
}

.store-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin: 16px 0;
}

.store-status.active {
    background: #ecfdf5;
    color: #047857;
}

.store-status.inactive {
    background: #fef2f2;
    color: #b91c1c;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid currentColor;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 1px solid currentColor;
}


.btn-primary:hover {
    filter: brightness(90%);
}

.btn-secondary:hover {
    background: #f9fafb;
}

/* Image Upload */
.image-upload {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

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

.upload-icon {
    font-size: 24px;
    color: #6d7175;
    margin-bottom: 8px;
}

.upload-text {
    font-size: 14px;
    color: #6d7175;
}

/* Shipping Zones */
.shipping-zones {
    margin-top: 16px;
}

.zone-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 8px;
    align-items: center;
}

.add-zone-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px dashed var(--border-color);
    color: #6d7175;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.add-zone-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .settings-content {
        grid-template-columns: 1fr;
    }
    
    .store-status-card {
        position: static;
        margin-bottom: 24px;
    }
}
@media (max-width: 768px) {
    .settings-container {
        padding: 16px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .zone-item {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}



.card-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    width: calc(100% - 24px); /* שינוי כדי לפתור את בעיית הפדינג */
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

/* אם אתה מעדיף להשתמש ב-box-sizing */
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box; /* פתרון אלטרנטיבי */
}

/* סגנונות עבור הכרטיס עצמו */
.settings-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    overflow: hidden; /* למנוע גלישה של האינפוטים */
}

/* סגנונות עבור תיבת הטקסט */
textarea.form-control {
    width: 100%;
    min-height: 100px;
    resize: vertical;
    box-sizing: border-box;
}

/* ====== Empty States ====== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #637381;
 }
 
 .empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #919eab;
 }
 
 .empty-state-text {
    font-size: 14px;
    margin-bottom: 16px;
 }

 /* ====== Cards & Lists ====== */
.table-container {
   background: white;
   border-radius: 8px;
   box-shadow: 0 1px 3px rgba(0,0,0,0.1);
   overflow: hidden;
}

.data-table {
   width: 100%;
   border-collapse: collapse;
}

.data-table th {
   background: #f9fafb;
   font-weight: 500;
   text-align: right;
   padding: 12px 16px;
   border-bottom: 1px solid var(--border-color);
   color: #637381;
   font-size: 14px;
}

.data-table td {
   padding: 12px 16px;
   border-bottom: 1px solid #e5e5e5;
   font-size: 14px;
}

.data-table tr:last-child td {
   border-bottom: none;
}

/* ====== Forms & Inputs ====== */
.form-group {
   margin-bottom: 20px;
}

label {
   display: block;
   margin-bottom: 8px;
   font-weight: 500;
   font-size: 14px;
   color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
   width: 100%;
   padding: 8px 12px;
   border: 1px solid var(--border-color);
   border-radius: 4px;
   font-size: 14px;
   transition: all 0.2s;
   color: var(--text-color);
   background: white;
   box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
   outline: none;
   border-color: var(--primary-color);
   box-shadow: 0 0 0 1px var(--primary-color);
}

/* ====== Buttons ====== */
.btn {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 8px 16px;
   border-radius: 4px;
   font-size: 14px;
   font-weight: 500;
   cursor: pointer;
   transition: all 0.2s;
   border: none;
   text-decoration: none;
}

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

.btn-primary:hover {
   background: #006e52;
}

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

.btn-secondary:hover {
   background: #f5f5f5;
}

/* ====== Status Badges ====== */
.status-badge {
   display: inline-flex;
   align-items: center;
   padding: 2px 8px;
   border-radius: 12px;
   font-size: 12px;
   font-weight: 500;
}

.status-active {
   background: #e3fff1;
   color: #008148;
}

.status-draft {
   background: #f4f6f8;
   color: #637381;
}

/* ====== Header Actions ====== */
.header-actions {
   display: flex;
   align-items: center;
   gap: 12px;
}

.header-action-btn {
   color: white;
   padding: 8px;
   border-radius: 4px;
   display: flex;
   align-items: center;
   gap: 8px;
   font-size: 14px;
   text-decoration: none;
}

.header-action-btn:hover {
   background: rgba(255, 255, 255, 0.1);
}

/* ====== Notifications ====== */
.notifications-badge {
   position: relative;
}

.notifications-badge::after {
   content: '';
   position: absolute;
   top: 0;
   right: 0;
   width: 8px;
   height: 8px;
   background: var(--error-color);
   border-radius: 50%;
}

/* ====== Filters ====== */
.filters-bar {
   display: flex;
   gap: 12px;
   margin-bottom: 24px;
   flex-wrap: wrap;
}

.filter-group {
   display: flex;
   align-items: center;
   gap: 8px;
}

.filter-select {
   min-width: 200px;
}

/* ====== Empty States ====== */
.empty-state {
   text-align: center;
   padding: 48px 24px;
   color: #637381;
}

.empty-state-icon {
   font-size: 48px;
   margin-bottom: 16px;
   color: #919eab;
}

.empty-state-text {
   font-size: 14px;
   margin-bottom: 16px;
}

/* ====== Responsive Design ====== */
@media (max-width: 1024px) {
   .search-box {
       width: 320px;
   }
}

@media (max-width: 768px) {
   .admin-layout {
       grid-template-columns: 1fr;
   }

   .sidebar {
       transform: translateX(100%);
       transition: transform 0.3s ease;
   }

   .sidebar.active {
       transform: translateX(0);
   }

   .main-content {
       margin-right: 0;
   }

   .top-header {
       right: 0;
   }

   .search-box {
       width: 200px;
   }

   .filters-bar {
       flex-direction: column;
   }

   .filter-group {
       width: 100%;
   }
}

/* ====== Print Styles ====== */
@media print {
   .sidebar,
   .top-header,
   .filters-bar,
   .header-actions {
       display: none !important;
   }

   .main-content {
       margin: 0 !important;
       padding: 0 !important;
   }

   .page-header {
       margin-bottom: 32px;
   }
}





/* Mobile start here */
/* Mobile First Admin CSS */
:root {
    --sidebar-width: 240px;
    --primary-color: #008060;
    --hover-color: #006e52;
    --text-color: #202223;
    --border-color: #e1e3e5;
    --background-color: #f6f6f7;
}

/* Base Layout */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    /* Tables */
    .orders-table, 
    .products-table, 
    .customers-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 14px;
    }

    .orders-table td, 
    .products-table td, 
    .customers-table td {
        min-width: 120px;
        padding: 8px;
    }

    /* Headers */
    .orders-header,
    .products-header,
    .customers-header,
    .page-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        flex-direction: row;
        gap: 8px;
        justify-content: end;
    
    }

    .header-actions .btn,
    .header-actions .action-button {
        width: 100%;
        justify-content: center;
    }

    /* Search & Filters */
    .search-box,
    .orders-filters,
    .search-filters {
        flex-direction: column;
        gap: 8px;
    }

    .search-box input,
    .orders-filters input,
    .search-filters input {
        width: 100%;
    }

    /* Status Tabs */
    .status-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
    }

    .status-tab {
        font-size: 13px;
        padding: 6px 12px;
    }

    /* Forms */
    .form-grid {
        grid-template-columns: 1fr;
    }

    .card {
        margin-bottom: 16px;
    }

    .card-body {
        padding: 12px;
    }

    /* Product Options */
    .option-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Image Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Stats Display */
    .order-stats,
    .customer-stats {
        flex-direction: column;
        gap: 8px;
    }

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

    /* Modals */
    .modal-content {
        width: 95%;
        margin: 10px;
    }

    /* Pagination */
    .pagination {
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        padding-bottom: 8px;
    }

    .pagination a {
        padding: 6px 10px;
        font-size: 14px;
    }

    /* Customer Details */
    .customer-details {
        margin-bottom: 8px;
    }

    /* Bulk Actions */
    .bulk-actions {
        flex-direction: column;
    }

    .bulk-actions .btn {
        width: 100%;
    }
}

/* Tablet Breakpoint */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 16px;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Shared Mobile Styles */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        transform: translateX(100%);
        z-index: 1000;
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-right: 0;
        width: 100%;
    }

    .mobile-menu-button {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--primary-color);
        color: white;
        border: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        z-index: 999;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .status-tabs {
        overflow-x: auto; /* מאפשר גלילה אך ללא פס */
    }
    
    .status-tabs::-webkit-scrollbar {
        display: none; /* מסתיר את הסקרול */
    }
    .orders-table, .products-table, .customers-table {
        overflow-x: auto; /* מאפשר גלילה אופקית */
        scrollbar-width: none; /* מסתיר סקרול בפיירפוקס */
    }
    
    .orders-table::-webkit-scrollbar, 
    .products-table::-webkit-scrollbar, 
    .customers-table::-webkit-scrollbar {
        display: none; /* מסתיר סקרול בדפדפנים מבוססי WebKit (Chrome, Edge, Safari) */
    }
    
}

span.nav-section-title{
    font-size: 14px;
    font-weight: 500;
    color: #6d7175;
    margin-bottom: 8px;
    display: block;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    margin-bottom: 20px;
    background-color: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 8px;
    color: #065f46;
    font-weight: 500;
}

.success-message i {
    font-size: 20px;
    color: #059669;
}

/* אנימציית הופעה */
.success-message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* הוספת מדיה קוורי למובייל */
@media (max-width: 768px) {
    .success-message {
        padding: 12px;
        font-size: 14px;
    }
    
    .success-message i {
        font-size: 18px;
    }
}


/* בסיס RTL/LTR */
html[dir="rtl"] {
    direction: rtl!important;
    text-align: right!important;
}

html[dir="ltr"] {
    direction: ltr !important;
    text-align: left!important;
}

/* התאמות ספציפיות לשפה */
html[dir="ltr"] .sidebar {
    right: auto!important;;
    left: 0!important;;
    border-left: none!important;;
    border-right: 1px solid var(--border-color)!important;;
}

html[dir="ltr"] .main-wrapper {
    margin-right: 0!important;;
    margin-left: var(--sidebar-width)!important;;
}

html[dir="ltr"] .nav-item i {
    margin-left: 0!important;;
    margin-right: 12px!important;;
}
html[dir="ltr"] .main-content{
direction: ltr;
}

html[dir="ltr"] .header-actions {
    margin-right: 0!important;;
    margin-left: auto!important;;
}

html[dir="ltr"] .search-icon {
    right: auto!important;;
    left: 12px!important;;
}

html[dir="ltr"] .search-input {
    padding: 0 35px 0 0 !important;
}

@media (max-width: 768px) {
    html[dir="ltr"] .sidebar {
        transform: translateX(-100%);
    }

    html[dir="ltr"] .sidebar.active {
        transform: translateX(0);
    }

    html[dir="ltr"] .mobile-menu-button {
        right: auto;
        left: 20px;
    }

    html[dir="ltr"] .main-wrapper {
        margin-left: 0;
    }
}


.sync-settings-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sync-settings-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #202223;
}

.sync-toggle-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 6px;
    background: #f6f6f7;
}

.sync-toggle-item:last-child {
    margin-bottom: 0;
}

.sync-toggle-content {
    margin-right: 12px;
    flex: 1;
}

.sync-toggle-title {
    font-weight: 500;
    margin-bottom: 4px;
    color: #202223;
}

.sync-toggle-description {
    font-size: 14px;
    color: #6d7175;
}

.webhook-url-section {
    margin-top: 16px;
    padding: 16px;
    background: #f6f6f7;
    border-radius: 6px;
}

.webhook-url-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #202223;
}

.url-display {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.url-display input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #8c9196;
    border-radius: 4px;
    font-size: 14px;
    color: #202223;
    background: #ffffff;
}

.url-display button {
    padding: 8px;
    background: #008060;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    max-width: 45px;
}

.url-display button:hover {
    background: #006e52;
}

.webhook-url-hint {
    font-size: 13px;
    color: #6d7175;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #8c9196;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #008060;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}
