:root {
    --bg-color: #121212;
    --surface-color: #1E1E1E;
    --primary-color: #BB86FC;
    --secondary-color: #03DAC6;
    --error-color: #CF6679;
    --text-primary: #E0E0E0;
    --text-secondary: #A0A0A0;
    --input-bg: #2C2C2C;
    --input-border: #444;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --font-family: 'Inter', sans-serif;
}

body.light-mode {
    --bg-color: #F5F5F5;
    --surface-color: #FFFFFF;
    --primary-color: #6200EE;
    --secondary-color: #018786;
    --error-color: #B00020;
    --text-primary: #000000;
    --text-secondary: #5f6368;
    --input-bg: #FFFFFF;
    --input-border: #CCCCCC;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
}

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

header {
    background-color: var(--surface-color);
    padding: 20px 0;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, opacity 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

input,
select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

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

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    color: var(--text-secondary);
}

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: var(--text-primary);
    padding: 10px 0;
    font-size: 16px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--surface-color);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1000;
    border-radius: var(--border-radius);
    padding: 10px 0;
    top: 100%;
    left: 0;
    border: 1px solid #333;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin-left: 0;
}

.dropdown-content a:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--primary-color);
}