.airpa-modern-ui {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    max-width: 1000px;
    margin: 40px auto;
}

.airpa-input-section label {
    display: block;
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
}

.airpa-input-section input[type="text"],
.airpa-input-section textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #f1f5f9 !important;
    border-radius: 14px;
    font-size: 15px;
    transition: all 0.2s;
    background: #f8fafc;
}

.airpa-input-section input:focus,
.airpa-input-section textarea:focus {
    border-color: #3b82f6 !important;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

#airpa-drop-zone {
    border: 2px dashed #e2e8f0;
    padding: 60px 40px;
    text-align: center;
    border-radius: 20px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s;
}

#airpa-drop-zone:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

/* Result Cards styling */
.airpa-result-card.modern {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.airpa-card-header {
    background: #f8fafc;
    padding: 24px 32px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.airpa-filename {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.badge-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.airpa-score-badge {
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.score-high { background: #dcfce7; color: #166534; }
.score-medium { background: #fef3c7; color: #92400e; }
.score-low { background: #fee2e2; color: #991b1b; }

.airpa-recommendation-tag {
    font-size: 10px;
    font-weight: 800;
    color: #3b82f6;
    text-transform: uppercase;
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 8px;
}

.airpa-dl-btn {
    background: #0f172a;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
}

.airpa-grid-analysis {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    padding: 32px;
}

.airpa-summary-box h4, 
.airpa-findings-box h4, 
.airpa-methodology-box h4,
.airpa-breakdown-box h4,
.airpa-refs-box h4,
.airpa-quotes-box h4 {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 12px;
}

.airpa-summary-box .summary-text {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
    color: #334155;
    margin-bottom: 20px;
}

.relevance-reason {
    margin-top: 20px;
    padding: 16px;
    background: #eff6ff;
    border-radius: 16px;
    font-size: 14px;
    color: #1e40af;
}

.airpa-surgical-results {
    margin-bottom: 24px;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 16px;
    padding: 20px;
}

.airpa-surgical-results h4 {
    color: #166534 !important;
    margin-bottom: 15px !important;
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-item {
    display: flex;
    gap: 15px;
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #f0fdf4;
}

.match-page {
    background: #dcfce7;
    color: #166534;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 6px;
    height: fit-content;
    white-space: nowrap;
}

.match-term {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 4px;
}

.match-snippet {
    font-size: 12px;
    color: #334155;
    margin: 0;
    font-style: italic;
    line-height: 1.5;
}

.match-snippet mark {
    background: #fef08a;
    color: #854d0e;
    padding: 0 2px;
    border-radius: 2px;
}

.findings-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.findings-list li {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
}

.airpa-breakdown-item {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.airpa-breakdown-item .bar-container {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.airpa-breakdown-item .bar {
    height: 100%;
}

.airpa-breakdown-item .label { font-size: 10px; font-weight: 700; width: 80px; color: #64748b; }
.airpa-breakdown-item .value { font-size: 10px; font-weight: 800; color: #0f172a; }

.airpa-ref-box {
    background: #f8fafc;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 10px;
    border: 1px solid #f1f5f9;
}

.ref-title { display: block; color: #3b82f6; font-weight: 800; font-size: 11px; margin-bottom: 4px; text-transform: uppercase; }
.ref-focus { font-size: 12px; color: #475569; font-weight: 500; }

.quote {
    font-size: 13px;
    font-weight: 600;
    font-style: italic;
    color: #64748b;
    border-left: 3px solid #3b82f6;
    padding-left: 12px;
    margin: 16px 0;
}

#airpa-process-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 20px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 30px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
    transition: transform 0.2s;
}

#airpa-process-btn:hover { transform: translateY(-2px); background: #2563eb; }
#airpa-process-btn:disabled { opacity: 0.5; transform: none; cursor: not-allowed; }

@media (max-width: 800px) {
    .airpa-grid-analysis { grid-template-columns: 1fr; }
    .findings-list { grid-template-columns: 1fr; }
}
