/* Cybersecurity Awareness Theme */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #00b4d8;
    --danger-color: #d00000;
    --warning-color: #ff9e00;
    --success-color: #38b000;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --text-color: #212529;
    --text-muted: #6c757d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 20px;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.nav-link:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

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

.nav-link i {
    font-size: 1.1rem;
}

/* Controls */
.controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.filter-group select {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: white;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

#reset-filters {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

#reset-filters:hover {
    background: var(--secondary-color);
}

/* Dashboard */
.dashboard {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stats-sidebar {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cards */
.stats-card,
.insights-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.stats-card h3,
.insights-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

/* Stats */
.stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.stat:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

/* Insights */
#insights-list {
    max-height: 300px;
    overflow-y: auto;
}

.insight {
    background: rgba(74, 111, 165, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 0 6px 6px 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.insight:last-child {
    margin-bottom: 0;
}

/* Timeline */
.timeline-container,
.details-panel {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.timeline-container h2,
.details-panel h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

#timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    padding-left: 60px;
}

.timeline-item:hover {
    transform: translateX(5px);
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.timeline-item.selected {
    border-color: var(--primary-color);
    background: rgba(74, 111, 165, 0.05);
}

.timeline-year {
    position: absolute;
    left: 15px;
    top: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.timeline-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-color);
    font-size: 1.1rem;
}

.timeline-details {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
}

.timeline-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Attack Details */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--border-color);
}

.attack-details-content {
    display: none;
}

.attack-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.attack-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.attack-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--accent-color);
}

.impact-badge {
    background: var(--danger-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

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

.detail-section h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section p {
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 10px;
}

.detail-section ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.detail-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Mitigation Section */
.mitigation-section {
    margin-top: 40px;
    margin-bottom: 30px;
}

.mitigation-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.mitigation-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--success-color);
    transition: transform 0.3s;
}

.mitigation-card:hover {
    transform: translateY(-5px);
}

.mitigation-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mitigation-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.mitigation-card ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.mitigation-card li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 10px;
}

.github-link {
    margin-top: 15px;
}

.github-link a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.github-link a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard {
        flex-direction: column;
    }
    
    .stats-sidebar {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .container {
        padding: 10px;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .mitigation-grid {
        grid-template-columns: 1fr;
    }
    
    .attack-header {
        flex-direction: column;
        gap: 15px;
    }
}

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

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

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

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