:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --accent-color: #6366f1;
    --table-hover: rgba(255, 255, 255, 0.03);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.12) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    max-width: 950px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
}

h1 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 35px;
}

h2 {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}

.controls {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

label {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 1rem;
}

select {
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background-color: #0f172a;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

select:focus, select:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.table-container {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
}

th {
    background-color: rgba(15, 23, 42, 0.6);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 14px 18px;
    border-bottom: 1px solid var(--card-border);
}

th:first-child { border-top-left-radius: 8px; }
th:last-child { border-top-right-radius: 8px; }

td {
    text-align: center; 
    padding: 16px 18px;
    border-bottom: 1px solid var(--card-border);
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

tr {
    transition: background-color 0.2s ease;
}

tr:hover {
    background-color: var(--table-hover);
}

td strong {
    color: #60a5fa;
}

td em {
    color: var(--text-muted);
    font-style: normal;
    font-size: 0.85rem;
}

.note {
    margin-top: 20px;
    padding: 14px 18px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-left: 4px solid #f59e0b;
    color: #fbbf24;
    font-size: 0.9rem;
    border-radius: 8px;
}

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