* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #10b981;
    --success-light: #d1fae5;
    --error: #ef4444;
    --error-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
}

.logo svg {
    color: var(--primary);
}

.header-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--gray-100);
}

.nav-link.active {
    color: var(--primary);
    background: var(--gray-100);
    font-weight: 600;
}

.upload-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab-btn {
    padding: 0.625rem 1.25rem;
    background: var(--gray-100);
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: var(--gray-200);
}

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

.batch-preview {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.batch-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.batch-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

.batch-thumb {
    text-align: center;
}

.batch-thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

.batch-thumb span {
    font-size: 0.625rem;
    color: var(--gray-500);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.disclaimer-banner {
    background: var(--warning-light);
    border-bottom: 1px solid #fcd34d;
    padding: 0.75rem 0;
}

.disclaimer-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-800);
}

.disclaimer-content svg {
    color: var(--warning);
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    padding: 3rem 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.section-description {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.upload-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.upload-icon {
    color: var(--gray-400);
}

.upload-zone:hover .upload-icon,
.upload-zone.dragover .upload-icon {
    color: var(--primary);
}

.upload-text {
    font-size: 1rem;
    color: var(--gray-600);
}

.upload-badge {
    font-size: 0.75rem;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.upload-zone input[type="file"] {
    display: none;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.file-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.file-preview span {
    flex: 1;
    font-size: 0.875rem;
    color: var(--gray-700);
    font-family: 'JetBrains Mono', monospace;
}

.btn-clear {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
}

.btn-clear:hover {
    background: var(--gray-200);
    color: var(--gray-600);
}

.btn-analyze {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
}

.btn-analyze:hover:not(:disabled) {
    background: var(--primary-dark);
}

.btn-analyze:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

.info-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

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

.info-card {
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.info-icon {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.info-card h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-error {
    background: var(--error-light);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.result-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.result-header {
    margin-bottom: 2rem;
}

.filename {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.filename .mono {
    font-family: 'JetBrains Mono', monospace;
    background: var(--gray-100);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.result-image-section h3,
.reasons-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.image-container {
    background: var(--gray-100);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.image-container img {
    width: 100%;
    display: block;
}

.legend {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 16px;
    height: 3px;
    border-radius: 2px;
}

.legend-face {
    background: #00ff00;
}

.legend-mrz {
    background: #0000ff;
}

.verdict-card {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.verdict-yes {
    background: var(--success-light);
    border: 1px solid #a7f3d0;
}

.verdict-no {
    background: var(--error-light);
    border: 1px solid #fecaca;
}

.verdict-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.verdict-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.verdict-yes .verdict-value {
    color: #065f46;
}

.verdict-no .verdict-value {
    color: #991b1b;
}

.confidence-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.confidence-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.confidence-value {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: var(--gray-800);
    margin: 0.25rem 0;
}

.confidence-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.low-confidence-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--warning-light);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-800);
}

.low-confidence-message svg {
    color: var(--warning);
    flex-shrink: 0;
}

.reasons-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reason-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    background: var(--gray-50);
}

.reason-positive {
    background: rgba(16, 185, 129, 0.1);
}

.reason-positive .reason-icon {
    color: var(--success);
}

.reason-negative {
    background: rgba(239, 68, 68, 0.1);
}

.reason-negative .reason-icon {
    color: var(--error);
}

.reason-error {
    background: var(--error-light);
}

.reason-error .reason-icon {
    color: var(--error);
}

.reason-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.reason-signal {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.reason-detail {
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.actions {
    margin-top: 2rem;
    text-align: center;
}

.btn-upload-another {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-upload-another:hover {
    background: var(--primary-dark);
}

.error-card {
    text-align: center;
    padding: 2rem;
}

.error-card h3 {
    color: var(--error);
    margin-bottom: 1rem;
}

.error-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer p {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.result-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-header .section-title {
    flex: 1;
}

.btn-analyze-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-analyze-top:hover {
    background: var(--primary-dark);
}

.page-type-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 0.75rem;
}

.page-type-biographical_page {
    background: var(--success-light);
    color: #166534;
}

.page-type-back_page {
    background: var(--warning-light);
    color: #92400e;
}

.page-type-unknown {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* MRZ Tab Styles */
.mrz-container {
    padding: 1.5rem;
}

.mrz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mrz-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
}

.mrz-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.mrz-status.valid {
    background: var(--success-light);
    color: #166534;
}

.mrz-status.invalid {
    background: var(--error-light);
    color: #991b1b;
}

.mrz-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.mrz-fields, .mrz-checksums {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.25rem;
}

.mrz-fields h4, .mrz-checksums h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dotted var(--gray-200);
}

.field-label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.field-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-800);
}

.checksum-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checksum-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 4px;
}

.checksum-item.valid {
    background: rgba(16, 185, 129, 0.1);
}

.checksum-item.invalid {
    background: rgba(239, 68, 68, 0.1);
}

.checksum-name {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.checksum-status svg {
    width: 16px;
    height: 16px;
}

.checksum-item.valid .checksum-status svg {
    color: var(--success);
}

.checksum-item.invalid .checksum-status svg {
    color: var(--error);
}

.mrz-alerts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.alert-error {
    background: var(--error-light);
    color: #991b1b;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
}

.cross-validation {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.25rem;
}

.cross-validation h4 {
    margin-bottom: 1rem;
}

.validation-score {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.validation-score.valid {
    background: var(--success-light);
    color: #166534;
}

.validation-score.warning {
    background: var(--warning-light);
    color: #92400e;
}

.match-item, .discrepancy-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.85rem;
}

.match-item svg {
    color: var(--success);
}

.discrepancy-item svg {
    color: var(--warning);
}

/* Quality Tab Styles */
.quality-container {
    padding: 1.5rem;
}

.quality-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.quality-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.quality-score-badge {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
}

.quality-score-badge.good {
    background: var(--success-light);
    color: #166534;
}

.quality-score-badge.acceptable {
    background: var(--warning-light);
    color: #92400e;
}

.quality-score-badge.poor {
    background: var(--error-light);
    color: #991b1b;
}

.quality-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.quality-status.acceptable {
    background: var(--success-light);
    color: #166534;
}

.quality-status.poor {
    background: var(--warning-light);
    color: #92400e;
}

.quality-checks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quality-check-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1rem;
}

.check-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.check-name {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.check-score {
    font-size: 0.85rem;
    font-weight: 600;
}

.check-score.good {
    color: var(--success);
}

.check-score.medium {
    color: var(--warning);
}

.check-score.poor {
    color: var(--error);
}

.check-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.check-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.check-bar-fill.good {
    background: var(--success);
}

.check-bar-fill.medium {
    background: var(--warning);
}

.check-bar-fill.poor {
    background: var(--error);
}

.check-status {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.quality-issues, .quality-recommendations {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.quality-issues h4, .quality-recommendations h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.quality-issues ul, .quality-recommendations ul {
    list-style: none;
}

.quality-issues li, .quality-recommendations li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.quality-issues li svg {
    color: var(--error);
    flex-shrink: 0;
}

.quality-recommendations li svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Identity Verification Styles */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

.results-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.file-info {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.file-info span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.file-info svg {
    width: 14px;
    height: 14px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.result-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-header h3 svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

.card-content {
    padding: 1.25rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dotted var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.info-row .value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.info-row .value.success {
    color: var(--success-color);
}

.info-row .value.error {
    color: var(--danger-color);
}

.score-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.score-badge.low-risk {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success-color);
}

.score-badge.medium-risk {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
}

.score-badge.high-risk {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-color);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn svg {
    width: 18px;
    height: 18px;
}

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

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* Upload Section for Identity */
.upload-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.upload-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 2rem;
}

.card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-header h2 {
    margin: 0.5rem 0;
    font-size: 1.5rem;
}

.subtitle {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.drop-zone {
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.drop-zone.has-file {
    border-style: solid;
    border-color: var(--success);
}

.drop-zone input[type="file"] {
    display: none;
}

.drop-zone-content {
    pointer-events: none;
}

.drop-icon {
    width: 48px;
    height: 48px;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.drop-text {
    font-size: 1rem;
    color: var(--gray-700);
    margin: 0;
}

.drop-subtext {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0.25rem 0;
}

.file-info {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.file-preview {
    display: none;
}

.drop-zone.has-file .drop-zone-content {
    display: none;
}

.drop-zone.has-file .file-preview {
    display: block;
}

.file-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.file-preview .file-name {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 1.5rem;
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-dark);
}

.submit-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

.submit-btn svg {
    width: 20px;
    height: 20px;
}

.disclaimer-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #92400e;
}

.disclaimer-banner svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ==================== 3D ANIMATIONS & EFFECTS ==================== */

/* 3D Card Transforms */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-3d:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Upload Zone 3D Effect */
.upload-zone {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(37, 99, 235, 0.1),
        transparent
    );
    animation: scan-line 3s ease-in-out infinite;
}

@keyframes scan-line {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.upload-zone:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.2);
}

/* Info Card 3D Hover */
.info-card {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-6px) rotateX(2deg);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.12);
}

.info-card .info-icon {
    transition: transform 0.3s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotateY(15deg);
}

/* Animated Verdict Badge */
.tampering-verdict {
    position: relative;
    overflow: hidden;
}

.tampering-verdict.verdict-animate::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.verdict-pulse-ring {
    position: absolute;
    top: 50%;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transform: translate(0, -50%);
    animation: pulse-ring 2s ease-out infinite;
}

.verdict-safe .verdict-pulse-ring {
    border: 2px solid #16a34a;
}

.verdict-danger .verdict-pulse-ring {
    border: 2px solid #ef4444;
}

@keyframes pulse-ring {
    0% {
        transform: translate(0, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(0, -50%) scale(1.8);
        opacity: 0;
    }
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Result Section Animations */
.result-section {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Summary Card Entrance */
.summary-card {
    animation: slideInScale 0.4s ease-out backwards;
}

.summary-card:nth-child(1) { animation-delay: 0.1s; }
.summary-card:nth-child(2) { animation-delay: 0.2s; }
.summary-card:nth-child(3) { animation-delay: 0.3s; }
.summary-card:nth-child(4) { animation-delay: 0.4s; }

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

/* Analysis Section Expand Animation */
.analysis-section {
    transition: all 0.3s ease;
}

.analysis-section[open] .section-content {
    animation: expandContent 0.3s ease-out;
}

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

/* Signal Item Stagger Animation */
.signal-item {
    animation: slideInLeft 0.3s ease-out backwards;
}

.signal-item:nth-child(1) { animation-delay: 0.05s; }
.signal-item:nth-child(2) { animation-delay: 0.1s; }
.signal-item:nth-child(3) { animation-delay: 0.15s; }
.signal-item:nth-child(4) { animation-delay: 0.2s; }
.signal-item:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Button Hover Effects */
.btn-analyze {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-analyze::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-analyze:hover:not(:disabled)::before {
    width: 400px;
    height: 400px;
}

.btn-analyze:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

/* Nav Link Underline Animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Report Button Special Style */
.nav-report {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
}

.nav-report:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.1));
}

/* About Button Special Style */
.nav-about {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 6px;
}

.nav-about:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.1));
}

/* Hero Report Button */
.hero-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.hero-report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.hero-report-btn svg {
    width: 20px;
    height: 20px;
}

/* Forensic Panel Hover */
.forensic-panel {
    transition: all 0.3s ease;
}

.forensic-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Loading Spinner Enhancement */
@keyframes spin-pulse {
    0% { 
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% { 
        transform: rotate(360deg) scale(1);
    }
}

.spinner {
    animation: spin-pulse 1s ease-in-out infinite;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .upload-zone::before,
    .tampering-verdict.verdict-animate::after,
    .verdict-pulse-ring {
        display: none;
    }
}
