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

.textarea-wrapper {
    margin-bottom: 1.5rem;
}

.textarea-wrapper textarea {
    width: 100%;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 200px;
}

.textarea-wrapper textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.textarea-wrapper textarea::placeholder {
    color: var(--text-secondary);
}

.char-counter {
    text-align: right;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 1.1rem;
}

.detection-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item.clean {
    border-color: rgba(34, 197, 94, 0.3);
}

.stat-item.clean .stat-icon {
    color: #22c55e;
}

.stat-item.detected {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.stat-item.detected .stat-icon {
    color: #ef4444;
}

.stat-icon {
    margin-bottom: 0.75rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.stat-status {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.summary-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.summary-item {
    text-align: center;
}

.summary-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.summary-item.critical .summary-value { color: #ef4444; }
.summary-item.high .summary-value { color: #f97316; }

.issues-section {
    margin: 2rem 0;
}

.issues-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.issues-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.issue-item {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.issue-item.severity-critical { border-left: 3px solid #ef4444; }
.issue-item.severity-high { border-left: 3px solid #f97316; }
.issue-item.severity-medium { border-left: 3px solid #eab308; }
.issue-item.severity-low { border-left: 3px solid #3b82f6; }

.issue-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.issue-severity, .issue-category {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.severity-critical .issue-severity { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.severity-high .issue-severity { background: rgba(249, 115, 22, 0.2); color: #f97316; }
.severity-medium .issue-severity { background: rgba(234, 179, 8, 0.2); color: #eab308; }
.severity-low .issue-severity { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }

.issue-category {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.issue-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
}

.issue-count {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: 0.5rem;
}

.cleaned-text-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
}

.cleaned-text-section h4 {
    color: #f59e0b;
    margin-bottom: 0.5rem;
}

.cleaned-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cleaned-preview {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
}

.cleaned-preview code {
    color: var(--text-primary);
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.alert {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.alert h3, .alert h4 {
    margin-bottom: 0.5rem;
}

.alert-success { background: rgba(34, 197, 94, 0.15); border-left: 3px solid #22c55e; }
.alert-success h3, .alert-success h4 { color: #22c55e; }

.alert-danger { background: rgba(239, 68, 68, 0.15); border-left: 3px solid #ef4444; }
.alert-danger h3, .alert-danger h4 { color: #ef4444; }

.alert-error { background: rgba(239, 68, 68, 0.15); border-left: 3px solid #ef4444; }
.alert-error h3 { color: #ef4444; }

.threat-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.threat-safe { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.threat-low { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.threat-medium { background: rgba(234, 179, 8, 0.2); color: #eab308; }
.threat-high { background: rgba(249, 115, 22, 0.2); color: #f97316; }
.threat-critical { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

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

.safety-recommendations {
    margin: 1rem 0 0 1.5rem;
    color: var(--text-secondary);
}

.safety-recommendations li {
    margin-bottom: 0.5rem;
}

.info-section {
    margin-bottom: 2rem;
}

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

.info-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.threat-type {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
}

.threat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.threat-type strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

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

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

    .summary-stats {
        flex-wrap: wrap;
    }
}