body {
    background-color: #1a1a2e;
    color: #e0e0e0;
}

.navbar {
    background-color: #16213e !important;
    border-bottom: 1px solid #0f3460;
}

.card {
    background-color: #16213e;
    border: 1px solid #0f3460;
    transition: transform 0.15s, box-shadow 0.15s;
}

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

.card-active {
    border-color: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

/* Preset table */
.table-preset {
    background-color: #16213e;
    border-radius: 8px;
    overflow: hidden;
}

.table-preset thead th {
    background-color: #0f3460;
    color: #8899aa;
    border-bottom: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    white-space: nowrap;
}

.table-preset tbody tr {
    border-bottom: 1px solid #0f3460;
}

.table-preset tbody tr:last-child {
    border-bottom: none;
}

.table-preset tbody td {
    padding: 10px 14px;
    border: none;
    vertical-align: middle;
}

.table-preset-active {
    border: 1px solid #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.2);
}

.table-preset-active thead th {
    background-color: #1e4d3a;
    color: #a0d0b0;
}

.table-preset-active tbody tr {
    background-color: rgba(40, 167, 69, 0.08);
}

.badge-car {
    background-color: #0f3460;
    color: #e0e0e0;
    font-weight: normal;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot.running {
    background-color: #28a745;
    box-shadow: 0 0 6px #28a745;
}

.status-dot.stopped {
    background-color: #dc3545;
    box-shadow: 0 0 6px #dc3545;
}

.btn-server {
    min-width: 100px;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
}

.flash-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
}

/* Wizard */
.wizard-container {
    max-width: 800px;
    margin: 0 auto;
}

.wizard-steps {
    display: flex;
    gap: 4px;
}

.wizard-step {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    background-color: #0f3460;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #8899aa;
    transition: background-color 0.2s, color 0.2s;
}

.wizard-step .step-num {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 50%;
    background-color: #1a1a2e;
    font-weight: bold;
    font-size: 0.8rem;
    margin-right: 4px;
}

.wizard-step.active {
    background-color: #1a5276;
    color: #e0e0e0;
}

.wizard-step.active .step-num {
    background-color: #2980b9;
    color: #fff;
}

.wizard-step.done {
    background-color: #1e4d3a;
    color: #a0d0b0;
}

.wizard-step.done .step-num {
    background-color: #28a745;
    color: #fff;
}

.wizard-panel {
    background-color: #16213e;
    border: 1px solid #0f3460;
    border-radius: 8px;
    padding: 24px;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
}

.pitbox-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: #0f3460;
    border-radius: 6px;
    font-size: 0.95rem;
}

.car-list {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #0f3460;
    border-radius: 6px;
    padding: 8px 12px 8px 28px;
}

.car-item {
    padding: 3px 0;
}

.slot-row {
    background-color: #0f3460;
    padding: 8px 12px;
    border-radius: 6px;
}

.slot-car-name {
    flex: 1;
    font-size: 0.9rem;
}

.slot-input {
    width: 80px !important;
}
