:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #f8fafc;
    --accent-color: #3b82f6;
    --accent-gradient: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    --background-color: #f4f8fb;
    --card-color: rgba(255,255,255,0.75);
    --glass-blur: blur(12px);
    --text-color: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    --shadow-lg: 0 16px 32px -4px rgb(31 38 135 / 0.12);
    --stat-font: 'Roboto Mono', monospace;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 1.2s cubic-bezier(.4,0,.2,1);
}

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

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2.5rem;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #06b6d4 100%);
    color: white;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    position: relative;
    overflow: hidden;
}

.dashboard-header::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg,rgba(255,255,255,0.18) 0%,rgba(255,255,255,0.01) 100%);
    transform: skewX(-20deg);
    animation: shine 3s infinite linear;
}
@keyframes shine {
    0% { left: -75%; }
    100% { left: 125%; }
}

.dashboard-header h1 {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.dashboard-header h2 {
    margin: 1rem 0 0;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-color);
    border-radius: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    gap: 2rem;
}

.filter-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.filter-control label {
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.01em;
}

input[type="range"] {
    width: 200px;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    accent-color: var(--primary-color);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
    border: 2px solid #fff;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    background: var(--card-color);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
    backdrop-filter: var(--glass-blur);
    min-width: 140px;
    background-image:
      url("data:image/svg+xml;utf8,<svg fill='blue' height='18' viewBox='0 0 20 20' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.2em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select:hover, select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.chart-container {
    min-height: 520px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--card-color);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    animation: fadeIn 1.5s 0.2s backwards;
}
.chart-container:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px) scale(1.01);
}

.chart-container canvas {
    flex: 1 1 auto;
    height: 420px !important;
    max-height: 100%;
}

.info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    height: 100%;
}

.stats-card {
    background: var(--card-color);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    animation: fadeIn 1.5s 0.3s backwards;
}
.stats-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 6px;
    background: var(--accent-gradient);
    border-radius: 1.5rem 1.5rem 0 0;
    z-index: 1;
    opacity: 0;
    transform: scaleX(0.7);
    transition: opacity 0.3s, transform 0.3s;
}
.stats-card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}
.stats-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stats-card h3 {
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    position: relative;
}

.stat-value {
    font-size: 2.7rem;
    font-family: var(--stat-font);
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0 0.2rem 0;
    z-index: 2;
    position: relative;
}

.data-table {
    background: var(--card-color);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    backdrop-filter: var(--glass-blur);
    animation: fadeIn 1.5s 0.4s backwards;
}

.data-table h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
    font-size: 1.05rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

tr:hover {
    background: #f1f5fd;
    transition: background 0.2s;
}

.dashboard-footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
    background: rgba(255,255,255,0.7);
    border-radius: 0 0 1.5rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    .info-panel {
        grid-template-rows: 1fr 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .dashboard-container {
        padding: 0.5rem;
    }
    .controls {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .dashboard-header {
        padding: 1.2rem 0.5rem;
    }
    .chart-container, .stats-card, .data-table {
        padding: 1rem;
        border-radius: 1rem;
    }
    .stats-card::before {
        height: 4px;
    }
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

#exploitsTable {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

@media (max-width: 600px) {
    #exploitsTable th,
    #exploitsTable td {
        font-size: 14px;
        padding: 6px 4px;
    }
    .stats-card h3,
    .stat-value {
        font-size: 16px;
    }
}

/* Default table styles */
.responsive-table {
  width: 100%;
  border-collapse: collapse;
}

/* Stacked table for mobile */
@media (max-width: 600px) {
  .responsive-table thead {
    display: none;
  }
  .responsive-table, 
  .responsive-table tbody, 
  .responsive-table tr, 
  .responsive-table td {
    display: block;
    width: 100%;
  }
  .responsive-table tr {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    padding: 0.5rem 0.75rem;
  }
  .responsive-table td {
    text-align: left;
    padding: 0.5rem 0;
    position: relative;
  }
  .responsive-table td:before {
    content: attr(data-label);
    font-weight: 600;
    color: #888;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
} 