/* ============================================================
   NetInvoices - Shared Styles
   ============================================================ */

/* --- Auth Pages (Login, Verify) --- */
.portal-auth-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

.portal-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.portal-brand {
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

/* --- OTP Input --- */
.otp-input {
    text-align: center;
    font-size: 1.75rem;
    letter-spacing: 0.75rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.otp-input:focus {
    border-color: #1a1a2e;
    box-shadow: 0 0 0 0.2rem rgba(26, 26, 46, 0.15);
}

.otp-input::placeholder {
    color: #d0d0d0;
    letter-spacing: 0.75rem;
}

/* --- Portal Dashboard --- */
.portal-dashboard {
    background: #f5f6fa;
    min-height: 100vh;
}

.portal-navbar {
    background: #1a1a2e;
}

/* --- Summary Cards --- */
.summary-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.summary-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.summary-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* --- Invoice Table --- */
.table thead th {
    background: #f8f9fc;
    border-bottom: 2px solid #e2e5ec;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    white-space: nowrap;
    padding: 0.75rem;
}

.table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    font-size: 0.9rem;
}

.table-hover tbody tr:hover {
    background-color: #f0f2f8;
}

/* --- Status Badges --- */
.badge-paid {
    background-color: #d4edda;
    color: #155724;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 4px;
}

.badge-unpaid {
    background-color: #f8d7da;
    color: #842029;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 4px;
}

/* --- Buttons --- */
.btn-primary {
    background-color: #1a1a2e;
    border-color: #1a1a2e;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #16213e;
    border-color: #16213e;
}

.btn-outline-primary {
    color: #1a1a2e;
    border-color: #1a1a2e;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.active {
    background-color: #1a1a2e;
    border-color: #1a1a2e;
    color: #fff;
}

/* --- Cards General --- */
.card {
    border: none;
    border-radius: 10px;
}

.shadow {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
}

.shadow-sm {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06) !important;
}

/* --- Alert Styling --- */
.alert {
    border-radius: 8px;
    font-size: 0.9rem;
    border: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .summary-number {
        font-size: 1.15rem;
    }

    .summary-label {
        font-size: 0.7rem;
    }

    .table {
        font-size: 0.82rem;
    }

    .otp-input {
        font-size: 1.4rem;
        letter-spacing: 0.5rem;
    }
}

/* --- Print --- */
@media print {
    .portal-navbar,
    .btn,
    .btn-group {
        display: none !important;
    }

    .portal-dashboard {
        background: #fff;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }

    .summary-card {
        box-shadow: none !important;
        border: 1px solid #eee;
    }

    .table thead th {
        background: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .badge-paid,
    .badge-unpaid {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
