/* ===========================================
   THREATVISION AI - DEMO STYLES
   =========================================== */

:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-tertiary: #1a1a3a;
    --aurora-1: #7c3aed;
    --aurora-2: #a855f7;
    --aurora-3: #c084fc;
    --aurora-4: #06b6d4;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --critical: #dc2626;
    --high: #f97316;
    --medium: #eab308;
    --low: #22c55e;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Header */
.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(18, 18, 42, 0.9);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    font-size: 1.5rem;
    color: var(--aurora-2);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
}

.product-name {
    color: var(--text-muted);
    padding-left: 0.75rem;
    border-left: 1px solid rgba(168, 85, 247, 0.3);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: var(--aurora-3);
}

/* Main Container */
.dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 1.5rem;
    padding: 1.5rem;
    height: calc(100vh - 120px);
}

/* Panels */
.scan-panel,
.details-panel {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.25rem;
    overflow-y: auto;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.panel-section {
    margin-bottom: 1.5rem;
}

.panel-section h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Form Elements */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Scan Types */
.scan-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.scan-type-option {
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.scan-type-option.active,
.scan-type-option:has(input:checked) {
    border-color: var(--aurora-2);
    background: rgba(168, 85, 247, 0.1);
}

.btn-scan {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-scan:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.btn-scan.scanning {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Severity Filters */
.severity-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.severity-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    cursor: pointer;
    border-left: 3px solid;
}

.severity-toggle.critical {
    border-color: var(--critical);
}

.severity-toggle.high {
    border-color: var(--high);
}

.severity-toggle.medium {
    border-color: var(--medium);
}

.severity-toggle.low {
    border-color: var(--low);
}

/* Integrations */
.integration-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.integration-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 0.85rem;
}

.integration-item .status {
    margin-left: auto;
    color: var(--text-muted);
}

.integration-item.connected .status {
    color: var(--low);
}

/* Results Panel */
.results-panel {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-indicator.scanning .status-dot {
    background: var(--aurora-2);
    animation: blink 1s infinite;
}

.status-indicator.complete .status-dot {
    background: var(--low);
}

.status-indicator.error .status-dot {
    background: var(--critical);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.scan-stats {
    display: flex;
    gap: 1rem;
}

.scan-stats .stat {
    text-align: center;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    min-width: 70px;
}

.scan-stats .stat .count {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
}

.scan-stats .stat.critical .count {
    color: var(--critical);
}

.scan-stats .stat.high .count {
    color: var(--high);
}

.scan-stats .stat.medium .count {
    color: var(--medium);
}

.scan-stats .stat.low .count {
    color: var(--low);
}

.scan-stats .stat .label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Results List */
.results-list {
    flex: 1;
    overflow-y: auto;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* Vulnerability Card */
.vuln-card {
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid;
    cursor: pointer;
    transition: all 0.2s;
}

.vuln-card:hover {
    background: rgba(168, 85, 247, 0.1);
}

.vuln-card.critical {
    border-color: var(--critical);
}

.vuln-card.high {
    border-color: var(--high);
}

.vuln-card.medium {
    border-color: var(--medium);
}

.vuln-card.low {
    border-color: var(--low);
}

.vuln-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.vuln-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.vuln-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.vuln-badge.critical {
    background: rgba(220, 38, 38, 0.2);
    color: var(--critical);
}

.vuln-badge.high {
    background: rgba(249, 115, 22, 0.2);
    color: var(--high);
}

.vuln-badge.medium {
    background: rgba(234, 179, 8, 0.2);
    color: var(--medium);
}

.vuln-badge.low {
    background: rgba(34, 197, 94, 0.2);
    color: var(--low);
}

.vuln-file {
    font-size: 0.8rem;
    color: var(--aurora-4);
    margin-bottom: 0.5rem;
}

.vuln-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Details Panel */
.detail-placeholder {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.detail-content {
    display: none;
}

.detail-content.active {
    display: block;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.code-block {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.8rem;
    overflow-x: auto;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.remediation-steps {
    list-style: none;
}

.remediation-steps li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.85rem;
}

.remediation-steps li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--aurora-2);
}

/* Demo Banner */
.demo-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.demo-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--aurora-1);
    border-radius: 3px;
}