:root {
    --color-pathogenic: #c0152f;
    --color-likely: #e67e22;
    --color-border: #ecf0f1;
    --color-text: #2c3e50;
    --color-bg: #ecf0f1;
    --color-surface: #ffffff;
    --color-primary: #3498db;
    --color-success: #27ae60;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--color-surface);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Header */
.app-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--color-primary);
}

.app-header h1 {
    font-size: 36px;
    color: var(--color-text);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 16px;
    color: #7f8c8d;
}

/* Privacy Notice */
.privacy-notice {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.privacy-notice h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.privacy-notice p {
    margin: 0;
    font-size: 14px;
}

/* Sections */
.section {
    margin-bottom: 40px;
}

.section h2 {
    color: var(--color-text);
    margin-bottom: 20px;
    font-size: 22px;
}

/* Upload Area */
.upload-area {
    border: 3px dashed var(--color-border);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.upload-area.drag-over {
    border-color: var(--color-success);
    background: #d4edda;
}

.upload-label {
    cursor: pointer;
    display: block;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 14px;
    color: #7f8c8d;
}

.file-info {
    margin-top: 20px;
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    color: #155724;
}

/* Progress */
.progress-container {
    margin: 30px 0;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: var(--color-border);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, #2980b9 100%);
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.progress-text {
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    color: var(--color-text);
    font-weight: 500;
}

.status-text {
    text-align: center;
    margin-top: 10px;
    color: #7f8c8d;
    font-size: 14px;
}

/* Summary Cards */
.summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0 40px 0;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
}

.summary-card.pathogenic {
    background: linear-gradient(135deg, #c0152f 0%, #8b0000 100%);
}

.summary-card.likely {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.summary-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.summary-label {
    font-size: 14px;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Finding Cards */
.finding-card {
    background: white;
    border: 1px solid var(--color-border);
    border-left: 5px solid var(--color-primary);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.finding-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.finding-card.pathogenic {
    border-left-color: var(--color-pathogenic);
    background: rgba(192, 21, 47, 0.02);
}

.finding-card.likely {
    border-left-color: var(--color-likely);
    background: rgba(230, 126, 34, 0.02);
}

.finding-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
    gap: 15px;
}

.finding-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-pathogenic {
    background: var(--color-pathogenic);
    color: white;
}

.badge-likely {
    background: var(--color-likely);
    color: white;
}

.finding-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.detail-item {
    font-size: 13px;
}

.detail-label {
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--color-text);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 500;
}

.disease-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--color-primary);
}

.disease-name {
    font-weight: 700;
    color: var(--color-pathogenic);
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.disease-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
}

.external-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.external-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Disclaimer */
.disclaimer {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 25px;
    border-radius: 8px;
    margin: 40px 0;
}

.disclaimer h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 18px;
}

.disclaimer p {
    color: #856404;
    margin: 12px 0;
    font-size: 14px;
}

.disclaimer ul {
    margin-left: 20px;
    color: #856404;
}

.disclaimer li {
    margin: 8px 0;
    font-size: 14px;
}

/* Timestamp & Actions */
.timestamp {
    text-align: center;
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--color-border);
    line-height: 1.8;
}

/* Buttons */
.print-button,
.download-button,
.retry-button {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

.print-button:hover,
.download-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.retry-button {
    background: var(--color-pathogenic);
}

.retry-button:hover {
    background: #8b0000;
}

/* No Findings */
.no-findings {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 12px;
    margin: 30px 0;
}

.no-findings h2 {
    color: #155724;
    margin-bottom: 20px;
    font-size: 28px;
}

.no-findings p {
    color: #155724;
    font-size: 16px;
    margin: 15px 0;
    line-height: 1.6;
}

.no-findings .note {
    font-size: 14px;
    color: #2d6a3d;
    font-style: italic;
    margin-top: 20px;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px;
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    border-radius: 8px;
    margin: 20px 0;
}

.error-message p {
    color: #721c24;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Footer */
.app-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--color-border);
    color: #7f8c8d;
    font-size: 13px;
}

.app-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.app-footer a:hover {
    text-decoration: underline;
}

.version {
    margin-top: 10px;
    font-size: 11px;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-container {
        padding: 20px;
    }
    
    .app-header h1 {
        font-size: 28px;
    }
    
    .summary {
        grid-template-columns: 1fr;
    }
    
    .finding-header {
        flex-direction: column;
        align-items: start;
    }
    
    .finding-details {
        grid-template-columns: 1fr;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .app-container {
        box-shadow: none;
        padding: 20px;
    }
    
    .privacy-notice,
    .print-button,
    .download-button,
    .app-footer {
        display: none;
    }
    
    .finding-card {
        page-break-inside: avoid;
    }
}
