:root {
    --bg-dark: #11131f;
    --bg-card: #1a1d2d;
    --bg-card-hover: #22253a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-primary: #e63946;
    --accent-hover: #ff4d5a;
    --border-color: #2a2d3d;
    --success: #2ecc71;
    --warning: #f1c40f;
    --danger: #e74c3c;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-nav {
    background-color: rgba(17, 19, 31, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 8px;
    color: var(--accent-primary);
}

.logo-icon svg {
    width: 20px;
    height: 20px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn--primary {
    background-color: var(--accent-primary);
    color: white;
}

.btn--primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.main-content {
    flex: 1;
    width: 100%;
}

/* Typography & Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    line-height: 1.2;
}

.text-muted {
    color: var(--text-secondary);
}

/* Components */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge--critical {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.badge--high {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.badge--medium {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.badge--low {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.pill {
    padding: 0.375rem 0.875rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.pill--success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.empty-state {
    text-align: center;
    padding: 2rem;
}

.empty-cell {
    text-align: center;
    padding: 2rem !important;
}


/* Home Page Styles */
.home-container {
    padding-bottom: 4rem;
}

.hero-section {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    will-change: transform;
    opacity: 0.25;
    animation: float 25s ease-in-out infinite;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.3) 0%, transparent 70%);
    top: -200px;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.25) 0%, transparent 70%);
    bottom: -150px;
    right: 15%;
    animation-delay: -8s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -16s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20px, -20px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 99px;
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-title .title-main {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .title-accent {
    display: block;
    font-size: 0.5em;
    font-weight: 600;
    color: var(--accent-primary);
    margin-top: 0.5rem;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.safety-notice {
    max-width: 700px;
    margin: 0 auto 2rem;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    animation: fadeInUp 0.6s ease-out 0.25s both;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.safety-notice:hover {
    background: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.15);
}

.safety-notice-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 204, 113, 0.2);
    border-radius: 12px;
    color: var(--success);
}

.safety-notice-icon svg {
    width: 24px;
    height: 24px;
}

.safety-notice-content {
    flex: 1;
}

.safety-notice-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.safety-notice-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.safety-notice-text strong {
    color: var(--success);
    font-weight: 600;
}

.upload-area {
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.dropzone {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    padding: 3rem 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: block;
    backdrop-filter: blur(10px);
}

.dropzone:hover {
    border-color: var(--accent-primary);
    background: rgba(230, 57, 70, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(230, 57, 70, 0.15);
}

.dropzone.scanning {
    cursor: wait;
    opacity: 0.9;
    border-color: var(--accent-primary);
    background: rgba(230, 57, 70, 0.1);
}


.dropzone input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropzone-content {
    position: relative;
    z-index: 1;
}

.upload-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scanning-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.icon-upload {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    transition: transform 0.3s;
}

.dropzone:hover .icon-upload {
    transform: translateY(-4px);
}

.icon-upload svg {
    width: 56px;
    height: 56px;
}

.text-upload {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 500;
}

.text-upload strong {
    font-weight: 700;
    color: var(--accent-primary);
}

.file-types {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.file-type-badge {
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: monospace;
}

.scanning-text {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
}

.scanning-text strong {
    color: var(--accent-primary);
}

.scanning-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.error-message {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    animation: shake 0.5s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Section */
.dashboard-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.icon-blue {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.icon-red {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.icon-orange {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

.icon-purple {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

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

.stat-info .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Results Panel */
.results-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.panel-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: rgba(0, 0, 0, 0.2);
}

.panel-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.panel-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.panel-header-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.625rem 1rem;
    gap: 0.75rem;
    transition: all 0.2s;
}

.search-box:focus-within {
    border-color: var(--accent-primary);
    background: rgba(230, 57, 70, 0.05);
}

.search-box svg {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-clear {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.search-clear:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.filter-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-badge {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-badge:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.filter-badge.active {
    background: rgba(230, 57, 70, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.view-controls {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.25rem;
    border-radius: 8px;
}

.btn-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-toggle:hover {
    color: var(--text-primary);
}

.btn-toggle.active {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Table */
.table-container {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.results-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.severity-col {
    width: 120px;
    min-width: 120px;
}

.rule-col {
    width: 200px;
    min-width: 200px;
}

.description-col {
    min-width: 300px;
}

.location-col {
    width: 250px;
    min-width: 200px;
}

.results-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: top;
}

.results-table tr:last-child td {
    border-bottom: none;
}

.results-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.finding-row {
    transition: background-color 0.2s;
}

.finding-row.expanded {
    background: rgba(255, 255, 255, 0.02);
}

.finding-desc-main {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.rule-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.rule-explanation {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    padding: 0.5rem;
    background: rgba(230, 57, 70, 0.05);
    border-left: 2px solid var(--accent-primary);
    border-radius: 4px;
}

.extracted-urls {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.urls-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.urls-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.url-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 6px;
    transition: all 0.2s;
    word-break: break-all;
    font-family: monospace;
}

.url-link:hover {
    background: rgba(230, 57, 70, 0.2);
    border-color: var(--accent-primary);
    transform: translateX(2px);
}

.url-link svg {
    flex-shrink: 0;
}

.url-link span {
    word-break: break-all;
}

.combination-signals,
.combination-signals-card {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 6px;
}

.combination-signals-card {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.combination-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.combination-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.signal-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.25);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #e74c3c;
    white-space: nowrap;
}

.code-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s;
}

.code-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.code-toggle svg {
    transition: transform 0.2s;
}

.code-toggle svg.expanded {
    transform: rotate(180deg);
}

.code-snippet-expanded {
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.code-snippet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.code-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.code-copy:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.code-snippet-expanded pre {
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.2);
}

.code-snippet-expanded code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #a0a0b0;
    white-space: pre;
    line-height: 1.5;
}

.location-cell {
    font-family: monospace;
    font-size: 0.85rem;
}

.location-text {
    display: inline-block;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rule-explanation-inline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 0.5rem;
    background: rgba(230, 57, 70, 0.05);
    border-left: 2px solid var(--accent-primary);
    border-radius: 4px;
}

.mod-name {
    display: flex;
    flex-direction: column;
}

.mod-name strong {
    color: var(--text-primary);
    font-weight: 500;
}

.mod-name .alias {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.btn-view {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.btn-view:hover {
    background: rgba(52, 152, 219, 0.2);
}

.finding-desc {
    color: var(--text-primary);
    line-height: 1.5;
}

.code-snippet {
    display: block;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #a0a0b0;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Cards View */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.finding-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.finding-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-primary);
}

.finding-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rule-name-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #3498db;
}

.rule-explanation-card {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(230, 57, 70, 0.05);
    border-left: 3px solid var(--accent-primary);
    border-radius: 6px;
}

.rule-explanation-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.rule-explanation-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.extracted-urls-card {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.extracted-urls-card .urls-label {
    margin-bottom: 0.75rem;
}

.extracted-urls-card .urls-list {
    gap: 0.625rem;
}

.extracted-urls-card .url-link {
    font-size: 0.8rem;
}


.finding-card .description {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.code-block pre {
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #a0a0b0;
    white-space: pre;
    line-height: 1.5;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .panel-header {
        padding: 1rem;
    }

    .panel-header-right {
        gap: 0.75rem;
    }

    .search-box {
        padding: 0.5rem 0.75rem;
    }

    .filter-badges {
        gap: 0.375rem;
    }

    .filter-badge {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .view-controls {
        width: 100%;
        justify-content: stretch;
    }

    .btn-toggle {
        flex: 1;
        justify-content: center;
    }

    .location-text {
        max-width: 150px;
    }

    .finding-card .location {
        max-width: 120px;
    }

    .results-table th,
    .results-table td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .severity-col,
    .rule-col,
    .location-col {
        width: auto;
        min-width: auto;
    }

    .rule-col {
        display: none;
    }

    .rule-name-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .rule-explanation-card,
    .extracted-urls-card {
        padding: 0.625rem 0.75rem;
    }

    .rule-explanation-text {
        font-size: 0.8rem;
    }

    .combination-signals,
    .combination-signals-card {
        padding: 0.625rem 0.75rem;
    }

    .signal-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .panel-title {
        font-size: 1.25rem;
    }

    .filter-badge {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }

    .results-table th,
    .results-table td {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .finding-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (min-width: 769px) {
    .panel-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .panel-header-right {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .search-box {
        min-width: 250px;
    }

    .hero-section {
        padding: 4rem 1.5rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title .title-accent {
        font-size: 0.6em;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .dropzone {
        padding: 2rem 1.5rem;
    }

    .icon-upload svg {
        width: 40px;
        height: 40px;
    }

    .text-upload {
        font-size: 1rem;
    }

    .file-types {
        gap: 0.375rem;
    }

    .file-type-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .orb-1,
    .orb-2,
    .orb-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .dropzone {
        padding: 1.5rem 1rem;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(26, 29, 45, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: bounce 2s infinite;
}

.scroll-indicator:hover {
    background: rgba(34, 37, 58, 0.95);
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
    animation: pulse 1.5s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 1.5rem;
        padding: 0.75rem 1.25rem;
    }

    .scroll-indicator svg {
        width: 20px;
        height: 20px;
    }

    .scroll-indicator span {
        font-size: 0.75rem;
    }
}