.analyzer-container {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.analyzer-card, .results-card, .info-card {
    background: rgba(15, 31, 53, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.analyzer-card h2, .results-card h3, .info-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.analyzer-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Presets */
.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.preset-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1.25rem 1.5rem;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    color: var(--text-primary);
    font-family: inherit;
}

.preset-card:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.preset-card.active {
    background: rgba(59, 130, 246, 0.18);
    border-color: var(--accent-blue);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.preset-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.preset-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Mode tabs (Texte / Fichier) */
.mode-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.mode-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.mode-tab:hover {
    color: var(--text-primary);
}

.mode-tab.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.analyzer-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.analyzer-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.file-input {
    cursor: pointer;
}

.file-input::file-selector-button {
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    cursor: pointer;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.file-input::file-selector-button:hover {
    background: rgba(59, 130, 246, 0.3);
}

.hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Info boxes */
.info-box {
    margin-top: 1.5rem;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid;
}

.info-box-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-left-color: #3b82f6;
}

.info-box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #3b82f6;
}

.info-box-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: #3b82f6;
}

.info-box p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Unified summary */
.unified-summary {
    padding: 1.75rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.unified-summary.risk-critical, .unified-summary.risk-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
}

.unified-summary.risk-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.unified-summary.risk-safe, .unified-summary.risk-low {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

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

.unified-summary-header h3 {
    margin: 0;
}

.unified-input-summary {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.unified-verdict {
    color: var(--text-secondary);
    margin: 0;
}

.threat-badge {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.threat-critical, .threat-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.threat-high, .threat-warning, .threat-medium {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.threat-low, .threat-safe {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

/* Sub-results */
.sub-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.sub-result-card {
    padding: 1.25rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 10px;
}

.sub-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sub-result-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.sub-result-link {
    display: inline-block;
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem;
    text-decoration: none;
}

.unavailable-engines {
    padding: 1.25rem;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.unavailable-engines h4 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.unavailable-engines ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.unavailable-engines li {
    margin-bottom: 0.4rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.action-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    text-decoration: none;
}

/* Info section (about) */
.info-section {
    margin-bottom: 2.5rem;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.info-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.analysis-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.analysis-type {
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
}

.analysis-type:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
}

.analysis-type strong {
    display: block;
    color: var(--accent-blue);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.analysis-type p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

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

    .input-group {
        flex-direction: column;
    }

    .unified-summary-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons a {
        justify-content: center;
    }
}
