/* ============================================
   IRS VERIFICATION - PREMIUM STYLING
   ============================================ */

/* Root Variables */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    
    --bg-primary: #f8fafc;
    --bg-white: #ffffff;
    --bg-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== LOADING OVERLAY ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.loader {
    text-align: center;
    color: white;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader p {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* ========== HEADER ========== */
.header {
    background: var(--gradient-primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    backdrop-filter: blur(10px);
}

.logo-text h1 {
    color: white;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.2;
}

.logo-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    letter-spacing: 1px;
}

.header-badge {
    display: flex;
    gap: 8px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

/* ========== PROGRESS STEPS ========== */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 10px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.step.completed .step-number {
    background: var(--success);
    color: white;
}

.step-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    letter-spacing: 0.3px;
}

.step.active .step-label {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========== INFO BANNER ========== */
.info-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f4ff 100%);
    border: 1px solid #dbeafe;
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.banner-icon {
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.banner-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.banner-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* ========== FORM SECTIONS ========== */
.form-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
    transition: var(--transition);
}

.form-section:hover {
    box-shadow: var(--shadow-md);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.section-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.section-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.section-title p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* ========== FORM ELEMENTS ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group label i {
    color: var(--primary);
    margin-right: 6px;
}

.required {
    color: var(--danger);
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 48px;
}

.toggle-visibility {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.toggle-visibility:hover {
    background: #f3f4f6;
    color: var(--text-primary);
}

/* ========== ALERTS ========== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-warning i {
    color: var(--warning);
    font-size: 20px;
}

/* ========== FILE UPLOAD ========== */
.upload-group {
    margin-bottom: 20px;
}

.upload-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.upload-group label i {
    color: var(--primary);
    margin-right: 6px;
}

.file-upload-wrapper {
    position: relative;
}

.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: var(--radius-sm);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #fafbfc;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: #f8faff;
}

.file-upload-area.drag-over {
    border-color: var(--primary);
    background: #eff6ff;
    transform: scale(1.02);
}

.file-upload-area.has-file {
    border-color: var(--success);
    background: #f0fdf4;
}

.file-upload-area input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    top: 0;
    left: 0;
}

.file-upload-content {
    pointer-events: none;
}

.file-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 12px;
}

.file-text .file-main-text {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.file-text .file-sub-text {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.file-preview {
    display: none;
    margin-top: 12px;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.file-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: var(--radius-sm);
    border: 2px solid #e5e7eb;
    object-fit: cover;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid #e5e7eb;
}

.file-info i {
    color: var(--danger);
    font-size: 24px;
}

/* ========== DOCUMENT GRID ========== */
.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

/* ========== REVIEW SUMMARY ========== */
.review-summary {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}

.review-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item i {
    color: var(--primary);
    width: 20px;
    font-size: 16px;
}

.review-item span {
    font-size: 14px;
}

.review-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========== FORM ACTIONS ========== */
.form-actions {
    text-align: center;
    margin-top: 10px;
}

.submit-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn i {
    font-size: 18px;
}

.form-status {
    margin-top: 16px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-status.success i {
    color: var(--success);
    margin-right: 8px;
}

.form-status.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.form-status.error i {
    color: var(--danger);
    margin-right: 8px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-white);
    border-top: 1px solid #e5e7eb;
    padding: 40px 20px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer-section p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.footer-section i {
    margin-right: 8px;
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-bottom .disclaimer {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ============================================
   ADMIN STYLES
   ============================================ */

/* Admin Nav */
.admin-nav {
    background: var(--bg-white);
    padding: 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.brand-text h1 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.admin-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.admin-info i {
    font-size: 24px;
    color: var(--primary);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    font-family: inherit;
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Admin Content */
.admin-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-white);
    padding: 20px 24px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
    transition: var(--transition);
}

.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: 22px;
    flex-shrink: 0;
}

.stat-card.total .stat-icon {
    background: #dbeafe;
    color: var(--primary);
}
.stat-card.pending .stat-icon {
    background: #fef3c7;
    color: var(--warning);
}
.stat-card.approved .stat-icon {
    background: #d1fae5;
    color: var(--success);
}
.stat-card.rejected .stat-icon {
    background: #fee2e2;
    color: var(--danger);
}
.stat-card.today .stat-icon {
    background: #e0e7ff;
    color: var(--info);
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0 0 4px 0;
}

.stat-info .count {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-trend {
    font-size: 12px;
    font-weight: 500;
}

.trend-up {
    color: var(--success);
}
.trend-down {
    color: var(--danger);
}
.trend-warning {
    color: var(--warning);
}

/* Filters Bar */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--bg-white);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.filters-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    padding: 4px 12px 4px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid #e5e7eb;
}

.filter-group i {
    color: var(--text-secondary);
    font-size: 14px;
}

.filter-group select,
.filter-group input {
    border: none;
    background: transparent;
    padding: 8px 4px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
}

.filter-group input {
    min-width: 180px;
}

.filters-right {
    display: flex;
    gap: 8px;
}

.refresh-btn,
.export-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    font-family: inherit;
}

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

.refresh-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

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

.export-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Submissions Table */
.submissions-table {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid #e5e7
