:root {
    --sidebar-bg: #1a1c23;
    --main-bg: #f4f7fe;
    --accent: #4318ff;
    --text-main: #2b3674;
}

body {
    font-family: 'DM Sans', sans-serif;
    margin: 0px;
    padding: 0px;
    background: var(--main-bg);
    color: var(--text-main);
    box-sizing: border-box;

}

.container{
    display: flex;
    /* height: 100dvh; */
    width: 100dvw;
    box-sizing: border-box;
}

/* Menú Lateral */
nav {
    width: 260px;
    height: 100vh;
    background: var(--sidebar-bg);
    color: white;
    padding: 30px 20px;
    box-sizing: border-box;

}

nav h2 {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

ul {
    list-style: none;
    padding: 0;
}

.menu-item {
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.menu-item-2 {
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.menu-item-2 select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: #2d313e;
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
}

select option {
    background: var(--sidebar-bg);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-item.active {
    background: var(--accent);
    font-weight: bold;
}

/* Contenido Principal */
main {
    box-sizing: border-box;
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100vh;

}

.header h1{
    margin: 0px;
}

.card {
    flex-grow: 1;
    max-height: 42%;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0px 18px 40px rgba(112, 144, 176, 0.12);
}

#chartWrapper {
    width: 100%;
    height: 100%;
}