/* style.css - CSS System for Receipt Generator */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #0b0f19;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(17, 24, 39, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-focus: rgba(99, 102, 241, 0.5);
    
    --primary: #5f5af6;
    --primary-hover: #4e48e3;
    --primary-light: rgba(95, 90, 246, 0.15);
    
    --secondary: #8b5cf6;
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.15);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #111827;
    
    --sidebar-width: 260px;
    --transition-speed: 0.3s;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 10% 10%, rgba(95, 90, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(139, 92, 246, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* App Layout */
.app-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* Sidebar navigation */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform var(--transition-speed);
}

.sidebar-brand {
    padding: 30px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand svg {
    color: var(--primary);
    width: 32px;
    height: 32px;
}

.sidebar-brand h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #ffffff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-menu {
    list-style: none;
    padding: 10px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-menu-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-speed);
    border: 1px solid transparent;
}

.sidebar-menu-item a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-menu-item.active a {
    color: #ffffff;
    background: var(--primary-light);
    border-color: rgba(95, 90, 246, 0.25);
}

.sidebar-menu-item a svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-speed);
}

.sidebar-menu-item a:hover svg {
    transform: translateX(3px);
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-footer span {
    color: var(--primary);
    font-weight: 600;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
    min-height: 100vh;
    transition: margin-left var(--transition-speed);
}

/* Header bar inside main area */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.content-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.content-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Quick Actions button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 15px rgba(95, 90, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #0d9668;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* View Sections Toggle */
.view-section {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.view-section.active {
    display: block;
}

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

/* Dashboard Metric Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-speed);
}

.metric-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-premium);
}

.metric-info h3 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-info .metric-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon.indigo {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.metric-icon.emerald {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.metric-icon.amber {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.metric-icon.violet {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.metric-icon svg {
    width: 24px;
    height: 24px;
}

/* Dashboard Layout Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Card General Style */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h2 svg {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

/* Table Style */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 14px 16px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 14px 16px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

tr:last-child td {
    border-bottom: none;
}

tr {
    transition: background-color var(--transition-speed);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Table Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-info {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

/* Forms Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control, .form-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 400;
    transition: all var(--transition-speed);
    outline: none;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: rgba(15, 23, 42, 0.8);
}

.form-select option {
    background-color: var(--bg-main);
    color: var(--text-main);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Search bar styling */
.search-bar-container {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
}

.search-input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.search-input-wrapper .form-control {
    padding-left: 44px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform var(--transition-speed);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    background: #1e293b;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transform: translateX(100%);
    animation: slideIn 0.3s ease forwards;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

/* Action column wrapper */
.table-actions {
    display: flex;
    gap: 6px;
}

/* Mobile Toggle Hamburger */
.mobile-header {
    display: none;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    padding: 16px 24px;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 99;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Instruction overlay for WhatsApp sharing */
.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 15px;
}

.step-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step-number {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    border: 1px solid rgba(95, 90, 246, 0.3);
}

.step-text {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.4;
}

.step-text strong {
    color: #ffffff;
}

/* Empty State Card */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.15);
}

.empty-state p {
    font-size: 0.95rem;
}

/* ==========================================================================
   Receipt Template Design - Rendered ONLY in memory or client-side container
   Optimized for a premium white paper PDF output via html2pdf.js
   ========================================================================== */
.receipt-pdf-container {
    width: 680px; /* Fits Letter and A4 page formats with margin without right overflow */
    background: #ffffff;
    color: #1a202c;
    padding: 30px;
    font-family: 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    border-radius: 0;
    position: relative;
    box-shadow: none;
    line-height: 1.5;
}

.receipt-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 24px;
    margin-bottom: 30px;
}

.receipt-title-area h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.receipt-title-area p {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

.receipt-meta-area {
    text-align: right;
}

.receipt-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: #5f5af6; /* Primary color brand accent on PDF */
    margin-bottom: 4px;
}

.receipt-date {
    font-size: 0.9rem;
    color: #718096;
}

.receipt-info-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 35px;
}
.receipt-info-block {
    flex: 1;
}

.receipt-info-block {
    background: #f7fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 16px 20px;
}

.receipt-info-block h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a0aec0;
    margin-bottom: 8px;
}

.receipt-info-block p {
    font-size: 0.95rem;
    color: #2d3748;
    margin-bottom: 4px;
}

.receipt-info-block p strong {
    color: #1a202c;
    font-weight: 600;
}

.receipt-info-block p:last-child {
    margin-bottom: 0;
}

/* Receipt Details Table */
.receipt-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.receipt-table th {
    background: #f7fafc;
    color: #4a5568;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
}

.receipt-table td {
    padding: 16px;
    font-size: 0.95rem;
    color: #2d3748;
    border-bottom: 1px solid #edf2f7;
}

.receipt-table td.amount-col, .receipt-table th.amount-col {
    text-align: right;
    font-weight: 700;
}

.receipt-table td.amount-value {
    font-size: 1.1rem;
    color: #1a202c;
}

/* Total Section */
.receipt-total-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 50px;
}

.receipt-total-box {
    width: 250px;
    background: #edf2f7;
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.receipt-total-box span {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4a5568;
    text-transform: uppercase;
}

.receipt-total-box strong {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a202c;
}

/* Footer signatures */
.receipt-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #cbd5e0;
    padding-top: 35px;
    margin-top: auto;
}

.receipt-stamp {
    border: 3px double #10b981;
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 6px;
    transform: rotate(-10deg);
    display: inline-block;
    letter-spacing: 1px;
}

.receipt-signature-area {
    width: 220px;
    text-align: center;
}

.receipt-signature-line {
    border-bottom: 1px solid #718096;
    height: 40px;
    margin-bottom: 8px;
}

.receipt-signature-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d3748;
}

.receipt-signature-title {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        transform: translateX(-100%);
        height: 100vh;
        width: var(--sidebar-width);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px; /* Optimized mobile padding */
    }
    
    .card {
        padding: 16px; /* Optimized mobile padding */
        margin-bottom: 16px;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    /* Metrics Grid: Two compact columns on tablets and phones */
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .metric-card {
        padding: 16px;
    }
    
    .metric-info .metric-value {
        font-size: 1.4rem;
    }
    
    .metric-icon {
        width: 36px;
        height: 36px;
    }
    
    .metric-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .menu-toggle {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        color: white;
        cursor: pointer;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background var(--transition-speed);
    }
    
    .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Table-to-card reflow on mobile screens */
@media (max-width: 650px) {
    .table-responsive table, 
    .table-responsive thead, 
    .table-responsive tbody, 
    .table-responsive th, 
    .table-responsive td, 
    .table-responsive tr {
        display: block;
    }
    
    .table-responsive thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .table-responsive tr {
        border: 1px solid var(--border-color);
        margin-bottom: 12px;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.01);
        padding: 10px 14px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .table-responsive td {
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        position: relative;
        padding-left: 45%;
        text-align: right;
        font-size: 0.9rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    
    .table-responsive td:last-child {
        border-bottom: none;
        padding-top: 12px;
        padding-bottom: 4px;
    }
    
    .table-responsive td::before {
        position: absolute;
        left: 0;
        width: 40%;
        text-align: left;
        font-weight: 600;
        color: var(--text-muted);
        content: attr(data-label);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .table-actions {
        width: 100%;
        justify-content: flex-end !important;
        gap: 8px;
    }
    
    .table-actions .btn {
        flex-grow: 1;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    /* Search widgets stacking */
    .search-bar-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-bar-container > div {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    /* Single-column metrics on very narrow devices */
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        width: 95%;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    /* Form stacked layout */
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
