/* SIEM Dashboard Styles */

/* SIEM Header */
.siem-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

.siem-header-content {
    text-align: center;
}

.siem-header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.siem-header-content h1 i {
    color: #60a5fa;
}

.siem-header-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.siem-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

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

.status-indicator.online {
    background: #10b981;
}

.status-indicator.offline {
    background: #ef4444;
}

/* Dashboard Controls */
.dashboard-controls {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.control-group select,
.control-group input {
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 150px;
}

.control-group select:focus,
.control-group input:focus {
    outline: none;
    border-color: #2563eb;
}

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

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.dashboard-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-card h3 i {
    color: #2563eb;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.metric {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.metric-value.critical {
    color: #dc2626;
}

.metric-value.high {
    color: #ea580c;
}

.metric-value.medium {
    color: #d97706;
}

.metric-value.low {
    color: #059669;
}

.metric-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Chart Card */
.chart-card {
    grid-column: span 2;
}

.chart-card canvas {
    max-height: 300px;
}

/* Threat Intelligence */
.threat-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.threat-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.threat-label {
    font-weight: 500;
    color: #374151;
}

.threat-value {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
}

/* System Status */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
}

.status-dot.offline {
    background: #ef4444;
}

/* Search Section */
.search-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

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

.search-header h3 {
    font-size: 1.25rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-header h3 i {
    color: #2563eb;
}

.search-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-controls input {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 300px;
}

.search-controls input:focus {
    outline: none;
    border-color: #2563eb;
}

/* Search Results */
.search-results {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
}

.log-table-container {
    max-height: 400px;
    overflow-y: auto;
}

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

.log-table th {
    background: #f1f5f9;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
}

.log-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
}

.log-table tr:hover {
    background: #f8fafc;
}

/* Log Entry Styles */
.log-entry {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.log-entry:hover {
    background: #f1f5f9;
}

.log-severity {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.log-severity.critical {
    background: #fee2e2;
    color: #dc2626;
}

.log-severity.high {
    background: #fef3c7;
    color: #d97706;
}

.log-severity.medium {
    background: #dbeafe;
    color: #2563eb;
}

.log-severity.low {
    background: #d1fae5;
    color: #059669;
}

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

.log-actions button {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.log-actions .investigate-btn {
    background: #2563eb;
    color: white;
}

.log-actions .investigate-btn:hover {
    background: #1d4ed8;
}

.log-actions .export-btn {
    background: #10b981;
    color: white;
}

.log-actions .export-btn:hover {
    background: #059669;
}

/* Alerts Section */
.alerts-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.alerts-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alerts-section h3 i {
    color: #dc2626;
}

.alerts-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item {
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
}

.alert-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-item.critical {
    border-left-color: #dc2626;
    background: #fef2f2;
}

.alert-item.high {
    border-left-color: #ea580c;
    background: #fff7ed;
}

.alert-item.medium {
    border-left-color: #d97706;
    background: #fffbeb;
}

.alert-item.low {
    border-left-color: #059669;
    background: #f0fdf4;
}

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

.alert-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.alert-time {
    font-size: 0.8rem;
    color: #64748b;
}

.alert-description {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

.alert-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.alert-actions .acknowledge-btn {
    background: #2563eb;
    color: white;
}

.alert-actions .acknowledge-btn:hover {
    background: #1d4ed8;
}

.alert-actions .investigate-btn {
    background: #dc2626;
    color: white;
}

.alert-actions .investigate-btn:hover {
    background: #b91c1c;
}

/* Investigation Panel */
.investigation-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 600px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.investigation-panel.active {
    right: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #1e293b;
    color: white;
    border-bottom: 1px solid #e5e7eb;
}

.panel-header h3 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-panel {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.close-panel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.investigation-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s ease;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: #f8fafc;
}

.tab-btn:hover {
    background: #f1f5f9;
}

.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.tab-pane {
    display: none;
}

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

/* Timeline */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-event {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.timeline-time {
    font-weight: 600;
    color: #374151;
    min-width: 100px;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.timeline-description {
    color: #64748b;
    font-size: 0.9rem;
}

/* Evidence */
.evidence-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.evidence-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.evidence-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.evidence-description {
    color: #64748b;
    font-size: 0.9rem;
}

/* Notes */
.notes-container textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
}

.notes-container textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.notes-container button {
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .control-group {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .control-group label {
        min-width: 100px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-card {
        grid-column: span 1;
    }
    
    .search-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-controls {
        flex-direction: column;
    }
    
    .search-controls input {
        min-width: auto;
    }
    
    .investigation-panel {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .siem-header-content h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .log-table {
        font-size: 0.8rem;
    }
    
    .log-table th,
    .log-table td {
        padding: 0.5rem;
    }
} 