/* Custom Styling for Yugank Freelance Payment Receipt App */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff;
    --secondary-color: #475569;
    --dark-bg: #0f172a;
    --body-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03);
.fs-7 { font-size: 0.85rem !important; }
.fs-8 { font-size: 0.7rem !important; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* Navbar */
.navbar-custom {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 1.25rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    color: var(--primary-color);
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary-color);
    padding: 0.4rem 0.75rem !important;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background-color: var(--primary-soft);
}

/* Stats Cards */
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.icon-blue { background-color: #dbeafe; color: #1d4ed8; }
.icon-green { background-color: #d1fae5; color: #047857; }
.icon-orange { background-color: #fef3c7; color: #b45309; }
.icon-purple { background-color: #f3e8ff; color: #6b21a8; }

/* Custom Buttons */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.55rem 1.25rem;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Custom Table */
.custom-table-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.custom-table {
    margin-bottom: 0;
}

.custom-table thead {
    background-color: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
}

.custom-table th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 1rem 1.25rem;
    border: none;
}

.custom-table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.badge-status {
    padding: 0.4em 0.8em;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 50rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-paid { background-color: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-pending { background-color: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-partial { background-color: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.badge-cancelled { background-color: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Receipt Web Paper / Invoice Container */
.receipt-paper-wrapper {
    max-width: 850px;
    margin: 2rem auto;
}

.receipt-paper {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    position: relative;
}

.non-gst-banner {
    background-color: #fff7ed;
    border: 1px solid #ffedd5;
    border-left: 4px solid #f97316;
    border-radius: var(--radius-md);
    padding: 0.9rem 1.2rem;
    font-size: 0.85rem;
    color: #9a3412;
}

.bank-info-box {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
}

@media print {
    body { background-color: #ffffff !important; }
    .no-print { display: none !important; }
    .receipt-paper-wrapper { margin: 0; max-width: 100%; }
    .receipt-paper { border: none; shadow: none; padding: 0; }
}