.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;
}

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

.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;
}

/* Secrets summary */
.secrets-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);
}

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

.secrets-summary.risk-high {
    background: rgba(251, 146, 60, 0.08);
    border-color: rgba(251, 146, 60, 0.3);
}

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

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

.secrets-summary.risk-unknown {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.3);
}

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

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

.secrets-count-line {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

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

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-item.critical .stat-value { color: #ef4444; }
.stat-item.high .stat-value { color: #fb923c; }
.stat-item.medium .stat-value { color: #eab308; }
.stat-item.low .stat-value { color: #10b981; }

.stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

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

.threat-critical { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.threat-high { background: rgba(251, 146, 60, 0.2); color: #fdba74; }
.threat-medium { background: rgba(234, 179, 8, 0.2); color: #fde047; }
.threat-low, .threat-safe { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.threat-unknown { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }

/* Findings list */
.findings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.finding-item {
    padding: 1.25rem;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid;
}

.finding-item.severity-critical { border-left-color: #ef4444; }
.finding-item.severity-high { border-left-color: #fb923c; }
.finding-item.severity-medium { border-left-color: #eab308; }
.finding-item.severity-low { border-left-color: #10b981; }
.finding-item.severity-unknown { border-left-color: #94a3b8; }

/* Enrichment grid (Recherche d'IOC) */
.enrichment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.enrichment-item {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid rgba(59, 130, 246, 0.35);
}

.enrichment-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.35rem;
}

.enrichment-value {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    word-break: break-word;
}

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

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

.finding-source {
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.menaces-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.finding-location {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0.25rem 0;
}

.finding-location code {
    background: rgba(30, 41, 59, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    color: #e2e8f0;
}

.finding-evidence {
    color: #fca5a5;
    font-size: 0.85rem;
    margin: 0.25rem 0 0 0;
}

.finding-evidence code {
    background: rgba(30, 41, 59, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.findings-more {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    font-style: italic;
}

.success-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.success-message svg {
    color: #10b981;
    margin-bottom: 1rem;
}

.success-message h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.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 {
    margin-bottom: 2rem;
}

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

.info-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    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: 0;
}

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }

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

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

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