/* ── Bakım Takip Frontend Styles ── */
:root {
    --bt-primary: #2563eb;
    --bt-success: #059669;
    --bt-danger:  #dc2626;
    --bt-warning: #d97706;
    --bt-border:  #e5e7eb;
    --bt-radius:  10px;
    --bt-shadow:  0 2px 16px rgba(0,0,0,.07);
}

/* ── Form ── */
.bt-form { max-width: 720px; }
.bt-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bt-field { display: flex; flex-direction: column; gap: 6px; }
.bt-field.full { grid-column: 1 / -1; }
.bt-field label { font-size: 13px; font-weight: 600; color: #374151; }
.bt-field input,
.bt-field textarea,
.bt-field select {
    padding: 10px 14px;
    border: 1.5px solid var(--bt-border);
    border-radius: var(--bt-radius);
    font-size: 15px;
    transition: border-color .2s;
    width: 100%; box-sizing: border-box;
}
.bt-field input:focus,
.bt-field textarea:focus { outline: none; border-color: var(--bt-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.req { color: #ef4444; }

/* ── Upload area ── */
.bt-upload-area {
    border: 2px dashed var(--bt-border);
    border-radius: var(--bt-radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    position: relative;
}
.bt-upload-area:hover, .bt-upload-area.drag-over { border-color: var(--bt-primary); background: rgba(37,99,235,.03); }
.bt-upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.bt-upload-icon { font-size: 40px; margin-bottom: 8px; }
.bt-upload-area p { margin: 4px 0; color: #6b7280; }
.bt-upload-area small { color: #9ca3af; font-size: 12px; }

/* ── Photo preview ── */
.bt-photo-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.bt-photo-preview .bt-thumb {
    width: 80px; height: 80px;
    border-radius: 8px; object-fit: cover;
    border: 2px solid var(--bt-border);
    position: relative;
}

/* ── Buttons ── */
.bt-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bt-primary); color: #fff;
    padding: 12px 28px; border: none; border-radius: var(--bt-radius);
    font-size: 16px; font-weight: 600; cursor: pointer;
    transition: background .2s, transform .1s;
}
.bt-btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); }
.bt-btn-small {
    display: inline-block; background: var(--bt-primary); color: #fff !important;
    padding: 4px 12px; border-radius: 6px; font-size: 13px; font-weight: 600;
    text-decoration: none; margin-left: 8px;
}
.bt-form-footer { margin-top: 24px; }

/* ── Notices ── */
.bt-notice {
    padding: 14px 18px; border-radius: var(--bt-radius); margin-bottom: 20px;
    font-size: 15px; line-height: 1.6;
}
.bt-notice.success { background: #d1fae5; color: #065f46; border-left: 4px solid #059669; }
.bt-notice.error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626; }
.bt-notice.warning { background: #fef3c7; color: #78350f; border-left: 4px solid #d97706; }
.bt-notice.info    { background: #dbeafe; color: #1e40af; border-left: 4px solid #2563eb; }

/* ── Order cards ── */
.bt-order-list { display: flex; flex-direction: column; gap: 20px; }
.bt-order-card {
    background: #fff; border: 1px solid var(--bt-border);
    border-radius: var(--bt-radius); box-shadow: var(--bt-shadow);
    overflow: hidden;
}
.bt-order-card-header {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 16px 20px; border-bottom: 1px solid var(--bt-border);
    background: #f8fafc;
}
.bt-order-number { font-weight: 700; font-size: 15px; font-family: monospace; }
.bt-order-date { margin-left: auto; font-size: 13px; color: #9ca3af; }
.bt-order-card-body { padding: 20px; }
.bt-product-desc { margin: 0 0 12px; color: #374151; }

/* ── Thumbs ── */
.bt-thumb-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.bt-thumb-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--bt-border); }

/* ── Quote/tracking boxes ── */
.bt-quote-box {
    background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px;
    padding: 10px 14px; margin: 12px 0; font-size: 14px;
}
.bt-tracking-box {
    background: #eff6ff; border: 1px solid #93c5fd; border-radius: 8px;
    padding: 10px 14px; margin: 12px 0; font-size: 14px;
}

/* ── Notes ── */
.bt-notes { margin-top: 14px; }
.bt-notes strong { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #9ca3af; }
.bt-note { padding: 10px; background: #f9fafb; border-radius: 6px; margin-top: 8px; }
.bt-note-author { font-weight: 600; font-size: 13px; margin-right: 8px; }
.bt-note-date { font-size: 12px; color: #9ca3af; }
.bt-note p { margin: 4px 0 0; font-size: 14px; }

/* ── Progress steps ── */
.bt-progress { padding: 20px; background: #f8fafc; border-top: 1px solid var(--bt-border); overflow-x: auto; }
.bt-steps { display: flex; align-items: flex-start; gap: 0; min-width: 600px; }
.bt-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.bt-step::before {
    content: '';
    position: absolute;
    top: 14px; left: calc(-50% + 14px); right: calc(50% + 14px);
    height: 2px; background: #e5e7eb;
}
.bt-step:first-child::before { display: none; }
.bt-step.done::before, .bt-step.active::before { background: var(--bt-primary); }
.bt-step-dot {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; border: 2px solid #e5e7eb;
    background: #fff; color: #9ca3af; z-index: 1;
}
.bt-step.done .bt-step-dot { background: var(--bt-primary); color: #fff; border-color: var(--bt-primary); }
.bt-step.active .bt-step-dot { background: #fff; color: var(--bt-primary); border-color: var(--bt-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.bt-step-label { font-size: 10px; text-align: center; color: #9ca3af; font-weight: 500; }
.bt-step.done .bt-step-label, .bt-step.active .bt-step-label { color: var(--bt-primary); font-weight: 600; }

/* ── Status badges (frontend) ── */
.bt-status-badge {
    display: inline-block; padding: 4px 12px;
    border-radius: 20px; font-size: 13px; font-weight: 600;
}

/* ── Track form ── */
.bt-track-wrap { max-width: 680px; }
.bt-track-form { margin-bottom: 24px; }
.bt-track-form .bt-form-grid { grid-template-columns: 1fr 1fr; }

/* ── Payment ── */
.bt-payment-wrap { max-width: 640px; }
.bt-payment-header { text-align: center; padding: 24px; background: #f8fafc; border-radius: var(--bt-radius); margin-bottom: 24px; }
.bt-payment-header h2 { margin: 0 0 6px; }
.bt-amount { font-size: 36px; font-weight: 700; color: #059669; }
.bt-manual-payment { background: #fffbeb; border: 1px solid #fcd34d; border-radius: var(--bt-radius); padding: 24px; }
.bt-bank-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.bt-bank-table td { padding: 8px 0; border-bottom: 1px solid #fde68a; font-size: 15px; }
.bt-bank-table td:first-child { color: #92400e; width: 40%; }

@media (max-width: 600px) {
    .bt-form-grid { grid-template-columns: 1fr; }
    .bt-track-form .bt-form-grid { grid-template-columns: 1fr; }
}

/* ── Quote response page ── */
.bt-quote-response-wrap { max-width: 560px; margin: 0 auto; }
.bt-quote-card {
    background: #fff; border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.10);
    overflow: hidden;
}
.bt-quote-card-header {
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    padding: 32px; text-align: center; color: #fff;
}
.bt-quote-icon { font-size: 48px; margin-bottom: 8px; }
.bt-quote-card-header h2 { color: #fff; margin: 0 0 8px; font-size: 22px; }
.bt-order-ref { background: rgba(255,255,255,.2); padding: 4px 14px; border-radius: 20px; font-size: 13px; font-family: monospace; }
.bt-quote-card-body { padding: 32px; }
.bt-product-info { background: #f8fafc; border-radius: 8px; padding: 12px 16px; margin: 12px 0; color: #374151; font-size: 14px; }
.bt-quote-amount-box {
    background: linear-gradient(135deg,#ecfdf5,#d1fae5);
    border: 1px solid #6ee7b7; border-radius: 12px;
    padding: 24px; text-align: center; margin: 20px 0;
}
.bt-quote-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #065f46; }
.bt-quote-price { font-size: 44px; font-weight: 800; color: #059669; margin-top: 4px; }
.bt-quote-note-box {
    background: #fffbeb; border-left: 4px solid #f59e0b;
    border-radius: 0 8px 8px 0; padding: 14px 18px;
    margin: 16px 0; font-size: 14px; color: #78350f;
}
.bt-quote-actions { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.bt-btn-accept {
    display: block; text-align: center;
    background: #2563eb; color: #fff !important;
    padding: 16px 32px; border-radius: 10px; font-size: 17px;
    font-weight: 700; text-decoration: none;
    transition: background .2s, transform .1s;
}
.bt-btn-accept:hover { background: #1d4ed8; transform: translateY(-1px); }
.bt-btn-reject {
    display: block; text-align: center;
    background: #fff; color: #ef4444 !important;
    padding: 12px; border-radius: 10px; font-size: 14px;
    border: 2px solid #fecaca; text-decoration: none;
    transition: border-color .2s;
}
.bt-btn-reject:hover { border-color: #ef4444; }
.bt-btn-block { display: block; text-align: center; margin-top: 12px; }
.bt-quote-footer-note { font-size: 12px; color: #9ca3af; text-align: center; margin-top: 8px; }
