/* SupplierHub — app.css */

:root {
    --brand:       #0F4C81;
    --brand-light: #1A6DBF;
    --brand-dark:  #082E4E;
    --accent:      #F97316;
    --surface:     #F0F4F8;
}

/* Nav links */
.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #93C5FD;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-link.active { background: var(--brand-light); color: #fff; }

/* Cards */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-no_reply   { background: #FEF3C7; color: #92400E; }
.badge-replied    { background: #D1FAE5; color: #065F46; }
.badge-action_needed { background: #FEE2E2; color: #991B1B; }
.badge-sent       { background: #DBEAFE; color: #1E40AF; }
.badge-failed     { background: #FEE2E2; color: #991B1B; }

/* Buttons */
.btn-primary {
    background: var(--brand);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover { background: var(--brand-light); }

.btn-accent {
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    display: inline-block;
}
.btn-accent:hover { opacity: 0.9; }

.btn-ghost {
    background: transparent;
    border: 1px solid #CBD5E1;
    color: #475569;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-ghost:hover { background: #F1F5F9; }

/* Form inputs */
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s;
    font-family: inherit;
}
.form-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,76,129,0.1); }

/* Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748B;
    border-bottom: 2px solid #E2E8F0;
}
.data-table td {
    padding: 12px 14px;
    font-size: 0.875rem;
    border-bottom: 1px solid #F1F5F9;
}
.data-table tr:hover td { background: #F8FAFC; }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    display: none; align-items: center; justify-content: center;
    z-index: 50;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* Page title */
.page-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #0F172A;
}

/* Stat cards */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border-left: 4px solid var(--brand);
}
.stat-card .stat-value {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-dark);
}
.stat-card .stat-label {
    font-size: 0.8rem;
    color: #64748B;
    font-weight: 500;
}

/* Checkbox list */
.supplier-check { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F1F5F9; }
.supplier-check:last-child { border-bottom: none; }
.supplier-check input[type=checkbox] { accent-color: var(--brand); width: 16px; height: 16px; }

/* Alert */
.alert { padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.875rem; margin-bottom: 1rem; }
.alert-success { background: #D1FAE5; color: #065F46; }
.alert-error   { background: #FEE2E2; color: #991B1B; }
