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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #fdf6f0;
    color: #3d2c2c;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 32px;
}

.header h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    color: #2c1810;
    letter-spacing: -0.3px;
}

.subtitle {
    color: #8a7068;
    font-size: 14px;
    margin-top: 8px;
    font-weight: 400;
}

/* Input Section */
.input-section {
    background: #fff9f5;
    border: 1px solid #e8d5c4;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(139, 90, 60, 0.06);
}

.input-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.input-group {
    flex: 1;
}

.input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #8a7068;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.input-group input[type="url"],
.input-group input[type="file"] {
    width: 100%;
    padding: 10px 14px;
    background: #fffdfb;
    border: 1px solid #dbc8b8;
    border-radius: 8px;
    color: #3d2c2c;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input[type="url"]:focus {
    border-color: #c4956e;
    box-shadow: 0 0 0 3px rgba(196, 149, 110, 0.15);
}

.input-group input[type="url"]::placeholder {
    color: #bba898;
}

.input-group input[type="file"] {
    padding: 8px 12px;
    cursor: pointer;
}

.input-group input[type="file"]::file-selector-button {
    background: #f0e0d0;
    border: 1px solid #dbc8b8;
    border-radius: 5px;
    color: #5c3d2e;
    padding: 4px 14px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: background 0.2s;
}

.input-group input[type="file"]::file-selector-button:hover {
    background: #e8d0bc;
}

.hidden {
    display: none !important;
}

/* Submit button */
.submit-btn {
    padding: 10px 32px;
    background: #5c3d2e;
    color: #fdf6f0;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
    height: fit-content;
    letter-spacing: 0.3px;
}

.submit-btn:hover {
    background: #4a2f22;
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

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

/* Loading State */
.loading-state {
    text-align: center;
    padding: 48px 24px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e8d5c4;
    border-top-color: #5c3d2e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: #8a7068;
    font-size: 14px;
}

/* Error State */
.error-state {
    background: #fef2f2;
    border: 1px solid #e8b4b4;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 24px;
}

.error-state p {
    color: #9b3c3c;
    font-size: 14px;
}

/* Comparison Panels */
.comparison-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.panel {
    background: #fff9f5;
    border: 1px solid #e8d5c4;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(139, 90, 60, 0.06);
}

.panel-header {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8a7068;
    border-bottom: 1px solid #e8d5c4;
    background: #faf0e6;
}

.panel-header.enhanced {
    color: #4a7c59;
    background: #f0f7f2;
    border-bottom-color: #c8dece;
}

.panel iframe {
    width: 100%;
    height: 700px;
    border: none;
    background: #fff;
}

/* Report Section */
.report-section {
    margin-bottom: 40px;
}

.report-section h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    color: #2c1810;
    margin-bottom: 16px;
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.report-card {
    background: #fff9f5;
    border: 1px solid #e8d5c4;
    border-radius: 10px;
    padding: 16px;
}

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

.report-card h3 {
    font-size: 11px;
    font-weight: 600;
    color: #8a7068;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.report-card p,
.report-card li {
    font-size: 14px;
    color: #4a3830;
    line-height: 1.6;
}

.report-card ul {
    list-style: none;
    padding: 0;
}

.report-card li {
    padding: 5px 0;
    border-bottom: 1px solid #f0e4d8;
}

.report-card li:last-child {
    border-bottom: none;
}

.report-card li::before {
    content: "\2192  ";
    color: #4a7c59;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .input-row {
        flex-direction: column;
    }

    .comparison-section {
        grid-template-columns: 1fr;
    }

    .report-grid {
        grid-template-columns: 1fr;
    }

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