:root {
    --main-color: #070f26;
    --alt-main-color: #ffffff;
    --one-color: #fe841c;
    --two-color: #0dcaf0;
    --color-bg1: #212529;
    --color-bg2: #1a1a2e;
    --color-bg3: rgb(45, 13, 96);
    --gradient-degree: 32deg;
}

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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(var(--gradient-degree), var(--color-bg1), var(--color-bg2));
    color: white;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
}
::-webkit-scrollbar {
   display: none;
}


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

.header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 10px;
}

.chart-container {
    background-color: var(--alt-main-color);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background-color: var(--one-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}


.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    margin: 10px 0;
}

canvas {
    height: 280px;
    width: 500px;
}

.options-menu {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    overflow: hidden;
    position: absolute;
    transform: translateX(-10px);
    /* This will reliably shift the menu */
    z-index: 1000;
    width: 150px;
}

.option-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-item:hover {
    background: #f5f5f5;
}

.option-item i {
    width: 20px;
    text-align: center;
}

.create-menu {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 250px;
}

.composition-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.confirm-create {
    background-color: var(--one-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.confirm-create:hover {
    background-color: #e67300;
}

.composition-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: var(--alt-main-color);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.composition-table th,
.composition-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.action-button {
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-button i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.playback-button {
    background: none;
    border: none;
    color: var(--two-color);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.playback-button {
    background: none;
    border: none;
    color: var(--two-color);
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
    padding: 5px;
}
.dashboard-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    color: #f36507;
    margin-bottom: 0.5rem;
}

.header p {
    color: #bc9494;
    font-size: 1.1rem;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 200px;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h3 {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #4158D0;
}

.chart-container {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    height: 400px;
}

.chart-container:not(.full-width) {
    margin-bottom: 0;
}

.chart-container.full-width {
    flex: 100%;
}

.chart-title {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
    }

    .chart-container {
        width: 100%;
    }
}

.metrics-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 400px; /* Match the typical height of the chart */
    padding: 0.5rem;
}

.metric-card {
    background: white;
    padding: 0.8rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.metric-card h4 {
    color: #666;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4158D0;
}

@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
    }

    .metrics-column {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .metric-card {
        flex: 1;
        min-width: calc(50% - 1rem);
    }
}