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

/* ===== HACKER STYLE SCROLLBARS ===== */
/* WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
    border: 1px solid #00ff0030;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ff0060 0%, #00ff0040 50%, #00ff0020 100%);
    border-radius: 6px;
    border: 1px solid #00ff00;
    box-shadow: inset 0 0 6px rgba(0, 255, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00ff0080 0%, #00ff0060 50%, #00ff0040 100%);
    box-shadow: inset 0 0 8px rgba(0, 255, 0, 0.5), 0 0 4px rgba(0, 255, 0, 0.3);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #00ff00 0%, #00ff0080 50%, #00ff0060 100%);
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.7), 0 0 6px rgba(0, 255, 0, 0.5);
}

::-webkit-scrollbar-corner {
    background: #0a0a0a;
    border: 1px solid #00ff0030;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #00ff0060 #0a0a0a;
}

body {
    font-family: 'Courier New', 'Lucida Console', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #00ff00;
    min-height: 100vh;
    overflow: hidden;
    user-select: none;
}

#app {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER STYLES ===== */
.header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
    border-bottom: 2px solid #00ff00;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    filter: drop-shadow(0 0 8px #00ff00);
    animation: iconPulse 3s infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 8px #00ff00);
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 16px #00ff00) drop-shadow(0 0 24px #00ff41);
        transform: scale(1.05);
    }
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo .logo-text, .logo .subtitle {
    margin: 0;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 15px #00ff00, 0 0 30px #00ff00;
    letter-spacing: 2px;
    animation: pulse 2s infinite;
}

.subtitle {
    font-size: 10px;
    color: #00cccc;
    margin-top: 2px;
    letter-spacing: 1px;
    text-shadow: 0 0 5px #00cccc;
}

@keyframes pulse {
    0%, 100% { text-shadow: 0 0 15px #00ff00, 0 0 30px #00ff00; }
    50% { text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 40px #00ff00; }
}

/* ===== FINDINGS SUMMARY ===== */
.findings-summary {
    display: flex;
    gap: 20px;
    align-items: center;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 6px;
    min-width: 60px;
}

.summary-label {
    font-size: 10px;
    color: #888;
    margin-bottom: 4px;
    font-weight: bold;
}

.summary-count {
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px currentColor;
}

.summary-count.critical {
    color: #ff0040;
    animation: blink 1s infinite;
}

.summary-count.high {
    color: #ff6600;
}

.summary-count.medium {
    color: #ffaa00;
}

.summary-count.low {
    color: #00ff00;
}

.summary-subcount {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
    font-weight: normal;
    text-shadow: none;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* ===== HEADER CONTROLS ===== */
.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Ensure hidden menu elements take no space */
.window-menu[style*="display: none"],
.archive-menu[style*="display: none"] {
    display: none !important;
}

/* ===== SECURITY REPORT STYLES ===== */
.executive-report,
.technical-report,
.remediation-report {
    padding: 20px;
    max-width: 100%;
    color: #e0e0e0;
}

.report-header {
    border-bottom: 2px solid #00ff00;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.report-header h2 {
    margin: 0 0 10px 0;
    color: #00ff00;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.report-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.meta-item {
    background: rgba(0, 255, 0, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #00ff00;
    font-size: 14px;
}

.meta-item strong {
    color: #00ff00;
}

/* Findings Overview Grid */
.findings-overview {
    margin: 30px 0;
}

.findings-overview h3 {
    color: #00ff00;
    margin-bottom: 20px;
    font-size: 20px;
}

.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.finding-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.finding-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.finding-card.critical {
    border-color: #ff0040;
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.finding-card.high {
    border-color: #ff6600;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.finding-card.medium {
    border-color: #ffaa00;
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.finding-card.low {
    border-color: #00aa00;
    background: linear-gradient(135deg, rgba(0, 170, 0, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.finding-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 20px currentColor;
}

.finding-card.critical .finding-number { color: #ff0040; }
.finding-card.high .finding-number { color: #ff6600; }
.finding-card.medium .finding-number { color: #ffaa00; }
.finding-card.low .finding-number { color: #00aa00; }

.finding-label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.finding-desc {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.4;
}

/* Key Insights and Recommendations */
.key-insights,
.recommendations {
    margin: 30px 0;
    background: rgba(0, 255, 0, 0.05);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #00ff00;
}

.key-insights h3,
.recommendations h3 {
    color: #00ff00;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.insights-list,
.recommendations-list {
    margin: 0;
    padding-left: 20px;
}

.insights-list li,
.recommendations-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Technical Report Styles */
.technical-details,
.code-analysis,
.risk-assessment {
    margin: 25px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.technical-details h3,
.code-analysis h3,
.risk-assessment h3 {
    color: #00ff00;
    margin: 0 0 15px 0;
    font-size: 18px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    padding-bottom: 8px;
}

.vuln-breakdown h4,
.code-analysis-summary h4,
.risk-details h4 {
    color: #ffaa00;
    margin: 15px 0 10px 0;
    font-size: 16px;
}

.vuln-list,
.code-analysis-summary ul,
.risk-details ul {
    margin: 0;
    padding-left: 20px;
}

.vuln-item,
.code-analysis-summary li,
.risk-details li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.more-items {
    color: #888;
    font-style: italic;
}

/* Remediation Report Styles */
.remediation-priority,
.remediation-steps,
.prevention-measures {
    margin: 25px 0;
}

.remediation-priority {
    background: rgba(255, 0, 64, 0.1);
    border: 1px solid #ff0040;
    border-radius: 8px;
    padding: 20px;
}

.remediation-priority h3 {
    color: #ff0040;
    margin: 0 0 15px 0;
}

.critical-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.critical-fix {
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid #ff0040;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
}

.critical-fix strong {
    color: #ff0040;
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.critical-fix p {
    margin: 0;
    line-height: 1.4;
    opacity: 0.9;
}

.steps-list {
    counter-reset: step-counter;
    padding-left: 0;
}

.steps-list li {
    counter-increment: step-counter;
    margin-bottom: 15px;
    padding-left: 40px;
    position: relative;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #00ff00;
    color: #000;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.prevention-list {
    list-style: none;
    padding: 0;
}

.prevention-list li {
    background: rgba(0, 255, 0, 0.05);
    border-left: 3px solid #00ff00;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 0 6px 6px 0;
}

/* Risk Badges */
.risk-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.risk-badge.risk-critical {
    background: #ff0040;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 64, 0.5);
}

.risk-badge.risk-high {
    background: #ff6600;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

.risk-badge.risk-medium {
    background: #ffaa00;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.risk-badge.risk-low {
    background: #00aa00;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 170, 0, 0.5);
}

.window-menu {
    position: relative;
}

.window-menu-btn {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: inherit;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    text-shadow: none;
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
    transition: all 0.3s ease;
}

.window-menu-btn:hover {
    background: linear-gradient(135deg, #00cc00 0%, #009900 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.5);
}

.public-feed-btn {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8500 100%);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: inherit;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    text-shadow: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.3);
}

.public-feed-btn:hover {
    background: linear-gradient(135deg, #ff8500 0%, #ffa500 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.5);
}

.window-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #00ff00;
    border-radius: 6px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.window-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    padding: 12px 16px;
    color: #00ff00;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
    transition: all 0.2s ease;
    font-size: 12px;
}

.menu-item:hover {
    background: rgba(0, 255, 0, 0.1);
    color: #fff;
    text-shadow: 0 0 10px #00ff00;
}

.menu-item:last-child {
    border-bottom: none;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-indicator, .analysis-status {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    border: 1px solid currentColor;
    text-shadow: 0 0 10px currentColor;
}

/* Override for connection status in header to be label-only */
#connection-status.status-indicator {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent !important;
    text-shadow: none;
    font-size: 11px;
}

#connection-status.status-indicator.connected {
    background: transparent !important;
}

.status-indicator {
    color: #ff0040;
    background: rgba(255, 0, 64, 0.1);
    animation: blink 2s infinite;
}

.status-indicator.connected {
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
    animation: none;
}

.analysis-status {
    color: #00cccc;
    background: rgba(0, 204, 204, 0.1);
}

.support-btn {
    background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%);
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: inherit;
    font-weight: bold;
    font-size: 10px;
    cursor: pointer;
    text-shadow: none;
    box-shadow: 0 2px 10px rgba(255, 170, 0, 0.3);
    transition: all 0.3s ease;
    margin-left: 10px;
}

.support-btn:hover {
    background: linear-gradient(135deg, #ff8800 0%, #ff6600 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 170, 0, 0.5);
}

/* ===== INPUT SECTION ===== */
.input-section {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.input-group {
    display: flex;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

#github-url {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #333;
    border-radius: 6px;
    color: #00ff00;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

#github-url:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    background: rgba(0, 0, 0, 0.9);
}

#github-url::placeholder {
    color: #666;
}

.analyze-btn, .clear-btn, .stop-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.analyze-btn {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 0, 0.5);
}

.analyze-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.clear-btn {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 68, 68, 0.5);
}

.stop-btn {
    background: linear-gradient(135deg, #ff8800 0%, #ff6600 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 136, 0, 0.3);
    animation: pulse-orange 2s infinite;
}

.stop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 136, 0, 0.5);
}

@keyframes pulse-orange {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 136, 0, 0.3); }
    50% { box-shadow: 0 6px 25px rgba(255, 136, 0, 0.6); }
}

/* ===== REPORT STYLES ===== */
.critical-card {
    border: 2px solid #ff0040 !important;
    background: rgba(255, 0, 64, 0.1) !important;
}

.finding-impact {
    font-size: 11px;
    color: #ff6600;
    margin-top: 8px;
    font-weight: bold;
}

.critical-finding-detail {
    animation: pulse-critical 3s infinite;
}

@keyframes pulse-critical {
    0%, 100% { border-color: #ff0040; }
    50% { border-color: #ff6600; }
}

.finding-summary:hover {
    background: rgba(0, 255, 0, 0.05) !important;
    border-color: #00ff00 !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.severity-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.severity-critical {
    background: #ff0040;
    color: #fff;
}

.severity-high {
    background: #ff6600;
    color: #fff;
}

.severity-medium {
    background: #ffaa00;
    color: #000;
}

.severity-low {
    background: #00ff00;
    color: #000;
}

/* ===== TABBED INTERFACE ===== */
.tabbed-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    margin: 0 20px 20px 20px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 255, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab-bar {
    display: flex;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 255, 0, 0.1) 100%);
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-bar::-webkit-scrollbar {
    display: none;
}

.tab {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(0, 255, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #888;
    font-size: 12px;
    font-weight: 500;
    min-width: 140px;
    position: relative;
    white-space: nowrap;
}

.tab:hover {
    background: rgba(0, 255, 0, 0.05);
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.tab.active {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.15) 0%, rgba(0, 204, 204, 0.1) 100%);
    color: #00ffff;
    border-bottom: 2px solid #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
}

.tab-icon {
    margin-right: 8px;
    font-size: 14px;
}

.tab-title {
    flex: 1;
    margin-right: 8px;
}

.tab-count {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    margin-right: 8px;
    min-width: 16px;
    text-align: center;
}

.tab.active .tab-count {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
}

.tab-popout-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.2s ease;
    opacity: 0;
}

.tab:hover .tab-popout-btn {
    opacity: 1;
}

.tab-popout-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    transform: scale(1.1);
}

.tab-content-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.tab-content {
    display: none;
    flex-direction: column;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.tab-content.active {
    display: flex;
}

.content-toolbar {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 255, 0, 0.05) 100%);
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
    gap: 8px;
    flex-wrap: wrap;
}

.content-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 20, 0, 0.3) 100%);
}

.console-content {
    background: rgba(0, 0, 0, 0.95) !important;
    font-family: 'Courier New', monospace;
    padding: 16px;
    overflow-y: auto;
}

.report-content {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 30, 30, 0.5) 100%) !important;
}

/* ===== DESKTOP & WINDOW SYSTEM (for floating windows only) ===== */
.desktop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 500;
    overflow: hidden;
}

.desktop .window {
    pointer-events: auto;
}

.window {
    position: absolute;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 40, 0.95) 100%);
    border: 2px solid #00ff00;
    border-radius: 10px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 255, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    min-width: 350px;
    min-height: 250px;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.window:hover {
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(0, 255, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.window.active {
    z-index: 1500;
    border-color: #00ffff;
    box-shadow: 
        0 30px 100px rgba(0, 0, 0, 1),
        0 0 50px rgba(0, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.window.minimized {
    transform: scale(0.1) translate(-50vw, 50vh);
    opacity: 0;
    pointer-events: none;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 120px) !important;
    border-radius: 0;
    z-index: 1600;
}

/* ===== WINDOW HEADER ===== */
.window-header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 255, 0, 0.1) 100%);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px 8px 0 0;
    cursor: move;
    user-select: none;
}

.window-header:hover {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.05) 0%, rgba(0, 255, 0, 0.15) 100%);
}

.window-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 12px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.window-icon {
    font-size: 14px;
    text-shadow: 0 0 10px currentColor;
}

.window-count {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-btn {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 10px;
    font-weight: normal;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.window-btn.minimize {
    background: #444;
    color: #ccc;
    border: 1px solid #666;
}

.window-btn.minimize:hover {
    background: #555;
    color: #fff;
}

.window-btn.detach {
    background: #1a4b7d;
    color: #00aaff;
    border: 1px solid #00aaff;
}

.window-btn.detach:hover {
    background: #2a5b8d;
    color: #fff;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.4);
}

.window-btn.maximize {
    background: #444;
    color: #ccc;
    border: 1px solid #666;
}

.window-btn.maximize:hover {
    background: #555;
    color: #fff;
}

.window-btn.popout {
    background: #444;
    color: #00ff00;
    border: 1px solid #666;
}

.window-btn.popout:hover {
    background: #555;
    color: #00ff00;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.window-btn.close {
    background: #444;
    color: #ff4444;
    border: 1px solid #666;
}

.window-btn.close:hover {
    background: #ff4444;
    color: #fff;
}

.window-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* ===== WINDOW TOOLBAR ===== */
.window-toolbar {
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    flex-wrap: wrap;
}

.view-btn {
    background: rgba(0, 0, 0, 0.7);
    color: #888;
    border: 1px solid #333;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.view-btn:hover {
    color: #00ff00;
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
    text-shadow: 0 0 10px #00ff00;
}

.view-btn.active {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
    color: #000;
    border-color: #00ff00;
    text-shadow: none;
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
}

/* ===== WINDOW CONTENT ===== */
.window-content {
    flex: 1;
    overflow: auto;
    padding: 16px;
    scrollbar-width: thin;
    scrollbar-color: #00ff00 rgba(0, 0, 0, 0.3);
}

.window-content::-webkit-scrollbar {
    width: 8px;
}

.window-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.window-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
    border-radius: 4px;
}

.window-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00cc00 0%, #009900 100%);
}

.view-content {
    height: 100%;
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 14px;
    text-align: center;
    min-height: 150px;
}

/* ===== CONSOLE SPECIFIC ===== */
.console-content {
    background: rgba(0, 0, 0, 0.8);
    padding: 16px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.4;
    height: 100%;
    overflow-y: auto;
}

.console-line {
    margin-bottom: 4px;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.console-line.error {
    color: #ff4444;
    text-shadow: 0 0 5px #ff4444;
}

.console-line.warning {
    color: #ffaa00;
    text-shadow: 0 0 5px #ffaa00;
}

.console-line.info {
    color: #00cccc;
    text-shadow: 0 0 5px #00cccc;
}

/* ===== REPORT DETAILS TAB STYLES ===== */
.report-details-data {
    background: rgba(0, 20, 0, 0.3);
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 20px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 70vh;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.4;
}

.report-details-content .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.report-details-content h1 {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    margin-bottom: 20px;
}

.report-details-content h2 {
    color: #00ccff;
    text-shadow: 0 0 8px #00ccff;
    margin: 20px 0 10px 0;
}

.report-details-content pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #00ff00;
    margin: 10px 0;
}

/* Update action buttons in content toolbar */
.content-toolbar .action-btn {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.2);
}

.content-toolbar .action-btn:hover {
    background: linear-gradient(145deg, #00ff00 0%, #00cc00 100%);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

.action-btn {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.5);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header {
        padding: 8px 12px;
        flex-direction: column;
        gap: 10px;
    }
    
    .findings-summary {
        gap: 10px;
    }
    
    .summary-item {
        padding: 6px 8px;
        min-width: 50px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .window {
        min-width: 280px;
        max-width: 95vw;
    }
    
    .window.maximized {
        height: calc(100vh - 160px) !important;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.window {
    animation: slideIn 0.5s ease-out;
}

/* ===== DATA VISUALIZATION STYLES ===== */
.data-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.data-item {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 6px;
    padding: 12px;
    transition: all 0.3s ease;
}

.data-item:hover {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.severity-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.severity-critical {
    background: rgba(255, 0, 64, 0.2);
    color: #ff0040;
    border: 1px solid #ff0040;
    animation: pulse-critical 1.5s infinite;
}

.severity-high {
    background: rgba(255, 102, 0, 0.2);
    color: #ff6600;
    border: 1px solid #ff6600;
}

.severity-medium {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border: 1px solid #ffaa00;
}

.severity-low {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
}

@keyframes pulse-critical {
    0%, 100% { 
        box-shadow: 0 0 5px #ff0040;
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 15px #ff0040, 0 0 25px #ff0040;
        transform: scale(1.05);
    }
}

/* ===== WINDOW RESIZE HANDLES ===== */
.resize-handles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.resize-handle {
    position: absolute;
    pointer-events: auto;
    background: transparent;
    z-index: 1000;
}

.resize-handle:hover {
    background: rgba(0, 255, 0, 0.2);
}

.resize-n {
    top: -2px;
    left: 10px;
    right: 10px;
    height: 4px;
    cursor: ns-resize;
}

.resize-s {
    bottom: -2px;
    left: 10px;
    right: 10px;
    height: 4px;
    cursor: ns-resize;
}

.resize-e {
    top: 10px;
    right: -2px;
    bottom: 10px;
    width: 4px;
    cursor: ew-resize;
}

.resize-w {
    top: 10px;
    left: -2px;
    bottom: 10px;
    width: 4px;
    cursor: ew-resize;
}

.resize-ne {
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    cursor: ne-resize;
}

.resize-nw {
    top: -2px;
    left: -2px;
    width: 10px;
    height: 10px;
    cursor: nw-resize;
}

.resize-se {
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    cursor: se-resize;
}

.resize-sw {
    bottom: -2px;
    left: -2px;
    width: 10px;
    height: 10px;
    cursor: sw-resize;
}

/* ===== EXPORT BUTTONS ===== */
.export-btn {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-left: 8px;
}

.export-btn:hover {
    background: linear-gradient(135deg, #00cc00 0%, #009900 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.4);
}

/* ===== REPORT CONTENT STYLES ===== */
.report-content {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.report-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
}

.report-section h1 {
    color: #00ff00;
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #00ff00;
    border-bottom: 2px solid #00ff00;
    padding-bottom: 10px;
}

.report-section h2 {
    color: #00cccc;
    font-size: 18px;
    margin-bottom: 12px;
    margin-top: 20px;
    text-shadow: 0 0 8px #00cccc;
}

.report-section h3 {
    color: #ffaa00;
    font-size: 14px;
    margin-bottom: 8px;
    margin-top: 15px;
    text-shadow: 0 0 5px #ffaa00;
}

.report-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 12px;
}

.report-section ul {
    color: #ccc;
    margin-left: 20px;
    margin-bottom: 12px;
}

.report-section li {
    margin-bottom: 6px;
    font-size: 12px;
}

.risk-meter {
    display: flex;
    align-items: center;
    margin: 10px 0;
    gap: 10px;
}

.risk-bar {
    flex: 1;
    height: 20px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #666;
}

.risk-fill {
    height: 100%;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, #00ff00, #ffaa00, #ff6600, #ff0040);
}

.risk-label {
    color: #00ff00;
    font-weight: bold;
    font-size: 12px;
    min-width: 80px;
    text-shadow: 0 0 5px currentColor;
}

.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.finding-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
}

.finding-card:hover {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.05);
    transform: translateY(-2px);
}

.finding-title {
    color: #00ff00;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
}

.finding-severity {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.verified-tag {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
    color: #000;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: bold;
    margin-left: 8px;
    text-shadow: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    animation: verifiedGlow 2s infinite alternate;
}

@keyframes verifiedGlow {
    from { box-shadow: 0 0 10px rgba(0, 255, 0, 0.5); }
    to { box-shadow: 0 0 15px rgba(0, 255, 0, 0.8); }
}

.finding-description {
    color: #ccc;
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.finding-recommendation {
    color: #00cccc;
    font-size: 11px;
    font-style: italic;
}

.finding-file {
    color: #888;
    font-size: 10px;
    margin-top: 8px;
    margin-bottom: 4px;
}

.finding-file a {
    color: #00cccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.finding-file a:hover {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 0 10px currentColor;
}

.stat-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
}

/* ===== ARCHIVE MENU STYLES ===== */
.archive-menu {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.archive-menu-btn, .archive-menu-btn:hover {
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.4));
    color: #ffc107;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 10px #ffc107;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.archive-menu-btn:hover {
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.4), rgba(255, 193, 7, 0.6));
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
    transform: translateY(-2px);
}

.archive-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 40, 0.95) 100%);
    border: 2px solid #ffc107;
    border-radius: 8px;
    min-width: 320px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 2000;
    display: none;
    margin-top: 5px;
    box-shadow: 0 8px 30px rgba(255, 193, 7, 0.3);
    backdrop-filter: blur(10px);
}

.archive-dropdown.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.archive-header {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.1));
    color: #ffc107;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 193, 7, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.archive-list {
    padding: 8px;
}

.archive-empty {
    color: #666;
    text-align: center;
    padding: 20px;
    font-style: italic;
    font-size: 11px;
}

.archive-item {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
    margin-bottom: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.archive-item:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.3);
    transform: translateX(2px);
}

.archive-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.archive-item-title {
    color: #ffc107;
    font-weight: bold;
    font-size: 11px;
    text-shadow: 0 0 5px #ffc107;
}

.archive-item-date {
    color: #888;
    font-size: 9px;
}

.archive-item-url {
    color: #ccc;
    font-size: 10px;
    margin-bottom: 6px;
    word-break: break-all;
}

.archive-item-stats {
    display: flex;
    gap: 12px;
    font-size: 9px;
}

.archive-stat {
    color: #666;
}

.archive-stat.has-findings {
    color: #ff6b6b;
    font-weight: bold;
}

.archive-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
}

.archive-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 9px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.archive-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.archive-action-btn.delete:hover {
    background: rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    border-color: #ff6b6b;
}

.archive-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 8px;
    font-weight: 500;
}

.archive-status.stopped {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.archive-status.completed {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Menu separator */
.menu-separator {
    height: 1px;
    background: rgba(0, 255, 0, 0.3);
    margin: 8px 0;
}

/* ===== PAUSE BUTTON STYLES ===== */
.pause-btn {
    background: linear-gradient(45deg, rgba(255, 165, 0, 0.2), rgba(255, 165, 0, 0.4));
    color: #ffa500;
    border: 1px solid #ffa500;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 10px #ffa500;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    margin-right: 8px;
}

.pause-btn:hover {
    background: linear-gradient(45deg, rgba(255, 165, 0, 0.4), rgba(255, 165, 0, 0.6));
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.5);
    transform: translateY(-2px);
}

.pause-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}

.pause-btn.paused {
    background: linear-gradient(45deg, rgba(0, 255, 0, 0.2), rgba(0, 255, 0, 0.4));
    color: #00ff00;
    border-color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.pause-btn.paused:hover {
    background: linear-gradient(45deg, rgba(0, 255, 0, 0.4), rgba(0, 255, 0, 0.6));
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

/* ===== CLICKABLE FINDING CARDS ===== */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
    border-color: #00ff00;
}

.click-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 10px;
    color: #888;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clickable-card:hover .click-hint {
    opacity: 1;
    color: #00ff00;
}

/* ===== CLICKABLE CARD STYLES ===== */
.clickable-card {
    transition: all 0.2s ease !important;
}

.clickable-card:hover {
    background: rgba(0, 255, 0, 0.05) !important;
    border-color: rgba(0, 255, 0, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.2);
}

.click-hint {
    position: absolute;
    bottom: 4px;
    right: 8px;
    font-size: 9px;
    color: #666;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.clickable-card:hover .click-hint {
    opacity: 1;
    color: #00ff00;
}

/* ===== TIMELINE VIEW STYLES ===== */
.timeline-view {
    padding: 20px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 6px;
    padding: 15px 15px 15px 40px;
    background: rgba(0, 0, 0, 0.3);
}

.timeline-marker {
    position: absolute;
    left: 15px;
    top: 20px;
    width: 10px;
    height: 10px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.timeline-marker::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 15px;
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, #00ff00, transparent);
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-weight: bold;
    color: #00ff00;
    font-size: 14px;
    margin-bottom: 5px;
}

.timeline-details {
    color: #888;
    font-size: 12px;
}

/* ===== SEVERITY BADGE STYLES ===== */
.severity-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    border: 1px solid;
}

.finding-severity {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.severity-critical, .critical-card {
    background: rgba(255, 0, 64, 0.2) !important;
    color: #ff0040 !important;
    border-color: #ff0040 !important;
}

.severity-high {
    background: rgba(255, 102, 0, 0.2) !important;
    color: #ff6600 !important;
    border-color: #ff6600 !important;
}

.severity-medium {
    background: rgba(255, 170, 0, 0.2) !important;
    color: #ffaa00 !important;
    border-color: #ffaa00 !important;
}

.severity-low {
    background: rgba(0, 255, 0, 0.2) !important;
    color: #00ff00 !important;
    border-color: #00ff00 !important;
}

.severity-unknown {
    background: rgba(128, 128, 128, 0.2) !important;
    color: #888 !important;
    border-color: #888 !important;
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 2px solid #00ff00;
    border-radius: 10px;
    max-width: 800px;
    max-height: 80vh;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.modal-header h2 {
    margin: 0;
    color: #00ff00;
    font-size: 20px;
    text-shadow: 0 0 10px #00ff00;
}

.modal-close {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 68, 68, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
    color: #e0e0e0;
}

.modal-severity {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.vuln-type {
    color: #888;
    font-size: 14px;
    padding: 4px 8px;
    border: 1px solid #444;
    border-radius: 4px;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h3 {
    color: #00ff00;
    font-size: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    padding-bottom: 5px;
}

.modal-section p {
    line-height: 1.6;
    color: #ccc;
}

.poc-code {
    background: #000;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.file-path {
    background: rgba(0, 255, 0, 0.1);
    padding: 8px;
    border-left: 3px solid #00ff00;
    font-family: monospace;
    color: #0f0;
}

/* Scrollbar styling for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #111;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}\n\n/* ===== DETAILED VULNERABILITY REPORT STYLES ===== */\n/* Styles for exported detailed vulnerability reports */\n.vulnerability-detail {\n    border: 1px solid #ddd;\n    border-radius: 8px;\n    padding: 20px;\n    margin: 20px 0;\n    background: #f9f9f9;\n    page-break-inside: avoid;\n}\n\n.vulnerability-detail h3 {\n    color: #d32f2f;\n    margin: 0 0 15px 0;\n    padding-bottom: 8px;\n    border-bottom: 2px solid #ddd;\n}\n\n.vuln-severity {\n    margin: 10px 0;\n    font-weight: bold;\n}\n\n.vuln-file {\n    margin: 10px 0;\n    color: #666;\n}\n\n.vuln-section {\n    margin: 15px 0;\n    padding: 10px 0;\n    border-top: 1px solid #eee;\n}\n\n.vuln-section h4 {\n    color: #1976d2;\n    margin: 0 0 8px 0;\n    font-size: 16px;\n}\n\n.vuln-section p {\n    margin: 0;\n    line-height: 1.6;\n    color: #333;\n}\n\n.code-block {\n    background: #f5f5f5;\n    border: 1px solid #ddd;\n    border-radius: 4px;\n    padding: 12px;\n    font-family: 'Courier New', monospace;\n    font-size: 13px;\n    line-height: 1.4;\n    color: #333;\n    overflow-x: auto;\n    white-space: pre-wrap;\n    word-break: break-all;\n    max-height: 300px;\n    overflow-y: auto;\n}\n\n/* Severity badge styles for exports */\n.severity-critical {\n    background: #d32f2f;\n    color: white;\n    padding: 2px 8px;\n    border-radius: 4px;\n    font-size: 12px;\n    font-weight: bold;\n}\n\n.severity-high {\n    background: #f57c00;\n    color: white;\n    padding: 2px 8px;\n    border-radius: 4px;\n    font-size: 12px;\n    font-weight: bold;\n}\n\n.severity-medium {\n    background: #fbc02d;\n    color: #333;\n    padding: 2px 8px;\n    border-radius: 4px;\n    font-size: 12px;\n    font-weight: bold;\n}\n\n.severity-low {\n    background: #388e3c;\n    color: white;\n    padding: 2px 8px;\n    border-radius: 4px;\n    font-size: 12px;\n    font-weight: bold;\n}


/* ===== EXIT WARNING & PAYMENT MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #00ff00;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 255, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.payment-modal {
    max-width: 600px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1) 0%, rgba(0, 255, 0, 0.05) 100%);
    border-bottom: 1px solid #00ff00;
    padding: 20px 24px;
    border-radius: 10px 10px 0 0;
    position: relative;
}

.modal-header h3 {
    color: #00ff00;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 0 10px #00ff00;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #ff4444;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
}

.modal-body {
    padding: 24px;
    color: #ffffff;
}

.modal-body p {
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.payment-info {
    margin-bottom: 20px;
}

.payment-amount-fixed {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    margin: 15px 0;
}

.payment-amount-fixed strong {
    color: #00ff00;
    font-size: 18px;
    text-shadow: 0 0 5px #00ff00;
}

.payment-amount {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.payment-amount label {
    color: #00ff00;
    font-weight: bold;
    min-width: 100px;
}

.payment-amount input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ff00;
    border-radius: 4px;
    padding: 8px 12px;
    color: #ffffff;
    font-family: inherit;
    width: 120px;
}

.payment-qr-container {
    text-align: center;
    padding: 20px 0;
    border: 1px dashed #00ff00;
    border-radius: 8px;
    margin: 20px 0;
}

.qr-code {
    margin: 0 auto 20px auto;
    padding: 15px;
    background: white;
    border-radius: 8px;
    display: inline-block;
}

.payment-text {
    color: #cccccc;
    margin-bottom: 15px;
}

.payment-address {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.payment-address input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ff00;
    border-radius: 4px;
    padding: 8px 12px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    width: 300px;
    text-align: center;
}

.btn-copy {
    background: #00ff00;
    color: #000000;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: #00cc00;
    box-shadow: 0 0 10px #00ff00;
}

.payment-amount-display {
    color: #00ff00;
    font-weight: bold;
    font-size: 16px;
}

.payment-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    border-radius: 8px;
    margin: 20px 0;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background: #ffc107;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-text {
    color: #ffc107;
    font-weight: bold;
}

.modal-actions {
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-primary, .btn-secondary, .btn-danger {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    transition: all 0.2s;
    min-width: 100px;
}

.btn-primary {
    background: #00ff00;
    color: #000000;
}

.btn-primary:hover {
    background: #00cc00;
    box-shadow: 0 0 15px #00ff00;
}

.btn-secondary {
    background: #666666;
    color: #ffffff;
    border: 1px solid #888888;
}

.btn-secondary:hover {
    background: #777777;
}

.btn-danger {
    background: #ff4444;
    color: #ffffff;
}

.btn-danger:hover {
    background: #ff0000;
    box-shadow: 0 0 15px #ff0000;
}


/* Payment troubleshooting buttons */
.btn-warning {
    background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    font-size: 12px;
}

.btn-info {
    background: linear-gradient(135deg, #00ccff 0%, #0099cc 100%);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    font-size: 12px;
}

.btn-secondary {
    background: linear-gradient(135deg, #666666 0%, #444444 100%);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    font-size: 12px;
}

.btn-warning:hover, .btn-info:hover, .btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

/* Stack Console Styles */
.stack-console-content {
    background: #000000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.stack-display {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stack-header {
    background: linear-gradient(90deg, #001100 0%, #003300 50%, #001100 100%);
    padding: 10px 20px;
    border-bottom: 2px solid #00ff00;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
}

.stack-title {
    font-size: 16px;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    letter-spacing: 1px;
}

.stack-status {
    font-size: 12px;
    color: #ffff00;
    background: rgba(255, 255, 0, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ffff00;
    animation: pulse-status 2s infinite;
}

.stack-metrics {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 255, 0, 0.05);
    border-bottom: 1px solid #00ff00;
    padding: 8px;
    gap: 10px;
    flex-wrap: wrap;
}

.metric {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid #004400;
    min-width: 80px;
}

.metric-label {
    font-size: 10px;
    color: #00aa00;
    font-weight: bold;
}

.metric-value {
    font-size: 12px;
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 5px #00ff00;
    min-width: 20px;
}

.stack-console {
    flex: 1;
    background: #000000;
    padding: 10px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
}

.stack-line {
    color: #00ff00;
    margin-bottom: 2px;
    padding: 2px 0;
    border-left: 2px solid transparent;
    padding-left: 10px;
    animation: matrix-text 0.5s ease-in-out;
}

.stack-line.new {
    background: rgba(0, 255, 0, 0.1);
    border-left-color: #00ff00;
    animation: new-line 1s ease-in-out;
}

.stack-line.url {
    color: #00aaff;
    text-shadow: 0 0 5px #00aaff;
}

.stack-line.code {
    color: #ffaa00;
    text-shadow: 0 0 5px #ffaa00;
}

.stack-line.risk {
    color: #ff6600;
    text-shadow: 0 0 5px #ff6600;
}

.stack-line.vulnerability {
    color: #ff0066;
    text-shadow: 0 0 5px #ff0066;
}

.stack-line.critical {
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
    background: rgba(255, 0, 0, 0.1);
    animation: critical-flash 1s ease-in-out;
}

.stack-line.system {
    color: #888888;
}

.stack-line.info {
    color: #00ffff;
}

.stack-line.success {
    color: #00ff00;
    text-shadow: 0 0 8px #00ff00;
}

.stack-line.warning {
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
}

.stack-line.error {
    color: #ff0000;
    text-shadow: 0 0 8px #ff0000;
}

.stack-progress {
    display: inline-block;
    color: #00ff00;
    animation: spin 1s linear infinite;
}

/* Stack Console Animations */
@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes matrix-text {
    0% { opacity: 0; transform: translateY(-5px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes new-line {
    0% { 
        background: rgba(0, 255, 0, 0.3);
        transform: translateX(-10px);
    }
    100% { 
        background: rgba(0, 255, 0, 0.1);
        transform: translateX(0);
    }
}

@keyframes critical-flash {
    0%, 100% { background: rgba(255, 0, 0, 0.1); }
    50% { background: rgba(255, 0, 0, 0.3); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Critical Vulnerabilities Tab Styles */
.vulns-content {
    background: #000000;
    color: #00d4ff;
    font-family: 'Courier New', monospace;
    height: 100%;
    overflow-y: auto;
    padding: 15px;
}

.vulns-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    border-radius: 8px;
}

.vulns-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    min-width: 70px;
}

.stat-item.critical {
    border: 1px solid #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.stat-item.high {
    border: 1px solid #ff6600;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

.stat-item.exploits {
    border: 1px solid #ffff00;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.3);
}

.stat-item.wild {
    border: 1px solid #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-item.critical .stat-number {
    color: #ff0000;
    text-shadow: 0 0 8px #ff0000;
}

.stat-item.high .stat-number {
    color: #ff6600;
    text-shadow: 0 0 8px #ff6600;
}

.stat-item.exploits .stat-number {
    color: #ffff00;
    text-shadow: 0 0 8px #ffff00;
}

.stat-item.wild .stat-number {
    color: #ff00ff;
    text-shadow: 0 0 8px #ff00ff;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.8;
}

.vulns-timestamp {
    color: #888;
    font-size: 12px;
}

.vulns-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vuln-item {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid #00d4ff;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.vuln-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.vuln-item.critical {
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.05);
}

.vuln-item.critical:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.vuln-item.high {
    border-color: #ff6600;
    background: rgba(255, 102, 0, 0.05);
}

.vuln-item.high:hover {
    background: rgba(255, 102, 0, 0.1);
    border-color: #ff6600;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.3);
}

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

.vuln-title {
    font-size: 16px;
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 5px;
}

.vuln-id {
    font-size: 12px;
    color: #888;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.vuln-severity {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    min-width: 70px;
}

.vuln-severity.critical {
    background: #ff0000;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

.vuln-severity.high {
    background: #ff6600;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 102, 0, 0.5);
}

.vuln-severity.medium {
    background: #ffff00;
    color: #000000;
    box-shadow: 0 0 8px rgba(255, 255, 0, 0.5);
}

.vuln-description {
    margin: 10px 0;
    line-height: 1.4;
    color: #cccccc;
}

.vuln-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 10px 0;
    font-size: 12px;
}

.vuln-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vuln-meta-label {
    color: #888;
    text-transform: uppercase;
}

.vuln-meta-value {
    color: #00d4ff;
    font-weight: bold;
}

.vuln-badges {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.vuln-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.vuln-badge.exploit {
    background: #ff4444;
    color: #ffffff;
    animation: pulse-danger 2s infinite;
}

.vuln-badge.wild {
    background: #ff00ff;
    color: #ffffff;
    animation: pulse-danger 1.5s infinite;
}

.vuln-badge.patched {
    background: #00ff88;
    color: #000000;
}

.vuln-mitigations {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 255, 136, 0.1);
    border-left: 3px solid #00ff88;
    border-radius: 4px;
}

.vuln-mitigations h4 {
    color: #00ff88;
    margin: 0 0 8px 0;
    font-size: 12px;
    text-transform: uppercase;
}

.vuln-mitigations ul {
    margin: 0;
    padding-left: 20px;
    color: #cccccc;
    font-size: 12px;
}

.vuln-mitigations li {
    margin-bottom: 4px;
}

.refresh-btn {
    background: #00ff88 !important;
    color: #000000 !important;
    border: 1px solid #00ff88 !important;
}

.refresh-btn:hover {
    background: #00cc6a !important;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5) !important;
}

@keyframes pulse-danger {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.05);
    }
}

.vuln-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #888;
    font-size: 14px;
}

.vuln-loading::before {
    content: "🔍";
    margin-right: 10px;
    animation: spin 2s linear infinite;
}

/* Webhook Management Styles */
.webhook-management {
    padding: 20px;
    color: #00d4ff;
    font-family: 'Courier New', monospace;
}

.webhook-section {
    margin-bottom: 30px;
    border: 1px solid #00d4ff;
    border-radius: 8px;
    padding: 20px;
    background: rgba(0, 212, 255, 0.05);
}

.webhook-section h3 {
    color: #00ff88;
    margin: 0 0 15px 0;
    font-size: 18px;
    text-shadow: 0 0 8px #00ff88;
}

.webhook-config {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.config-item label {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
}

.config-item code {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00d4ff;
    border-radius: 4px;
    padding: 8px;
    color: #00ff88;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.code-example {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00d4ff;
    border-radius: 8px;
    padding: 20px;
    color: #00ff88;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.4;
    margin: 0;
}

.webhook-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    align-items: end;
}

.webhook-form input {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00d4ff;
    border-radius: 4px;
    padding: 10px;
    color: #00d4ff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.webhook-form input:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.webhook-form input::placeholder {
    color: #666;
}

.btn-primary {
    background: #00ff88 !important;
    color: #000000 !important;
    border: 1px solid #00ff88 !important;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: #00cc6a !important;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.webhooks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.webhook-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00d4ff;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.webhook-item:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.webhook-item.success {
    border-color: #00ff88;
}

.webhook-item.failed {
    border-color: #ff0000;
}

.webhook-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.webhook-info h4 {
    color: #00ff88;
    margin: 0 0 5px 0;
    font-size: 16px;
}

.webhook-url {
    color: #888;
    font-size: 12px;
    font-family: monospace;
    margin: 0;
    word-break: break-all;
}

.webhook-desc {
    color: #ccc;
    font-size: 12px;
    margin: 5px 0 0 0;
    font-style: italic;
}

.webhook-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.success {
    background: #00ff88;
    color: #000000;
}

.status-badge.failed {
    background: #ff0000;
    color: #ffffff;
}

.status-badge.pending {
    background: #ffff00;
    color: #000000;
}

.webhook-active {
    font-size: 12px;
}

.webhook-active.active {
    color: #00ff88;
}

.webhook-active.inactive {
    color: #ff0000;
}

.webhook-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
    font-size: 12px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-item label {
    color: #888;
    text-transform: uppercase;
}

.meta-item span {
    color: #00d4ff;
    font-weight: bold;
}

.webhook-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-test {
    background: #ffff00;
    color: #000000;
    border: 1px solid #ffff00;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: bold;
}

.btn-test:hover {
    background: #cccc00;
    box-shadow: 0 0 8px rgba(255, 255, 0, 0.5);
}

.btn-danger {
    background: #ff0000;
    color: #ffffff;
    border: 1px solid #ff0000;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: bold;
}

.btn-danger:hover {
    background: #cc0000;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

.security-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    font-size: 12px;
}

.security-info p {
    margin: 5px 0;
    color: #ccc;
}

.security-info code {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #888;
    border-radius: 3px;
    padding: 2px 4px;
    color: #00ff88;
    font-size: 11px;
}


/* ===== PUBLIC FEED MODAL STYLES ===== */
.public-feed-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #ff6b00;
    border-radius: 12px;
    max-width: 1200px;
    max-height: 90vh;
    margin: 20px auto;
    box-shadow: 0 10px 50px rgba(255, 107, 0, 0.3);
    overflow: hidden;
}

.public-feed-modal-content .modal-header {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-bottom: 2px solid #ff6b00;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.public-feed-modal-content .modal-header h3 {
    color: #ff6b00;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
    margin: 0;
}

.public-feed-modal-content .modal-close {
    background: #ff0000;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.public-feed-modal-content .modal-close:hover {
    background: #cc0000;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.public-feed-modal-content .modal-body {
    padding: 0;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.public-feed-modal-content .content-toolbar {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #ff6b00;
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.public-feed-modal-content .vulns-content {
    padding: 20px;
}

/* ===== DRAGGABLE TABS STYLES ===== */
.tab-drag-handle {
    color: rgba(0, 255, 0, 0.3);
    font-size: 12px;
    margin-right: 5px;
    cursor: grab;
    transition: all 0.3s ease;
    user-select: none;
}

.tab-drag-handle:hover {
    color: rgba(0, 255, 0, 0.7);
    transform: scale(1.2);
}

.draggable-tab.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
}

.tab-bar {
    position: relative;
}

.tab-drop-indicator {
    position: absolute;
    width: 3px;
    height: 100%;
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 999;
}

.tab-drop-indicator.show {
    opacity: 1;
}

/* ===== MATRIX VIEW STYLES ===== */
.matrix-view {
    background: linear-gradient(135deg, #000000 0%, #001100 50%, #002200 100%);
    position: relative;
    overflow: hidden;
}

.matrix-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.matrix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 2px solid #00ff00;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.matrix-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
}

.matrix-logo {
    font-size: 24px;
    margin-right: 10px;
    animation: matrixPulse 2s infinite;
}

@keyframes matrixPulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 20px #00ff00;
    }
    50% { 
        transform: scale(1.1);
        text-shadow: 0 0 30px #00ff00, 0 0 40px #00ff88;
    }
}

.matrix-stats {
    display: flex;
    gap: 20px;
}

.matrix-stat {
    text-align: center;
}

.matrix-stat-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
}

.matrix-stat-label {
    display: block;
    font-size: 10px;
    color: #00cc00;
    margin-top: 2px;
}

.matrix-canvas {
    flex: 1;
    background: radial-gradient(circle at center, rgba(0, 255, 0, 0.05) 0%, rgba(0, 0, 0, 0.7) 100%);
    border: 1px solid rgba(0, 255, 0, 0.2);
    position: relative;
    z-index: 1;
}

.matrix-console {
    height: 120px;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid #00ff00;
    padding: 10px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.matrix-line {
    color: #00ff88;
    margin-bottom: 3px;
    text-shadow: 0 0 5px #00ff88;
    animation: matrixFlicker 3s infinite;
}

@keyframes matrixFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== FLOW VIEW STYLES ===== */
.flow-view {
    background: linear-gradient(135deg, rgba(0, 4, 40, 0.3) 0%, rgba(0, 78, 146, 0.3) 100%);
    position: relative;
}

.flow-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.flow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 2px solid #00aaff;
    background: rgba(0, 0, 0, 0.8);
}

.flow-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: #00aaff;
    text-shadow: 0 0 20px #00aaff;
}

.flow-logo {
    font-size: 24px;
    margin-right: 10px;
    animation: flowWave 3s ease-in-out infinite;
}

@keyframes flowWave {
    0%, 100% { 
        transform: scaleX(1);
        color: #00aaff;
    }
    50% { 
        transform: scaleX(1.2);
        color: #0088cc;
    }
}

.flow-controls {
    display: flex;
    gap: 10px;
}

.flow-control-btn {
    background: rgba(0, 170, 255, 0.2);
    border: 1px solid #00aaff;
    color: #00aaff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.flow-control-btn:hover {
    background: rgba(0, 170, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
    transform: scale(1.05);
}

.flow-visualization {
    flex: 1;
    position: relative;
    overflow: auto;
    min-height: 600px;
}

.flow-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.flow-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.flow-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00aaff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00aaff;
    animation: flowParticle 5s linear infinite;
}

@keyframes flowParticle {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    20% {
        opacity: 1;
        transform: scale(1);
    }
    80% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

.flow-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(0, 170, 255, 0.3);
}

.flow-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #cccccc;
}

.flow-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.flow-legend-color.security { background: #00ff00; box-shadow: 0 0 8px #00ff00; }
.flow-legend-color.vulnerability { background: #ff0000; box-shadow: 0 0 8px #ff0000; }
.flow-legend-color.code { background: #ffaa00; box-shadow: 0 0 8px #ffaa00; }
.flow-legend-color.risk { background: #ff00ff; box-shadow: 0 0 8px #ff00ff; }

.flow-console {
    height: 100px;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid #00aaff;
    padding: 10px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.flow-line {
    color: #00ccff;
    margin-bottom: 3px;
    text-shadow: 0 0 5px #00ccff;
    animation: flowGlow 4s ease-in-out infinite;
}

@keyframes flowGlow {
    0%, 100% { 
        color: #00ccff;
        text-shadow: 0 0 5px #00ccff;
    }
    50% { 
        color: #0088aa;
        text-shadow: 0 0 8px #0088aa;
    }
}

/* Stack View Switching */
.stack-view {
    display: none;
}

.stack-view.active {
    display: block;
}


/* ===== PUBLIC FEED SEARCH STYLES ===== */
.feed-search-container {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 107, 0, 0.3);
}

.search-box {
    position: relative;
    margin-bottom: 15px;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 107, 0, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-box input:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.5);
    background: rgba(0, 0, 0, 0.8);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.clear-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 0, 0, 0.3);
    border: none;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.clear-search-btn:hover {
    background: rgba(255, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.clear-search-btn.show {
    display: flex;
}

.search-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 107, 0, 0.3);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
}

.filter-select option {
    background: #1a1a1a;
    color: #ffffff;
}

.advanced-toggle {
    background: rgba(255, 107, 0, 0.2);
    border: 1px solid #ff6b00;
    color: #ff6b00;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    transition: all 0.3s ease;
}

.advanced-toggle:hover {
    background: rgba(255, 107, 0, 0.4);
    transform: scale(1.05);
}

.advanced-toggle.active {
    background: rgba(255, 107, 0, 0.6);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
}

.advanced-search-panel {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 107, 0, 0.2);
    border-top: 1px solid rgba(255, 107, 0, 0.2);
}

.advanced-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.advanced-search-row:last-child {
    margin-bottom: 0;
    justify-content: space-between;
}

.advanced-search-row label {
    color: #ff6b00;
    font-weight: bold;
    font-size: 12px;
    min-width: 80px;
}

.date-input, .range-input {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 107, 0, 0.3);
    color: #ffffff;
    padding: 6px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.date-input:focus, .range-input:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.3);
}

.range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: rgba(255, 107, 0, 0.3);
    border-radius: 2px;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #ff6b00;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.5);
}

.range-input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #ff6b00;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.5);
}

.reset-btn {
    background: rgba(100, 100, 100, 0.3);
    border: 1px solid #666666;
    color: #cccccc;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: rgba(150, 150, 150, 0.4);
    color: #ffffff;
    transform: scale(1.05);
}

.search-results-count {
    color: #00ff88;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
}

.search-results-count span {
    color: #ff6b00;
    font-size: 14px;
}

/* Search highlight styles */
.search-highlight {
    background: rgba(255, 107, 0, 0.3);
    color: #ffffff;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

.vuln-item.search-match {
    border-left: 4px solid #ff6b00;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
}

.vuln-item.search-hidden {
    display: none !important;
}

/* No results message */
.search-no-results {
    text-align: center;
    color: #cccccc;
    font-style: italic;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin: 20px;
}

.search-no-results .no-results-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.search-no-results .no-results-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.search-no-results .no-results-suggestion {
    font-size: 12px;
    opacity: 0.7;
}

/* ===== HACKER STACK VISUALIZER ===== */
.stacks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.stack-container {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 40, 0.8) 100%);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stack-container:hover {
    border-color: #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    transform: translateY(-2px);
}

.stack-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    animation: stackScan 2s infinite;
}

@keyframes stackScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.stack-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #00ff00;
}

.stack-name {
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    font-size: 12px;
}

.stack-count {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    border: 1px solid #00ff00;
    animation: countPulse 1s infinite;
}

@keyframes countPulse {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
    }
}

.stack-box {
    min-height: 120px;
    max-height: 120px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 5px;
    position: relative;
    display: flex;
    flex-direction: column-reverse;
}

.stack-box::-webkit-scrollbar {
    width: 4px;
}

.stack-box::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.stack-box::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 2px;
}

.stack-empty {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 40px 10px;
    opacity: 0.5;
    animation: emptyPulse 3s infinite;
}

@keyframes emptyPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.stack-item {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1) 0%, rgba(0, 255, 65, 0.1) 100%);
    border: 1px solid #00ff00;
    border-radius: 3px;
    padding: 4px 6px;
    margin: 1px 0;
    font-size: 10px;
    color: #00ff00;
    text-shadow: 0 0 3px #00ff00;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    animation: stackItemAppear 0.5s ease-out;
    cursor: pointer;
}

.stack-item:hover {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2) 0%, rgba(0, 255, 65, 0.2) 100%);
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.stack-item::before {
    content: '▶';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ff00;
    font-size: 8px;
    transition: left 0.3s ease;
}

.stack-item:hover::before {
    left: 2px;
}

@keyframes stackItemAppear {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.8);
        filter: blur(2px);
    }
    50% {
        transform: translateX(5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

.stack-item.removing {
    animation: stackItemRemove 0.3s ease-in forwards;
}

@keyframes stackItemRemove {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(20px) scale(0.8);
        filter: blur(2px);
    }
}

.stack-operations {
    margin-top: 8px;
    min-height: 20px;
    font-size: 10px;
    color: #666;
    text-align: center;
    animation: opPulse 2s infinite;
}

@keyframes opPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.stack-operation {
    color: #ff6b00;
    text-shadow: 0 0 3px #ff6b00;
    animation: opFlash 0.5s ease-out;
}

@keyframes opFlash {
    0% { 
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Stack item type colors */
.stack-item.url-item {
    border-color: #00bfff;
    color: #00bfff;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1) 0%, rgba(0, 191, 255, 0.15) 100%);
}

.stack-item.code-item {
    border-color: #ff6b00;
    color: #ff6b00;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 107, 0, 0.15) 100%);
}

.stack-item.risk-item {
    border-color: #ffff00;
    color: #ffff00;
    background: linear-gradient(135deg, rgba(255, 255, 0, 0.1) 0%, rgba(255, 255, 0, 0.15) 100%);
}

.stack-item.vuln-item {
    border-color: #ff4444;
    color: #ff4444;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(255, 68, 68, 0.15) 100%);
}

.stack-item.critical-item {
    border-color: #ff0000;
    color: #ff0000;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(255, 0, 0, 0.15) 100%);
    animation: criticalPulse 1s infinite;
}

@keyframes criticalPulse {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
        transform: scale(1.02);
    }
}

.stack-item.advanced-item {
    border-color: #9400d3;
    color: #9400d3;
    background: linear-gradient(135deg, rgba(148, 0, 211, 0.1) 0%, rgba(148, 0, 211, 0.15) 100%);
}

/* ===== 2D STACK TABLE STYLES ===== */
.stack-table-container {
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid #333;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.stack-table-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.stack-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.stack-table thead {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 40, 0.9) 100%);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.stack-header {
    padding: 8px 10px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #00ff00;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1) 0%, rgba(0, 255, 0, 0.05) 100%);
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    position: relative;
    min-width: 120px;
}

.stack-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    animation: headerScan 3s infinite;
}

@keyframes headerScan {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.urls-header {
    border-color: #00bfff;
    color: #00bfff;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1) 0%, rgba(0, 191, 255, 0.05) 100%);
}

.urls-header::after {
    background: linear-gradient(90deg, transparent, #00bfff, transparent);
}

.code-header {
    border-color: #ff6b00;
    color: #ff6b00;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 107, 0, 0.05) 100%);
}

.code-header::after {
    background: linear-gradient(90deg, transparent, #ff6b00, transparent);
}

.risk-header {
    border-color: #ffff00;
    color: #ffff00;
    background: linear-gradient(135deg, rgba(255, 255, 0, 0.1) 0%, rgba(255, 255, 0, 0.05) 100%);
}

.risk-header::after {
    background: linear-gradient(90deg, transparent, #ffff00, transparent);
}

.vulns-header {
    border-color: #ff4444;
    color: #ff4444;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(255, 68, 68, 0.05) 100%);
}

.vulns-header::after {
    background: linear-gradient(90deg, transparent, #ff4444, transparent);
}

.critical-header {
    border-color: #ff0000;
    color: #ff0000;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(255, 0, 0, 0.05) 100%);
    animation: criticalHeaderPulse 1s infinite;
}

@keyframes criticalHeaderPulse {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
    }
    50% { 
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    }
}

.critical-header::after {
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
}

.advanced-header {
    border-color: #9400d3;
    color: #9400d3;
    background: linear-gradient(135deg, rgba(148, 0, 211, 0.1) 0%, rgba(148, 0, 211, 0.05) 100%);
}

.advanced-header::after {
    background: linear-gradient(90deg, transparent, #9400d3, transparent);
}

.stack-table tbody tr {
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.stack-table tbody tr:hover {
    background: rgba(0, 255, 0, 0.05);
    border-color: #00ff00;
}

.stack-table td {
    padding: 8px 10px;
    border: 1px solid #333;
    text-align: center;
    vertical-align: middle;
    background: rgba(0, 0, 0, 0.2);
    color: #ccc;
    position: relative;
    min-height: 35px;
    max-width: 150px;
    overflow: hidden;
}

.stack-table-cell {
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.stack-table-cell:hover {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    transform: scale(1.05);
    z-index: 5;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.empty-table-row {
    opacity: 0.5;
    font-style: italic;
}

.empty-table-cell {
    text-align: center;
    padding: 40px 20px !important;
    color: #666;
    background: rgba(0, 0, 0, 0.5) !important;
    animation: emptyTablePulse 3s infinite;
}

@keyframes emptyTablePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Stack cell types */
.stack-cell-urls {
    background: rgba(0, 191, 255, 0.1);
    color: #00bfff;
    border-color: #00bfff;
}

.stack-cell-code {
    background: rgba(255, 107, 0, 0.1);
    color: #ff6b00;
    border-color: #ff6b00;
}

.stack-cell-risk {
    background: rgba(255, 255, 0, 0.1);
    color: #ffff00;
    border-color: #ffff00;
}

.stack-cell-vulns {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border-color: #ff4444;
}

.stack-cell-critical {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border-color: #ff0000;
    animation: criticalCellPulse 1s infinite;
}

@keyframes criticalCellPulse {
    0%, 100% { 
        box-shadow: 0 0 3px rgba(255, 0, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
        transform: scale(1.02);
    }
}

.stack-cell-advanced {
    background: rgba(148, 0, 211, 0.1);
    color: #9400d3;
    border-color: #9400d3;
}

/* Add/Remove animations */
.stack-cell-adding {
    animation: stackCellAdd 0.5s ease-out;
}

@keyframes stackCellAdd {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateY(180deg);
        filter: blur(3px);
    }
    50% {
        transform: scale(1.1) rotateY(90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
        filter: blur(0);
    }
}

.stack-cell-removing {
    animation: stackCellRemove 0.3s ease-in forwards;
}

/* Stack cell content styling */
.stack-cell-content {
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 6px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stack-cell-content:hover {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    transform: scale(1.05);
    z-index: 5;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    max-width: none;
    white-space: normal;
    word-wrap: break-word;
}

.stack-cell-empty {
    font-size: 10px;
    color: #555;
    font-style: italic;
    padding: 4px;
    opacity: 0.5;
}

/* New item animation */
.cell-add-animation {
    animation: cellAddGlow 1s ease-out;
}

@keyframes cellAddGlow {
    0% {
        background: rgba(0, 255, 136, 0.8);
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    }
    50% {
        background: rgba(0, 255, 136, 0.4);
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
    }
    100% {
        background: rgba(0, 0, 0, 0.3);
        transform: scale(1);
        box-shadow: none;
    }
}

@keyframes stackCellRemove {
    0% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotateY(-180deg);
        filter: blur(3px);
    }
}

/* ===== PIPELINE FLOW VISUALIZATION ===== */
.pipeline-diagram {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 20px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid #333;
    min-height: 600px;
    height: auto;
    position: relative;
    overflow: visible;
}

/* Diagram Node Styles */
.diagram-node {
    background: rgba(0, 20, 40, 0.4);
    border: 2px solid #444;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.diagram-node:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: scale(1.02);
}

.node-header {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 4px;
}

.node-title {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
}

.node-box {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(20, 20, 40, 0.6) 100%);
    border: 1px solid #555;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.node-box.active {
    border-color: #00ff88;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
    animation: nodeBoxPulse 2s infinite;
}

@keyframes nodeBoxPulse {
    0%, 100% { 
        box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
    }
    50% { 
        box-shadow: 0 0 16px rgba(0, 255, 136, 0.6);
    }
}

.node-box.critical {
    border-color: #ff4444;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(255, 68, 68, 0.05) 100%);
    animation: nodeCriticalPulse 1.5s infinite;
}

@keyframes nodeCriticalPulse {
    0%, 100% { 
        box-shadow: 0 0 8px rgba(255, 68, 68, 0.4);
    }
    50% { 
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.7);
    }
}

.node-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.node-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.node-label {
    font-size: 10px;
    color: #ccc;
    margin-bottom: 2px;
    font-family: 'Courier New', monospace;
}

.node-count {
    font-size: 16px;
    font-weight: bold;
    color: #00ff88;
    font-family: 'Courier New', monospace;
}

.node-status {
    font-size: 8px;
    color: #888;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    flex-shrink: 0;
}

.node-status.active {
    color: #00ff88;
    animation: nodeStatusBlink 1s infinite;
}

@keyframes nodeStatusBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* Flow Connection Styles */
.flow-connection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 1;
}

.arrow-down,
.arrow-left,
.arrow-right {
    font-size: 16px;
    color: #00d4ff;
    font-weight: bold;
    animation: arrowFlow 2s infinite;
}

@keyframes arrowFlow {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
    }
}

.flow-status {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #555;
    border-radius: 4px;
    color: #888;
}

.flow-status.active {
    color: #00ff88;
    border-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.pipeline-console {
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
    max-height: 120px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pipeline-console::-webkit-scrollbar {
    display: none;
}

.pipeline-line {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #00d4ff;
    margin-bottom: 4px;
    opacity: 0.8;
}

.pipeline-line:last-child {
    margin-bottom: 0;
}

/* ===== CLEAR STACK ITEM STYLES ===== */
.stack-item-clear {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #444;
    border-radius: 4px;
    padding: 8px 10px;
    margin: 4px 0;
    color: #fff;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.stack-item-clear:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    color: #00ff88;
    transform: translateX(2px);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.stack-empty-clear {
    background: rgba(50, 50, 50, 0.3);
    border: 1px dashed #666;
    border-radius: 4px;
    padding: 12px;
    color: #888;
    font-size: 12px;
    text-align: center;
    font-style: italic;
}

.stack-operation-clear {
    color: #00d4ff;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    background: rgba(0, 212, 255, 0.1);
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* ===== SIMPLIFIED MATRIX STYLES ===== */
.simple-stack-row {
    border: 1px solid #444;
    transition: all 0.2s ease;
}

.simple-stack-row:hover {
    background: rgba(0, 255, 0, 0.03);
    border-color: #00ff00;
}

.simple-stack-cell {
    padding: 4px;
    border: 1px solid #333;
    text-align: center;
    vertical-align: middle;
    background: rgba(0, 0, 0, 0.1);
    min-height: 30px;
    max-width: 100px;
}

.simple-cell-content {
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 6px;
    border-radius: 3px;
    color: #ccc;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    word-wrap: break-word;
    line-height: 1.2;
}

.simple-cell-content:hover {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border-color: #00ff88;
    transform: scale(1.05);
    z-index: 5;
    font-weight: bold;
}

.simple-cell-empty {
    font-size: 10px;
    color: #555;
    opacity: 0.5;
    padding: 4px;
}

.simple-cell-add {
    animation: simpleCellGlow 0.8s ease-out;
}

@keyframes simpleCellGlow {
    0% {
        background: rgba(0, 255, 136, 0.8);
        color: #000;
        transform: scale(1.3);
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    }
    50% {
        background: rgba(0, 255, 136, 0.4);
        transform: scale(1.1);
    }
    100% {
        background: rgba(0, 0, 0, 0.2);
        color: #ccc;
        transform: scale(1);
        box-shadow: none;
    }
}

/* ===== VIEW ACTION BUTTONS ===== */
.view-actions {
    display: flex;
    gap: 4px;
    margin: 0 10px;
}

.action-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #555;
    border-radius: 4px;
    color: #00d4ff;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    min-width: 35px;
}

.action-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #fff;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
    transform: scale(1.05);
}

.action-btn:active {
    transform: scale(0.95);
    background: rgba(0, 212, 255, 0.3);
}

/* Visualization Size States */
.stack-console-content.enlarged {
    transform: scale(1.2);
    transform-origin: center;
    z-index: 100;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.stack-console-content.shrunk {
    transform: scale(0.8);
    transform-origin: center;
    opacity: 0.9;
}

/* ===== MODAL ACTION BUTTONS ===== */
.modal-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.modal-action-btn {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid #00d4ff;
    border-radius: 4px;
    color: #00d4ff;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-action-btn:hover {
    background: rgba(0, 212, 255, 0.4);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.modal-action-btn:active {
    transform: scale(0.95);
    background: rgba(0, 212, 255, 0.6);
}

