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

:root {
    --primary-color: #0066cc;
    --secondary-color: #00a3e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --critical-color: #8b0000;
    --dark-bg: #0a0e27;
    --card-bg: #151b3d;
    --header-bg: #0f1429;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --border-color: #2d3748;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--header-bg);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1800px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

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

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item:hover {
    background: var(--card-bg);
    color: var(--primary-color);
}

.nav-item.active {
    background: var(--primary-color);
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.user-info i {
    font-size: 2rem;
}

/* Main Container */
.main-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s;
}

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

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

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.stat-card.warning {
    border-left-color: var(--warning-color);
}

.stat-card.info {
    border-left-color: var(--secondary-color);
}

.stat-card.success {
    border-left-color: var(--success-color);
}

.stat-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.stat-card.critical .stat-icon { color: var(--critical-color); }
.stat-card.warning .stat-icon { color: var(--warning-color); }
.stat-card.info .stat-icon { color: var(--secondary-color); }
.stat-card.success .stat-icon { color: var(--success-color); }

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Dashboard Row */
.dashboard-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Card Styles */
.chart-card, .activity-card, .map-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.card-content {
    padding: 1.5rem;
}

/* Activity Feed */
.activity-feed {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    animation: slideIn 0.5s;
}

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

.activity-icon {
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.2);
}

.activity-icon.critical { color: var(--critical-color); background: rgba(139, 0, 0, 0.2); }
.activity-icon.high { color: var(--danger-color); background: rgba(220, 53, 69, 0.2); }
.activity-icon.medium { color: var(--warning-color); background: rgba(255, 193, 7, 0.2); }
.activity-icon.success { color: var(--success-color); background: rgba(40, 167, 69, 0.2); }

.activity-content h4 {
    margin-bottom: 0.25rem;
}

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

/* Threat Map */
#threat-map {
    height: 400px;
    background: radial-gradient(circle at center, #1a1f3a 0%, #0a0e27 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.map-marker {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--danger-color);
    border-radius: 50%;
    animation: ping 2s infinite;
    cursor: pointer;
}

@keyframes ping {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2rem;
}

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

.filter-select {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Alerts List */
.alerts-list, .threats-list, .incidents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item, .threat-item, .incident-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.alert-item:hover, .threat-item:hover, .incident-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.threat-item {
    cursor: pointer;
}

.incident-item {
    cursor: pointer;
}

.alert-item.critical, .incident-item.critical { border-left-color: var(--critical-color); }
.alert-item.high, .incident-item.high { border-left-color: var(--danger-color); }
.alert-item.medium, .incident-item.medium { border-left-color: var(--warning-color); }
.alert-item.low { border-left-color: var(--secondary-color); }

.alert-header, .threat-header, .incident-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.alert-title, .threat-title, .incident-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.critical { background: var(--critical-color); }
.badge.high { background: var(--danger-color); }
.badge.medium { background: var(--warning-color); color: #000; }
.badge.low { background: var(--secondary-color); }
.badge.active { background: var(--danger-color); }
.badge.investigating { background: var(--warning-color); color: #000; }
.badge.resolved { background: var(--success-color); }
.badge.contained { background: var(--primary-color); }
.badge.mitigating { background: var(--warning-color); color: #000; }
.badge.blocked { background: var(--success-color); }

.alert-meta, .threat-meta, .incident-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-description {
    margin-top: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.alert-indicators {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.indicator-tag {
    background: rgba(0, 102, 204, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* Playbooks Grid */
.playbooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.playbook-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.playbook-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.playbook-header h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.playbook-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 1rem 0;
}

.playbook-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.playbook-stat {
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.playbook-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-color);
}

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

.playbook-triggers {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.trigger-tag {
    background: rgba(40, 167, 69, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--success-color);
}

/* Playbook Action Buttons */
.playbook-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.playbook-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.playbook-btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.playbook-btn-secondary {
    background: var(--text-secondary);
    color: white;
}

.playbook-btn-secondary:hover {
    background: #718096;
    transform: translateY(-2px);
}

/* Playbook Steps */
.playbook-steps-list {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.playbook-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.playbook-step:last-child {
    margin-bottom: 0;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

.step-status {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.step-status.pending {
    background: rgba(160, 174, 192, 0.2);
    color: var(--text-secondary);
}

.step-status.running {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning-color);
}

.step-status.completed {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
}

.step-status.failed {
    background: rgba(220, 53, 69, 0.2);
    color: var(--danger-color);
}

/* Playbook Execution Progress */
.playbook-execution {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

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

.execution-title {
    font-weight: bold;
    color: var(--primary-color);
}

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

.step-progress {
    margin-top: 0.75rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--success-color);
    transition: width 0.3s ease;
}

.execution-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.execution-result.success {
    background: rgba(40, 167, 69, 0.2);
    border-left: 3px solid var(--success-color);
}

.execution-result.failure {
    background: rgba(220, 53, 69, 0.2);
    border-left: 3px solid var(--danger-color);
}

.execution-result i {
    font-size: 1.5rem;
}

.execution-result.success i {
    color: var(--success-color);
}

.execution-result.failure i {
    color: var(--danger-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background: #718096;
    transform: translateY(-2px);
}

/* Loading */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.loading.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: var(--card-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    animation: toastSlideIn 0.3s;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--danger-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-icon {
    font-size: 1.5rem;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.team-member-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-member-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.team-member-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.team-member-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background: var(--success-color);
    box-shadow: 0 0 10px var(--success-color);
}

.status-indicator.away {
    background: var(--warning-color);
}

.status-indicator.offline {
    background: var(--text-secondary);
}

.team-member-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.team-stat {
    text-align: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.team-stat-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.team-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.team-member-certs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.cert-badge {
    background: rgba(0, 102, 204, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

/* Threat Intel Feed */
.feeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feed-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--success-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feed-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.feed-name {
    font-size: 1.1rem;
    font-weight: bold;
}

.feed-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success-color);
    font-size: 0.85rem;
}

.feed-status i {
    animation: pulse 2s infinite;
}

.feed-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feed-stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    font-size: 0.9rem;
}

.feed-stat-value {
    font-weight: bold;
    color: var(--primary-color);
}

.threat-intel-section {
    margin-bottom: 2rem;
}

.threat-intel-section h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.recent-threat-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--danger-color);
    transition: transform 0.3s;
}

.recent-threat-item:hover {
    transform: translateX(5px);
}

.recent-threat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.recent-threat-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.recent-threat-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============= Authentication & Login ============= */

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.login-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 3rem;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-color);
    animation: slideIn 0.5s ease-out;
}

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

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-header h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.login-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.login-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.login-btn:active {
    transform: translateY(0);
}

.login-info {
    background: rgba(0, 102, 204, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem;
}

.login-info p {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: bold;
}

.login-info ul {
    list-style: none;
    padding: 0;
}

.login-info li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.login-info code {
    background: var(--dark-bg);
    color: var(--secondary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.logout-btn {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: var(--danger-color);
    color: white;
}

.role-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.role-badge.admin {
    background: var(--critical-color);
}

.role-badge.soc_manager {
    background: var(--danger-color);
}

.role-badge.t3_analyst {
    background: var(--warning-color);
    color: var(--dark-bg);
}

.role-badge.t2_analyst {
    background: var(--secondary-color);
}

.role-badge.t1_analyst {
    background: var(--success-color);
}

.role-badge.read_only {
    background: var(--text-secondary);
}

/* ============= Audit Log Page ============= */

.filter-bar {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.filter-bar input:focus,
.filter-bar select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.data-table {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--header-bg);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    color: var(--primary-color);
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.data-table tbody tr:hover {
    background: rgba(0, 102, 204, 0.05);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-info {
    color: var(--text-secondary);
    margin: 0 1rem;
}

/* ============= Case Notes & Evidence ============= */

.notes-section,
.evidence-section {
    margin-top: 1.5rem;
}

.note-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.note-card.pinned {
    border-left-color: var(--warning-color);
    background: rgba(255, 193, 7, 0.05);
}

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

.note-author {
    font-weight: bold;
    color: var(--primary-color);
}

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

.note-content {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.note-tag {
    background: rgba(0, 102, 204, 0.2);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.note-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.note-type-badge.investigation_note {
    background: rgba(0, 163, 224, 0.2);
    color: var(--secondary-color);
}

.note-type-badge.escalation_note {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning-color);
}

.note-type-badge.response_note {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
}

.evidence-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--success-color);
}

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

.evidence-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.evidence-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.evidence-status.verified {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
}

.evidence-status.collected {
    background: rgba(0, 163, 224, 0.2);
    color: var(--secondary-color);
}

.evidence-status.analyzed {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning-color);
}

.evidence-value {
    font-family: 'Courier New', monospace;
    background: var(--dark-bg);
    padding: 0.5rem;
    border-radius: 6px;
    margin: 0.75rem 0;
    color: var(--secondary-color);
    word-break: break-all;
}

.chain-of-custody {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.chain-of-custody-title {
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.custody-entry {
    padding: 0.75rem;
    background: rgba(0, 102, 204, 0.05);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.custody-action {
    color: var(--primary-color);
    font-weight: bold;
}

.custody-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ============= SLA Timer ============= */

.sla-timer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    margin: 1rem 0;
}

.sla-progress {
    flex: 1;
    height: 8px;
    background: var(--dark-bg);
    border-radius: 4px;
    overflow: hidden;
}

.sla-progress-bar {
    height: 100%;
    transition: all 0.3s;
}

.sla-progress-bar.normal {
    background: var(--success-color);
}

.sla-progress-bar.warning {
    background: var(--warning-color);
}

.sla-progress-bar.breached {
    background: var(--danger-color);
}

.sla-time {
    font-weight: bold;
    min-width: 100px;
    text-align: right;
}

.sla-time.normal {
    color: var(--success-color);
}

.sla-time.warning {
    color: var(--warning-color);
}

.sla-time.breached {
    color: var(--danger-color);
}

/* ============= Modal Tabs ============= */

.modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.modal-tab:hover {
    color: var(--primary-color);
}

.modal-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

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

/* ============= Add Note/Evidence Forms ============= */

.add-form {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.add-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}

.add-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.add-form select {
    width: 100%;
    padding: 0.75rem;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* ===== NOTIFICATION BELL & DROPDOWN ===== */

.notification-bell-container {
    position: relative;
    margin-right: 1.5rem;
    display: inline-block;
}

.notification-bell {
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.notification-bell:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.notification-bell.has-notifications {
    color: var(--warning-color);
    animation: bellRing 2s infinite;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

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

.notification-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 400px;
    max-height: 500px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    z-index: 1001;
}

.notification-dropdown.active {
    display: flex;
}

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.notification-dropdown-header span {
    font-weight: bold;
    font-size: 1rem;
}

.mark-all-read-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
}

.mark-all-read-btn:hover {
    text-decoration: underline;
}

.notification-dropdown-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
}

.notification-item:hover {
    background: rgba(0, 102, 204, 0.1);
}

.notification-item.unread {
    background: rgba(0, 166, 224, 0.05);
    border-left: 4px solid var(--primary-color);
}

.notification-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.notification-item-icon {
    font-size: 1.2rem;
}

.notification-item-icon.critical { color: var(--critical-color); }
.notification-item-icon.high { color: var(--danger-color); }
.notification-item-icon.medium { color: var(--warning-color); }
.notification-item-icon.low { color: var(--success-color); }

.notification-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
}

.notification-item-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.notification-item-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 2rem;
}

.notification-dropdown-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.notification-dropdown-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.notification-dropdown-footer a:hover {
    text-decoration: underline;
}

/* ===== CORRELATIONS PAGE ===== */

.correlations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.correlation-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
}

.correlation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.correlation-card.critical { border-left-color: var(--critical-color); }
.correlation-card.high { border-left-color: var(--danger-color); }
.correlation-card.medium { border-left-color: var(--warning-color); }
.correlation-card.low { border-left-color: var(--success-color); }

.correlation-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.correlation-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.correlation-score-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.correlation-card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.correlation-card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

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

.correlation-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

.correlation-entities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.entity-tag {
    background: rgba(0, 102, 204, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* Kill Chain Timeline */
.kill-chain-timeline {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.kill-chain-timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.kill-chain-stages {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 2rem 0;
}

.kill-chain-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.kill-chain-stage {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    cursor: pointer;
}

.kill-chain-node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.kill-chain-stage.active .kill-chain-node {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.kill-chain-stage.active .kill-chain-label {
    color: var(--primary-color);
    font-weight: 600;
}

.kill-chain-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    max-width: 80px;
    margin: 0 auto;
    line-height: 1.2;
}

.correlated-alerts-list {
    margin-top: 2rem;
}

.correlated-alert-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 4px solid;
    cursor: pointer;
    transition: all 0.3s;
}

.correlated-alert-item:hover {
    background: rgba(0, 102, 204, 0.1);
}

.correlated-alert-item.critical { border-left-color: var(--critical-color); }
.correlated-alert-item.high { border-left-color: var(--danger-color); }
.correlated-alert-item.medium { border-left-color: var(--warning-color); }
.correlated-alert-item.low { border-left-color: var(--success-color); }

.related-alerts-sidebar {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.related-alerts-sidebar h4 {
    margin-bottom: 1rem;
}

.related-alert-item {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.similarity-bar-container {
    margin-top: 0.5rem;
}

.similarity-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.similarity-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--primary-color));
    transition: width 0.3s;
}

.similarity-percentage {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ===== NOTIFICATIONS PAGE ===== */

.notifications-list {
    margin-top: 1.5rem;
}

.notification-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.notification-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.notification-card.unread {
    background: rgba(0, 166, 224, 0.05);
}

.notification-card.critical { border-left-color: var(--critical-color); }
.notification-card.high { border-left-color: var(--danger-color); }
.notification-card.medium { border-left-color: var(--warning-color); }
.notification-card.low { border-left-color: var(--success-color); }

.notification-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.notification-type-icon {
    font-size: 1.5rem;
}

.notification-card-content {
    margin-left: 3rem;
}

.notification-card-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.notification-card-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.notification-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-left: 3rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.notification-unread-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* ===== SETTINGS PAGE ===== */

.settings-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.settings-tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.settings-tab:hover {
    color: var(--primary-color);
}

.settings-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
}

/* Escalation Policies */
.escalation-policy-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.escalation-policy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.escalation-policy-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.escalation-toggle {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

.escalation-toggle.enabled {
    background: var(--success-color);
}

.escalation-levels {
    margin-top: 1rem;
}

.escalation-level {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    position: relative;
}

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

.escalation-level-number {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.escalation-level-time {
    color: var(--warning-color);
    font-weight: 600;
}

.escalation-level-roles {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.escalation-timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 3rem;
}

.escalation-timeline-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border-color);
}

.escalation-timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.escalation-timeline-dot {
    position: absolute;
    left: -32px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--card-bg);
}

/* On-Call */
.oncall-current {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.oncall-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border-top: 4px solid var(--primary-color);
}

.oncall-card h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.oncall-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success-color);
    animation: pulse 2s infinite;
}

.oncall-person {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.oncall-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.oncall-schedule-table {
    width: 100%;
    margin-top: 1rem;
}

.oncall-schedule-table th,
.oncall-schedule-table td {
    padding: 1rem;
    text-align: left;
}

/* Webhooks */
.webhook-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.webhook-icon {
    font-size: 3rem;
}

.webhook-icon.slack { color: #611f69; }
.webhook-icon.teams { color: #464eb8; }
.webhook-icon.pagerduty { color: #06ac38; }
.webhook-icon.email { color: var(--primary-color); }

.webhook-info {
    flex: 1;
}

.webhook-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

.webhook-actions {
    display: flex;
    gap: 0.5rem;
}

.webhook-test-btn,
.webhook-toggle-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

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

.webhook-toggle-btn {
    background: var(--danger-color);
    color: white;
}

.webhook-toggle-btn.enabled {
    background: var(--success-color);
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
    .correlations-grid {
        grid-template-columns: 1fr;
    }
    
    .kill-chain-stages {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .kill-chain-stage {
        flex-basis: 20%;
    }
    
    .notification-dropdown {
        width: 90vw;
        right: -50px;
    }
    
    .oncall-current {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PHASE 3 COMPONENT STYLES
   ============================================ */

/* ============================================
   COMPLIANCE PAGE STYLES
   ============================================ */

.compliance-posture-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.posture-gauge {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1e2a3a;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.posture-gauge canvas {
    width: 250px !important;
    height: 250px !important;
    max-width: 100%;
}

.posture-gauge h3 {
    margin-top: 1rem;
    color: #fff;
    font-size: 1.2rem;
}

.posture-summary {
    flex: 1;
    min-width: 300px;
}

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

.posture-summary .stat-card {
    background: #1e2a3a;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.posture-summary .stat-card:hover {
    border-color: #1a73e8;
    transform: translateY(-2px);
}

.posture-summary .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.posture-summary .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.framework-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.framework-card {
    background: #1e2a3a;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.framework-card:hover {
    border-color: #1a73e8;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.2);
}

.framework-card h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.framework-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #34a853);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.framework-score.low {
    background: linear-gradient(135deg, #ea4335, #fbbc04);
}

.framework-score.medium {
    background: linear-gradient(135deg, #fbbc04, #34a853);
}

.framework-score.high {
    background: linear-gradient(135deg, #34a853, #1a73e8);
}

.framework-card .description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.framework-card .controls-count {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.framework-card .control-stat {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    text-align: center;
}

.framework-card .control-stat .label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.framework-card .control-stat .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0.25rem;
}

.gap-analysis-panel {
    background: #1e2a3a;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.gap-analysis-panel h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.gap-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.gap-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.gap-table th {
    padding: 1rem;
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gap-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.gap-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.gap-table tbody tr:hover {
    background: rgba(26, 115, 232, 0.1);
}

.gap-table td {
    padding: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.gap-table .priority-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gap-table .priority-badge.critical {
    background: rgba(234, 67, 53, 0.2);
    color: #ea4335;
    border: 1px solid #ea4335;
}

.gap-table .priority-badge.high {
    background: rgba(251, 188, 4, 0.2);
    color: #fbbc04;
    border: 1px solid #fbbc04;
}

.gap-table .priority-badge.medium {
    background: rgba(26, 115, 232, 0.2);
    color: #1a73e8;
    border: 1px solid #1a73e8;
}

.gap-table .priority-badge.low {
    background: rgba(52, 168, 83, 0.2);
    color: #34a853;
    border: 1px solid #34a853;
}

.mitre-heatmap-section {
    background: #1e2a3a;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.mitre-heatmap-section h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    gap: 4px;
    min-width: 800px;
}

.tactic-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.heatmap-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.heatmap-cell:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.heatmap-cell.covered {
    background: #34a853;
    color: #fff;
}

.heatmap-cell.partial {
    background: #fbbc04;
    color: #0a1929;
}

.heatmap-cell.gap {
    background: #ea4335;
    color: #fff;
}

.heatmap-cell.empty {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
}

.heatmap-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* ============================================
   REPORTS PAGE STYLES
   ============================================ */

.report-generation-section {
    background: #1e2a3a;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.report-generation-section h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.report-type-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.report-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
    background: linear-gradient(135deg, #1557b0, #1a73e8);
}

.report-btn:active {
    transform: translateY(0);
}

.report-btn i {
    font-size: 1.25rem;
}

.report-btn.executive {
    background: linear-gradient(135deg, #7c4dff, #651fff);
}

.report-btn.executive:hover {
    background: linear-gradient(135deg, #651fff, #7c4dff);
}

.report-btn.technical {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
}

.report-btn.technical:hover {
    background: linear-gradient(135deg, #0097a7, #00bcd4);
}

.report-btn.compliance {
    background: linear-gradient(135deg, #34a853, #2d8e47);
}

.report-btn.compliance:hover {
    background: linear-gradient(135deg, #2d8e47, #34a853);
}

.report-options {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.report-options h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.report-options .options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.report-options .option-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.report-options input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1a73e8;
}

.report-options label {
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 0.875rem;
}

.report-date-range {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.report-date-range label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.report-date-range input[type="date"] {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 0.875rem;
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
    background: #1e2a3a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reports-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.reports-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reports-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.reports-table tbody tr:hover {
    background: rgba(26, 115, 232, 0.1);
}

.reports-table td {
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.reports-table .action-buttons {
    display: flex;
    gap: 0.5rem;
}

.reports-table .btn-icon {
    padding: 0.5rem;
    background: rgba(26, 115, 232, 0.2);
    border: 1px solid #1a73e8;
    color: #1a73e8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reports-table .btn-icon:hover {
    background: #1a73e8;
    color: #fff;
}

.report-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.report-viewer-content {
    background: #1e2a3a;
    border-radius: 12px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.report-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.report-viewer-header h3 {
    color: #fff;
    font-size: 1.25rem;
}

.report-viewer-header .close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.report-viewer-header .close-btn:hover {
    color: #fff;
}

.report-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.report-content h1,
.report-content h2,
.report-content h3 {
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.report-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid #1a73e8;
    padding-bottom: 0.5rem;
}

.report-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

.report-content h3 {
    font-size: 1.25rem;
}

.report-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.report-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.report-content table th,
.report-content table td {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.report-content table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

.trend-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

.trend-indicator.up {
    color: #34a853;
}

.trend-indicator.down {
    color: #ea4335;
}

.trend-indicator.neutral {
    color: #fbbc04;
}

.trend-indicator i {
    font-size: 1rem;
}

/* ============================================
   THREAT HUNTING PAGE STYLES
   ============================================ */

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

.hunt-stat-card {
    background: #1e2a3a;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.hunt-stat-card:hover {
    border-color: #1a73e8;
    transform: translateY(-2px);
}

.hunt-stat-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.hunt-stat-card .content {
    flex: 1;
}

.hunt-stat-card .label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.hunt-stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.hunt-stat-card .change {
    font-size: 0.75rem;
    color: #34a853;
    margin-top: 0.25rem;
}

.hunt-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hunt-package-card {
    background: #1e2a3a;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.hunt-package-card:hover {
    border-color: #1a73e8;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.2);
}

.hunt-package-card h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.difficulty-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-badge.easy {
    background: rgba(52, 168, 83, 0.2);
    color: #34a853;
    border: 1px solid #34a853;
}

.difficulty-badge.medium {
    background: rgba(251, 188, 4, 0.2);
    color: #fbbc04;
    border: 1px solid #fbbc04;
}

.difficulty-badge.hard {
    background: rgba(234, 67, 53, 0.2);
    color: #ea4335;
    border: 1px solid #ea4335;
}

.hunt-package-card .description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.hunt-package-card .metadata {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.hunt-package-card .metadata span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.query-builder {
    background: #1e2a3a;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.query-builder h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.query-builder .query-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.query-field,
.query-operator,
.query-value {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.query-field:focus,
.query-operator:focus,
.query-value:focus {
    outline: none;
    border-color: #1a73e8;
}

.query-builder .query-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.query-builder button {
    padding: 0.75rem 1.5rem;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.query-builder button:hover {
    background: #1557b0;
    transform: translateY(-1px);
}

.query-builder button.secondary {
    background: rgba(255, 255, 255, 0.1);
}

.query-builder button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.query-results {
    background: #1e2a3a;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    max-height: 600px;
    overflow-y: auto;
}

.query-results h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.query-results table {
    width: 100%;
    border-collapse: collapse;
}

.query-results table th {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
}

.query-results table td {
    padding: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.query-results table tr:hover {
    background: rgba(26, 115, 232, 0.1);
}

.hunt-findings-panel {
    background: #1e2a3a;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.hunt-findings-panel h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.finding-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #1a73e8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.finding-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.finding-card.critical {
    border-left-color: #ea4335;
}

.finding-card.high {
    border-left-color: #fbbc04;
}

.finding-card.medium {
    border-left-color: #1a73e8;
}

.finding-card.low {
    border-left-color: #34a853;
}

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

.finding-card .finding-title {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.finding-card .finding-severity {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.finding-card .finding-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.finding-card .finding-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.finding-card .finding-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.finding-card.expanded .finding-details {
    display: block;
}

.hunt-journal {
    background: #1e2a3a;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hunt-journal h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.journal-timeline {
    position: relative;
    padding-left: 2rem;
}

.journal-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.journal-entry {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.journal-entry:hover {
    background: rgba(255, 255, 255, 0.08);
}

.journal-entry::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 1.25rem;
    width: 12px;
    height: 12px;
    background: #1a73e8;
    border-radius: 50%;
    border: 2px solid #0a1929;
}

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

.journal-entry .entry-timestamp {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.journal-entry .entry-author {
    font-size: 0.875rem;
    color: #1a73e8;
    font-weight: 600;
}

.journal-entry .entry-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    line-height: 1.6;
}

.journal-input {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.journal-input textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.875rem;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.journal-input textarea:focus {
    outline: none;
    border-color: #1a73e8;
}

.journal-input button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.journal-input button:hover {
    background: #1557b0;
    transform: translateY(-1px);
}

/* ============================================
   PHASE 3 RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
    .framework-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .hunt-library-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .heatmap-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media (max-width: 768px) {
    .compliance-posture-section {
        flex-direction: column;
    }
    
    .posture-gauge {
        flex: 1 1 auto;
        width: 100%;
    }
    
    .framework-cards-grid,
    .hunt-library-grid {
        grid-template-columns: 1fr;
    }
    
    .hunt-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .report-type-buttons {
        grid-template-columns: 1fr;
    }
    
    .query-builder .query-row {
        flex-direction: column;
    }
    
    .query-field,
    .query-operator,
    .query-value {
        width: 100%;
    }
    
    .gap-table,
    .reports-table {
        font-size: 0.75rem;
    }
    
    .gap-table th,
    .gap-table td,
    .reports-table th,
    .reports-table td {
        padding: 0.5rem;
    }
    
    .report-viewer {
        padding: 1rem;
    }
    
    .heatmap-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .hunt-stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .posture-summary .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .framework-card .controls-count {
        flex-direction: column;
    }
    
    .journal-timeline {
        padding-left: 1rem;
    }
    
    .journal-entry::before {
        left: -1.5rem;
    }
}


