/* ==========================================================================
   OrderFromTurkey Supplier Portal — supplier.css
   Minimal overrides on top of Bootstrap 5. No build step; hand-written.
   ========================================================================== */

:root {
    --oft-brand: #f7b500;
    --oft-brand-dark: #d89900;
    --oft-ink: #1a1a1a;
    --oft-muted: #6c757d;
    --oft-bg: #f5f6fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--oft-bg);
    color: var(--oft-ink);
}

/* ── Nav tweaks ───────────────────────────────────────── */
.navbar .badge {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ── Card shadows (Bootstrap cards by default have no shadow) ── */
.card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border-radius: 10px;
}
.card-header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-weight: 600;
}

/* ── Primary button = brand gold ───────────────────────── */
.btn-primary {
    background-color: var(--oft-brand);
    border-color: var(--oft-brand);
    color: #000;
    font-weight: 600;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--oft-brand-dark) !important;
    border-color: var(--oft-brand-dark) !important;
    color: #000 !important;
}

/* ── Approval status badges ─────────────────────────────── */
.badge-status {
    font-size: 0.75rem;
    padding: 0.35em 0.7em;
    font-weight: 600;
    letter-spacing: 0.2px;
}





/* ── KPI cards (dashboard) ──────────────────────────────── */
.kpi-card {
    text-align: center;
    padding: 1.25rem;
    transition: transform 0.15s ease;
}
.kpi-card:hover {
    transform: translateY(-2px);
}
.kpi-card .kpi-value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    color: var(--oft-ink);
}

.kpi-card .kpi-icon {
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 0.5rem;
}

/* ── Product list row hover ─────────────────────────────── */

.product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-thumb-empty {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background: #e9ecef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1.5rem;
}

/* ── Auth pages (login/register) ────────────────────────── */
.auth-card {
    max-width: 480px;
    margin: 3rem auto;
}
.auth-card.auth-card-wide {
    max-width: 720px;
}
.auth-card .card-body {
    padding: 2.5rem;
}
.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.auth-card .subtitle {
    color: var(--oft-muted);
    margin-bottom: 1.75rem;
}

/* ── Image upload preview ───────────────────────────────── */
.image-preview {
    position: relative;
    display: inline-block;
    margin: 0.25rem;
}
.image-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.image-preview .remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    border: none;
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
}

.dropzone {
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    color: var(--oft-muted);
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
}
.dropzone:hover,
.dropzone.dragover {
    border-color: var(--oft-brand);
    background: #fffdf5;
    color: var(--oft-brand-dark);
}

/* ── Form section headings ──────────────────────────────── */
.form-section {
    margin-bottom: 2rem;
}
.form-section h5 {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--oft-muted);
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* ── Required-field marker ──────────────────────────────── */
.req {
    color: var(--oft-brand-dark);
    font-weight: 700;
    margin-left: 2px;
    user-select: none;
}

/* ── Large dropzone (product upload) ────────────────────── */
.dropzone--lg {
    padding: 2.5rem 1.5rem;
    border: 2px dashed #d0d4dc;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, var(--oft-bg));
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.dropzone--lg:hover,
.dropzone--lg.dragover {
    border-color: var(--oft-brand);
    background: linear-gradient(180deg, #fffdf5, #fff4d6);
    transform: scale(1.005);
}
.dropzone--lg .dz-icon {
    font-size: 2.5rem;
    line-height: 1;
    color: var(--oft-brand-dark);
    margin-bottom: 0.6rem;
}
.dropzone--lg .dz-title {
    font-weight: 600;
    color: var(--oft-ink);
    margin-bottom: 0.25rem;
}
.dropzone--lg .dz-hint {
    font-size: 0.85rem;
    color: var(--oft-muted);
}

/* ── Inline character counter under inputs ──────────────── */
.field-counter {
    font-size: 0.78rem;
    color: var(--oft-muted);
    text-align: right;
    margin-top: 0.25rem;
    font-variant-numeric: tabular-nums;
}
.field-counter.is-ok { color: #198754; }
.field-counter.is-warn { color: #b15c00; }
.field-counter.is-bad { color: #b02a37; }

/* ── Modern wizard progress (oft-wizard-v2) ─────────────── */
.oft-wizard-v2 {
    margin-bottom: 1.75rem;
}
.oft-wizard-v2 .ow-track {
    height: 4px;
    background: #e9ecef;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.9rem;
}
.oft-wizard-v2 .ow-fill {
    height: 100%;
    width: var(--ow-pct, 0%);
    background: linear-gradient(90deg, var(--oft-brand), var(--oft-brand-dark));
    border-radius: 999px;
    transition: width .25s ease;
}
.oft-wizard-v2 .ow-steps {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
}
.oft-wizard-v2 .ow-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--oft-muted);
    transition: color .2s ease;
}
.oft-wizard-v2 .ow-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #dee2e6;
    color: var(--oft-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.oft-wizard-v2 .ow-step.active {
    color: var(--oft-ink);
    font-weight: 600;
}
.oft-wizard-v2 .ow-step.active .ow-circle {
    background: var(--oft-brand);
    border-color: var(--oft-brand);
    color: #000;
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(247, 181, 0, 0.35);
}
.oft-wizard-v2 .ow-step.completed {
    color: #157347;
}
.oft-wizard-v2 .ow-step.completed .ow-circle {
    background: #198754;
    border-color: #198754;
    color: #fff;
}
.oft-wizard-v2 .ow-step.completed .ow-circle::before {
    content: '\2713';
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}
.oft-wizard-v2 .ow-step.completed .ow-num {
    display: none;
}
.oft-wizard-v2 .ow-current-mobile {
    display: none;
    font-size: 0.85rem;
    color: var(--oft-muted);
    margin-top: 0.5rem;
    text-align: center;
}
.oft-wizard-v2 .ow-current-mobile strong {
    color: var(--oft-ink);
}

/* ── Sticky bottom action bar ───────────────────────────── */
.oft-action-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
    margin-top: 2.5rem;
    padding: 0.85rem 0;
}
.oft-action-bar .oab-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.oft-action-bar .oab-progress {
    font-size: 0.85rem;
    color: var(--oft-muted);
    flex-shrink: 0;
}
.oft-action-bar .oab-progress strong {
    color: var(--oft-ink);
}
.oft-action-bar .ms-auto { margin-left: auto; }
.oft-action-bar .btn { font-weight: 600; }
.oft-action-bar .btn-success {
    background: #198754;
    border-color: #198754;
    color: #fff;
}
.oft-action-bar .btn-success:hover {
    background: #157347;
    border-color: #146c43;
}

/* ── Section heading inline-with-badge ──────────────────── */
.form-section-h-inline {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--oft-muted);
    margin: 0;
}

/* ── Spec progress badge ────────────────────────────────── */
#specProgress {
    font-size: 0.78rem;
    padding: 0.35em 0.7em;
    font-weight: 600;
    background: #f1f3f5;
    color: var(--oft-ink);
}
#specProgress.is-complete {
    background: #d4edda;
    color: #155724;
}

/* ── just-saved alert brand accent ──────────────────────── */
.alert-just-saved {
    border-left: 4px solid var(--oft-brand);
}

/* ── Sequential wizard step blocks ──────────────────────── */
.wizard-step { display: none; }
.wizard-step.active {
    display: block;
    animation: stepFade 0.22s ease;
}
@keyframes stepFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Sticky bar button gating — sadece son adımda Submit, son-değil adımlarda İleri */
form[data-step="6"] #btnFinalSubmit { display: inline-flex !important; }
form:not([data-step="6"]) #btnFinalSubmit { display: none !important; }
form[data-step="6"] #oabNext { display: none !important; }
form[data-step="1"] #oabBack { display: none !important; }

/* Validation feedback — inline invalid message */
.wizard-step .invalid-feedback.d-block { display: block !important; }

/* ── Tab explainer (helper paragraph per tab) ───────────── */
.tab-explainer {
    background: #f1f5f9;
    border-left: 3px solid var(--oft-brand);
    padding: 0.65rem 0.95rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--oft-ink);
    margin: 0 0 1.25rem;
    line-height: 1.5;
}
.tab-explainer .bi { color: var(--oft-brand-dark); }

/* ── Wizard step clickable affordance ───────────────────── */
.oft-wizard-v2 .ow-step { cursor: pointer; }
.oft-wizard-v2 .ow-step:hover:not(.active) .ow-circle {
    border-color: var(--oft-brand);
    transform: scale(1.04);
}

/* ── Submit button "ready" pulse (sticky bar) ───────────── */
form[data-step="6"] .oft-action-bar #btnFinalSubmit {
    animation: oabPulse 1.6s ease-in-out 2;
}
@keyframes oabPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.45); }
    50%      { box-shadow: 0 0 0 10px rgba(25, 135, 84, 0); }
}

/* ── Review summary panel (shown when data-step=6) ──────── */
.oft-review-summary {
    display: none;
    margin-top: 1.75rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #fffdf5, #fff4d6);
    border: 1.5px solid var(--oft-brand);
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(247, 181, 0, 0.18);
}
form[data-step="6"] .oft-review-summary {
    display: block;
    animation: orsPop 0.32s ease;
}
.oft-review-summary .ors-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.oft-review-summary .ors-icon {
    flex: 0 0 auto;
    font-size: 2.25rem;
    line-height: 1;
    color: #198754;
}
.oft-review-summary .ors-text {
    flex: 1 1 auto;
    min-width: 0;
}
.oft-review-summary .ors-text h6 {
    font-weight: 700;
    color: var(--oft-ink);
}
.oft-review-summary .ors-cta {
    flex: 0 0 auto;
    background: #198754;
    border-color: #198754;
    color: #fff;
}
.oft-review-summary .ors-cta:hover {
    background: #157347;
    border-color: #146c43;
}
@keyframes orsPop {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Category picker selected-state highlight ───────────── */
.category-picker .cp-breadcrumb:not(:empty) {
    background: #fffdf5;
    border: 1px solid var(--oft-brand);
    border-radius: 6px;
    padding: 0.45rem 0.7rem;
    font-weight: 600;
    color: var(--oft-ink);
    margin-bottom: 0.5rem;
}

/* ── Required-marker tooltip cursor hint ────────────────── */
.req { cursor: help; }

/* ── Responsive tweaks ──────────────────────────────────── */
@media (max-width: 767px) {
    .kpi-card .kpi-value { font-size: 1.75rem; }
    .auth-card { margin: 1rem auto; }
    .auth-card .card-body { padding: 1.5rem; }

    .oft-wizard-v2 .ow-label { display: none; }
    .oft-wizard-v2 .ow-current-mobile { display: block; }
    .oft-wizard-v2 .ow-circle { width: 28px; height: 28px; font-size: 0.8rem; }

    .dropzone--lg { padding: 1.75rem 1rem; }
    .dropzone--lg .dz-icon { font-size: 2rem; }
}
@media (max-width: 575.98px) {
    .oft-action-bar .oab-progress { display: none; }
    .oft-action-bar .btn { padding: 0.5rem 0.7rem; font-size: 0.85rem; }
    .oft-action-bar .btn .bi { display: none; }
    .oft-action-bar a.btn-link { display: none; }

    .oft-review-summary { padding: 1rem; }
    .oft-review-summary .ors-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        text-align: center;
    }
    .oft-review-summary .ors-icon { font-size: 1.75rem; }
    .oft-review-summary .ors-cta { width: 100%; }

    .tab-explainer { padding: 0.5rem 0.75rem; font-size: 0.82rem; }
}
