/* ============================================================
   דפוס דותן — העיצוב המקורי (ניווט עליון, רקע בהיר, כחול Bootstrap)
   קובץ זה מחזיר את המראה המקורי ושומר על הקלאסים
   שהדפים המעודכנים משתמשים בהם
   ============================================================ */

:root {
    /* צבעי המקור - כחול Bootstrap */
    --accent: #0d6efd;
    --accent-hover: #0b5ed7;
    --accent-light: #e7f1ff;
    --bg: #f0f2f5;
    --surface: #ffffff;
    --fill: #f8f9fa;
    --border: #e9ecef;
    --border-strong: #dee2e6;
    --text: #212529;
    --text-secondary: #6c757d;
    --warning: #ff9800;
    --danger: #dc3545;
    --success: #198754;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-2: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-4: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-8: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-16: 0 10px 25px rgba(0,0,0,0.1);
}

/* padding-bottom: מקום לכפתורים הצפים (☕ / 📥 / 💬) שלא יכסו את תחתית הטבלאות */
body { font-family: 'Rubik', sans-serif; background-color: var(--bg); padding-bottom: 80px; }

/* מודל האישור והודעות ה-toast של app.js - פונט גדול (מזכירה) */
#appConfirmModal .modal-body { font-size: 1.25rem; line-height: 1.5; white-space: pre-line; }
#appToastWrap { z-index: 1090; }
#appToastWrap .toast { font-size: 1.1rem; }

/* --- הניווט העליון המקורי --- */
.navbar { background-color: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.nav-link { font-weight: 500; color: #555 !important; margin-inline-end: 2px; }
/* התפריט העליון: שורה אחת אחידה - הסמן לא שובר את הכפתור לשתי שורות */
.navbar .nav-link { white-space: nowrap; font-size: 15px; padding-inline: 9px; }
.navbar .nav-link .badge {
    font-size: 10.5px; padding: 3px 6px; vertical-align: 2px;
}
.nav-link:hover, .nav-link.active { color: #0d6efd !important; }
.dashboard-container { max-width: 1400px; margin: 30px auto; }
.card { border-radius: 16px; border: none; }

.search-bar {
    max-width: 300px;
    width: 100%;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
}
.search-bar input { border: none; background: transparent; width: 100%; outline: none; font-size: 0.9rem; }

/* ============ כרטיסי סטטיסטיקה (דף ראשי) - המקור ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.813rem;
    color: #6c757d;
    font-weight: 500;
}

.stat-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 4px;
}

/* צבעים עדינים לכל כרטיס - המקור */
.stat-card.color-1 .stat-value { color: #5f27cd; }
.stat-card.color-2 .stat-value { color: #0a8f90; } /* היה #00d2d3 — יחס 1.88, בלתי קריא */
.stat-card.color-3 .stat-value { color: #ff6b6b; }
.stat-card.color-4 .stat-value { color: #0e8a68; } /* היה #1dd1a1 */

.stat-card.clickable { cursor: pointer; }
.stat-card.clickable:active { transform: scale(0.98) translateY(-2px); }

/* ============ טאבי סטטוס - המקור ============ */
.status-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 0;
}

.status-tab {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.status-tab:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.status-tab.active {
    border-color: currentColor;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background: #f8f9fa;
}

.status-tab-count {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 4px 0;
}

.status-tab-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
}

/* צבעים עדינים - המקור */
.tab-all { color: #495057; }
.tab-all.active { background: #f8f9fa; }

.tab-new { color: #5f27cd; }
.tab-new.active { background: #f3f0ff; }

.tab-design { color: #0984e3; }
.tab-design.active { background: #e3f2fd; }

.tab-work { color: #a86b00; } /* היה #fdcb6e — יחס 1.51 על לבן */
.tab-work.active { background: #fff8e1; }

.tab-ready { color: #00745c; } /* היה #00b894 */
.tab-ready.active { background: #e8f5e9; }

.tab-completed { color: #636e72; }
.tab-completed.active { background: #f5f5f5; }

.tab-cancelled { color: #d63031; }
.tab-cancelled.active { background: #ffebee; }

.tab-efrat { color: #e84393; }
.tab-efrat.active { background: #fce4ec; }

/* ============ התאמות לקבצים המעודכנים (טפסי הזמנה) ============
   הקלאסים האלה בשימוש בטפסים החדשים - כאן הם מקבלים את המראה המקורי */

/* פאנל תחשיב מחיר - כחלחל בהיר כמו המקור (bg-primary bg-opacity-10) */
.price-panel { background: rgba(13, 110, 253, 0.1) !important; }
.price-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.price-box .input-group-text,
.price-box .form-control { background: #f8f9fa !important; }

/* שדות קלט רכים - אפור בהיר כמו המקור */
.soft-input {
    background: #f8f9fa !important;
    border: 0 !important;
}
.soft-input:focus {
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1) !important;
}

/* כרטיס תשלום */
.payment-card {
    background-color: #fff;
    border: 2px solid transparent;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.payment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* צ'יפים של גימורים - המקור (נבחר = כחול) */
.finish-btn {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
    cursor: pointer;
}
.finish-btn:hover { background-color: #e9ecef; }
.btn-check:checked + .finish-btn {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.3);
}

/* מתג חשבונית מס - צהוב כמו המקור */
.form-switch .form-check-input:checked { background-color: #ffc107; border-color: #ffc107; }

/* אנימציות לעדכון בלי רענון (נשאר מהשדרוג) */
.badge-loading { opacity: .45; pointer-events: none; }
.row-leaving { transition: opacity .4s, transform .4s; opacity: 0; transform: translateX(30px); }
.badge-pop { animation: badge-pop .35s ease; }
@keyframes badge-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
