/* ═══════════════════════════════════════════════════════════════════════
   Ghasla Client CSS v1.4
═══════════════════════════════════════════════════════════════════════ */

/* ── Dashboard wrapper ───────────────────────────────────────────────── */
.gc-wrap {
    max-width: 680px;
    margin: 0 auto 2rem;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
}

/* ── Header ──────────────────────────────────────────────────────────── */
.gc-header {
    background: #0d1b2a;
    color: #fff;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.gc-logo    { font-size: 20px; font-weight: 700; }
.gc-welcome { font-size: 14px; color: #a0b4c8; }
.gc-welcome strong { color: #fff; }

/* ── Cards ───────────────────────────────────────────────────────────── */
.gc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 1.25rem;
}
.gc-card        { border-radius: 12px; padding: 1rem; }
.gc-blue        { background: #1a6eba; color: #fff; }
.gc-green       { background: #1D9E75; color: #fff; }
.gc-teal        { background: #0e6b6b; color: #fff; }
.gc-gray        { background: #f1f3f5; color: #555; }
.gc-card-lbl    { font-size: 11px; opacity: .85; margin-bottom: 4px; }
.gc-card-val    { font-size: 20px; font-weight: 700; }
.gc-exec-val    { font-size: 16px; }
.gc-card-sub    { font-size: 11px; opacity: .8; margin-top: 2px; }

/* ── Section ─────────────────────────────────────────────────────────── */
.gc-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.gc-section-title { font-size: 14px; font-weight: 600; color: #0d1b2a; margin-bottom: 12px; }

/* ── Progress bar ────────────────────────────────────────────────────── */
.gc-prog-bar  { background: #e9ecef; border-radius: 99px; height: 10px; overflow: hidden; margin-bottom: 6px; }
.gc-prog-fill { height: 100%; background: #1D9E75; border-radius: 99px; transition: width .4s; }
.gc-prog-lbl  { font-size: 12px; color: #6c757d; margin-bottom: 12px; }

/* ── Wash dots ───────────────────────────────────────────────────────── */
.gc-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.gc-dot  {
    width: 34px; height: 34px; border-radius: 50%;
    border: 2px solid #dee2e6;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: #aaa;
}
.gc-dot.done { background: #1D9E75; border-color: #1D9E75; color: #fff; font-size: 15px; }

/* ── Car info grid ───────────────────────────────────────────────────── */
.gc-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; }
.gc-lbl       { display: block; font-size: 11px; color: #6c757d; margin-bottom: 2px; }

/* ── History table ───────────────────────────────────────────────────── */
.gc-hist    { width: 100%; border-collapse: collapse; font-size: 13px; }
.gc-hist th { text-align: right; padding: 8px 10px; border-bottom: 2px solid #dee2e6; color: #555; font-size: 12px; }
.gc-hist td { padding: 8px 10px; border-bottom: 1px solid #f1f3f5; }

/* ── WhatsApp button ─────────────────────────────────────────────────── */
.gc-wa-btn       { display: inline-block; background: #25D366; color: #fff; padding: 12px 28px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 14px; }
.gc-wa-btn:hover { background: #1ebe5d; color: #fff; }

/* ── Logout link ─────────────────────────────────────────────────────── */
.gc-logout-link { font-size: 13px; color: #6c757d; text-decoration: none; }
.gc-logout-link:hover { color: #d9534f; }

/* ── Generic box ─────────────────────────────────────────────────────── */
.gc-box { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 10px; padding: 1.5rem; text-align: center; color: #555; }

/* ══════════════════════════════════════════════════════════════════════
   Nav login button (في الـ header/menu)
══════════════════════════════════════════════════════════════════════ */
.gc-nav-login-item { list-style: none; display: inline-flex; align-items: center; }

.gc-nav-login-btn {
    background: #1a6eba;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
    font-family: inherit;
}
.gc-nav-login-btn:hover { background: #145da8; }

.gc-nav-logout-btn {
    color: #6c757d !important;
    font-size: 13px;
    text-decoration: none;
    padding: 8px 12px;
    display: inline-block;
}
.gc-nav-logout-btn:hover { color: #d9534f !important; }

/* ══════════════════════════════════════════════════════════════════════
   Login Popup Overlay
══════════════════════════════════════════════════════════════════════ */
#gc-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#gc-popup-box {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    position: relative;
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    animation: gc-popup-in .2s ease;
}
@keyframes gc-popup-in {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

#gc-popup-close {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #f1f3f5;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 14px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
#gc-popup-close:hover { background: #dee2e6; }

.gc-popup-logo  { font-size: 36px; text-align: center; margin-bottom: 6px; }
.gc-popup-title { font-size: 18px; font-weight: 700; text-align: center; color: #0d1b2a; margin: 0 0 6px; }
.gc-popup-hint  { font-size: 12px; color: #6c757d; text-align: center; margin: 0 0 1.2rem; }

/* Message */
#gc-popup-msg {
    display: none;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
}
.gc-msg-ok  { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.gc-msg-err { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Fields */
.gc-popup-field { margin-bottom: 1rem; }
.gc-popup-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}
.gc-popup-field input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #dee2e6;
    border-radius: 9px;
    font-size: 14px;
    direction: ltr;
    text-align: left;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}
.gc-popup-field input:focus {
    outline: none;
    border-color: #1a6eba;
    box-shadow: 0 0 0 3px rgba(26,110,186,.15);
}

/* Submit button */
#gc-popup-submit {
    width: 100%;
    padding: 12px;
    background: #1a6eba;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
    margin-top: 4px;
}
#gc-popup-submit:hover    { background: #145da8; }
#gc-popup-submit:disabled { background: #7aabda; cursor: not-allowed; }
