/* ═══════════════════════════════════════════
   ZenMob Design — Ofertare
   Minimalist White + Glass + Shadow Design
═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --primary: #0f172a;
    --primary-hover: #1e293b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #10b981;
    --warning: #f59e0b;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 4px 16px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
    --glass: rgba(255,255,255,0.85);
    --glass-border: rgba(255,255,255,0.6);
    --transition: 0.18s ease;
}

html { font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

/* ── Navbar ──────────────────────────────── */
.glass-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.navbar-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.logo-icon-sm {
    width: 30px; height: 30px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
}

.nav-links { display: flex; gap: 0.25rem; margin-left: 0.5rem; }

.nav-link {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover { background: var(--border-light); color: var(--text); }
.nav-link.active { background: var(--primary); color: #fff; }

.nav-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.nav-user-name { font-weight: 500; color: var(--text); }

/* ── Layout ──────────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.container-wide {
    max-width: 1440px;
}

/* ── Glass Card ──────────────────────────── */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* ── Page Header ─────────────────────────── */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 3px;
}

/* ── Buttons ─────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 1px 3px rgba(15,23,42,.3);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,23,42,.3); }

.btn-accent {
    background: var(--accent);
    color: #fff;
}
.btn-accent:hover { background: var(--accent-hover); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--border-light); color: var(--text); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg); }

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover { background: var(--danger-hover); }

.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ── Forms ───────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input {
    padding: 0.6rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--surface);
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.form-input::placeholder { color: var(--text-light); }

.form-textarea {
    resize: vertical;
    min-height: 90px;
}

select.form-input { cursor: pointer; }

/* ── Tables ──────────────────────────────── */
.table-wrapper { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--border-light);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.data-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.data-table th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    vertical-align: middle;
}

.data-table tbody tr:hover { background: #f8fafc; }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ── Badges ──────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.badge-ofertare          { background: #e0f2fe; color: #0369a1; }
.badge-ofertat           { background: #dbeafe; color: #1d4ed8; }
.badge-in_asteptare      { background: #f3e8ff; color: #7c3aed; }
.badge-acceptat          { background: #d1fae5; color: #065f46; }
.badge-refuzat           { background: #fee2e2; color: #991b1b; }
.badge-in_productie      { background: #fce7f3; color: #9d174d; }
.badge-programare_montaj { background: #fef3c7; color: #92400e; }
.badge-in_lucru          { background: #fef3c7; color: #92400e; }
.badge-finalizat         { background: #dcfce7; color: #14532d; font-weight:700; }
.badge-admin             { background: #fee2e2; color: #991b1b; font-size: 0.68rem; }
.badge-user              { background: #f1f5f9; color: #475569; font-size: 0.68rem; }

/* ── Delivery stats box ──────────────────── */
.delivery-stats-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.delivery-stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}
.delivery-stats-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.delivery-stats-body { overflow-x: auto; }
.delivery-row {
    display: grid;
    grid-template-columns: 40px 110px 1fr 110px 1fr;
    gap: 0.75rem;
    padding: 0.65rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
    font-size: 0.875rem;
    transition: background var(--transition);
}
.delivery-row:last-child { border-bottom: none; }
.delivery-row:hover { background: #f8fafc; }
.delivery-row-head {
    background: #f8fafc;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
}
.delivery-date-urgent { color: #dc2626; font-weight: 700; }
.delivery-date-soon   { color: #d97706; font-weight: 600; }
.delivery-date-ok     { color: #059669; font-weight: 500; }
.delivery-empty { padding: 2rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* ── Modals ──────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.45);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.75rem;
    animation: slideUp 0.2s ease;
}

.modal-xl { max-width: 900px; display: flex; flex-direction: column; }
.modal-sm { max-width: 420px; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.modal-close {
    background: none; border: none; cursor: pointer;
    font-size: 1.4rem; color: var(--text-muted); padding: 0;
    line-height: 1;
    transition: var(--transition);
    flex-shrink: 0;
}
.modal-close:hover { color: var(--text); }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ── Login Page ──────────────────────────── */
.login-body { background: linear-gradient(135deg, #f0f4ff 0%, #e8f4f8 50%, #f0f0ff 100%); }

.login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.logo-icon {
    width: 46px; height: 46px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: 800;
    box-shadow: 0 4px 12px rgba(15,23,42,.25);
}

.logo-brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    display: block;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

/* ── Alerts ──────────────────────────────── */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

/* ── Spinner ─────────────────────────────── */
.spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner-large {
    display: inline-block;
    width: 32px; height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-bottom: 0.75rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 3rem 2rem; text-align: center; color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── Filters ─────────────────────────────── */
.filters-bar {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    align-items: center;
    border-radius: var(--radius);
}

.search-input { flex: 1; }

/* ── Tabs ────────────────────────────────── */
.tabs-nav {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: none; border: none; cursor: pointer;
    font-family: inherit;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab-btn:hover { color: var(--text); background: var(--border-light); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem;
}
.section-title { font-size: 1rem; font-weight: 600; }

/* ── Offer Header Card ────────────────────── */
.offer-header-card { padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; }

.offer-info-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.offer-client-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.offer-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.offer-header-actions {
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}

.status-select {
    width: auto;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}

/* ── Breadcrumb ──────────────────────────── */
.breadcrumb { margin-bottom: 0.5rem; }
.breadcrumb-link {
    color: var(--text-muted); font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.3rem;
}
.breadcrumb-link:hover { color: var(--text); }

/* ── Furniture Item Card ─────────────────── */
.furniture-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.furniture-card:hover { box-shadow: var(--shadow); }

.furniture-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--border-light);
    border-bottom: 1px solid var(--border);
}

.furniture-card-title {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    display: flex; align-items: center; gap: 0.5rem;
}

.furniture-icon {
    width: 32px; height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
    flex-shrink: 0;
}

.furniture-card-actions {
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}

.furniture-qty-group {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; color: var(--text-muted);
}

.qty-input {
    width: 65px;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text);
}
.qty-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(59,130,246,.1); }

.furniture-total-badge {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 100px;
    text-align: right;
}

.furniture-card-body { padding: 0; }

/* ── Finalized view ──────────────────────── */
.finalized-lines { padding: 0.5rem 0; }

.finalized-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 1.25rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-light);
}
.finalized-line:last-child { border-bottom: none; }
.finalized-line .line-num { color: var(--text-light); min-width: 28px; }
.finalized-line .line-name { flex: 1; color: var(--text); }
.finalized-line .line-qty  { color: var(--text-muted); min-width: 80px; text-align: right; }
.finalized-line .line-img  { width: 28px; height: 28px; border-radius: 4px; object-fit: cover; background: var(--border-light); flex-shrink: 0; }
.finalized-line .no-img    { width: 28px; height: 28px; background: var(--border-light); border-radius: 4px; flex-shrink: 0; }

.furniture-final-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: var(--border-light);
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
}

.furniture-final-name {
    font-weight: 600; color: var(--text);
}

.furniture-final-calc {
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--text-muted);
}

.furniture-final-total {
    font-weight: 700; font-size: 1rem; color: var(--primary);
}

/* ── Image upload in furniture ───────────── */
.furniture-img-upload {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    border-top: 1px solid var(--border-light);
}

.furniture-img-preview {
    width: 50px; height: 50px;
    border-radius: 6px; object-fit: cover; background: var(--border-light);
    border: 1px solid var(--border);
}

/* ── Add Furniture Area ──────────────────── */
.add-furniture-area {
    display: flex; justify-content: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.btn-add-furniture {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--text-muted);
    transition: var(--transition);
}
.btn-add-furniture:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(59,130,246,.04);
}

/* ── Filters Search Icon ─────────────────── */
.filters-bar { position: relative; }
.search-icon {
    color: var(--text-light);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ── Total Card ──────────────────────────── */
.total-card { padding: 1.5rem 1.75rem; }

.vat-breakdown {
    background: var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.vat-row {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.88rem; color: var(--text-muted);
    padding: 0.2rem 0;
}

.grand-total-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.25rem;
}

.grand-total-label {
    font-size: 0.9rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-muted);
}

.grand-total-value {
    font-size: 1.75rem; font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.generate-actions { display: flex; justify-content: flex-end; gap: 0.75rem; }

/* ── Builder Modal ───────────────────────── */
.builder-total-bar {
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    margin: -1.75rem -1.75rem 1rem;
    font-size: 0.875rem;
}

.builder-total-value { font-size: 1.1rem; font-weight: 700; }

.builder-body { flex: 1; overflow-y: auto; max-height: calc(70vh - 200px); }

.builder-footer { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1rem; }

/* ── Product Builder Table ───────────────── */
.product-builder-table { font-size: 0.85rem; }

.product-builder-table th {
    position: sticky; top: 0; z-index: 1;
}

.product-builder-table .category-row td {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
}

.product-builder-table .subtotal-row td {
    background: var(--border-light);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.product-builder-table .total-row td {
    background: #f0fdf4;
    font-weight: 700;
    color: #065f46;
    font-size: 0.9rem;
}

.qty-field {
    width: 80px;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.875rem;
    text-align: center;
}
.qty-field:focus { outline: none; border-color: var(--accent); }

.product-img-thumb {
    width: 36px; height: 36px;
    border-radius: 4px; object-fit: cover;
    background: var(--border-light);
}

.no-img-placeholder {
    width: 36px; height: 36px;
    background: var(--border-light);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem; color: var(--text-light);
}

/* ── Quick Suggestions ───────────────────── */
.quick-suggestions {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    margin-top: 0.5rem;
}

.suggestion-chip {
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    font-family: inherit;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.suggestion-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Action Buttons (icon) ───────────────── */
.icon-btn {
    background: none; border: none; cursor: pointer;
    padding: 0.35rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: var(--transition);
    display: inline-flex; align-items: center;
}
.icon-btn:hover { background: var(--border-light); color: var(--text); }
.icon-btn.danger:hover { background: #fee2e2; color: var(--danger); }

/* ── Toast ───────────────────────────────── */
.toast {
    position: fixed;
    bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    animation: slideUp 0.2s ease;
    white-space: nowrap;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
    .container { padding: 1rem; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; }
    .modal { padding: 1.25rem; }
    .builder-total-bar { margin: -1.25rem -1.25rem 0.75rem; }
    .navbar-inner { padding: 0 1rem; gap: 0.75rem; }
    .nav-user-name { display: none; }
    .grand-total-value { font-size: 1.3rem; }
}
