* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f4f4f4;
}

header {
    background: #2e7d32;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dark-box {
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input { display: none; }

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 20px;
    width: 100%;
    height: 100%;
    transition: 0.4s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #2e7d32;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.container {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 30px;
}

.card {
    background: white;
    padding: 30px;
    width: 900px;
    border-radius: 8px;
}

input, select, button {
    padding: 8px;
    margin: 5px;
}

button {
    background: #2e7d32;
    color: white;
    border: none;
    cursor: pointer;
}

table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

th {
    background: #2e7d32;
    color: white;
}

.total {
    margin-top: 15px;
    font-weight: bold;
}

.warning {
    color: red;
    font-weight: bold;
    margin-top: 5px;
}

footer {
    background: #2e7d32;
    color: white;
    text-align: center;
    padding: 10px;
}

.dark {
    background: #121212;
    color: white;
}

.dark .card {
    background: #1e1e1e;
}

.dark table th {
    background: #333;
}