:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent: #bb86fc;
    --warning: #cf6679;
    --success: #03dac6;
    --border-radius: 12px;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    width: 100%;
}

h1 {
    text-align: center;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--accent);
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

.card {
    background-color: var(--card-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

input {
    width: 100%;
    background-color: #2c2c2c;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1.1em;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: var(--accent);
}

small {
    color: #666;
    font-size: 0.8em;
    display: block;
    margin-top: 4px;
}

.stat-box {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #252525;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.stat-box.highlight {
    background-color: #2a2a2a;
    border-left-color: var(--success);
}

.stat-box .label {
    display: block;
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-box .value {
    font-size: 1.8em;
    font-weight: 500;
}

.hidden {
    display: none;
}

.warning-card {
    background-color: rgba(207, 102, 121, 0.15);
    border: 1px solid var(--warning);
    color: var(--warning);
    margin-bottom: 20px;
    text-align: center;
    animation: pulse 2s infinite;
}

.warning-card h2 {
    margin-top: 0;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(207, 102, 121, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(207, 102, 121, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(207, 102, 121, 0);
    }
}

/* Violation state for Kinetic Energy */
.violation .value {
    color: var(--warning);
}

.violation {
    border-left-color: var(--warning);
}

/* Reference Card */
.reference-card {
    margin-top: 20px;
}

.reference-card h2 {
    margin-top: 0;
    font-weight: 400;
    color: var(--text-secondary);
}

.regulation-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 0.9em;
}

.regulation-table th,
.regulation-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.regulation-table th {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.regulation-table tr:last-child td {
    border-bottom: none;
}

.regulation-table .highlight-row {
    background-color: rgba(207, 102, 121, 0.1);
}

.regulation-table .highlight-row td {
    color: var(--warning);
}