body {
    background-color: #2c1b0e;
    color: #f5deb3;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #ffbf00;
    text-shadow: 2px 2px 4px #000;
    font-size: 3rem;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    font-style: italic;
    color: #d2b48c;
    margin-bottom: 20px;
}

/* User Selector */
.user-selector {
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
    background-color: #3e2723;
    padding: 15px 20px;
    border-radius: 12px;
    border: 3px solid #ffbf00;
}

.user-select-row {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.user-select-row select {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #5d4037;
    background-color: #f5deb3;
    color: #2c1b0e;
    font-size: 1rem;
    font-weight: bold;
}

.new-user-btn {
    background-color: #4caf50;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
}

.new-user-btn:hover { background-color: #388e3c; }

.new-user-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.new-user-row input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #5d4037;
    background-color: #f5deb3;
    color: #2c1b0e;
    font-size: 1rem;
}

.save-user-btn {
    background-color: #ffbf00;
    color: #2c1b0e;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
}

.save-user-btn:hover { background-color: #e6ac00; }

/* Main Container */
.container {
    background-color: #3e2723;
    padding: 30px;
    border-radius: 15px;
    border: 5px solid #ffbf00;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 800px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 28px;
    background-color: #2c1b0e;
    border-radius: 14px;
    overflow: hidden;
    margin: 15px 0 5px;
    border: 2px solid #5d4037;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffbf00, #e6ac00);
    transition: width 0.5s ease;
    border-radius: 12px;
}

.progress-text {
    text-align: center;
    font-size: 1.1rem;
    color: #ffbf00;
    font-weight: bold;
    margin-bottom: 15px;
}

.section-title {
    font-size: 1.3rem;
    color: #ffbf00;
    margin: 10px 0 5px;
}

.hint {
    font-size: 0.95rem;
    color: #d7ccc8;
    font-style: italic;
    margin-bottom: 15px;
}

.districts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.district-item {
    background-color: #4e342e;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #5d4037;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.3s, opacity 0.3s;
}

.district-item:hover {
    border-color: #ffbf00;
}

.district-item.visited {
    border-color: #a5d6a7;
    opacity: 0.85;
}

.district-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.15rem;
    color: #ffbf00;
}

.district-header label {
    cursor: pointer;
    flex: 1;
}

.district-header input[type="checkbox"] {
    transform: scale(1.6);
    accent-color: #ffbf00;
    cursor: pointer;
}

.beisel-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.beisel-input input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #5d4037;
    background-color: #f5deb3;
    color: #2c1b0e;
    font-size: 1rem;
}

.beisel-input input:disabled {
    background-color: #2c1b0e;
    color: #5d4037;
    cursor: not-allowed;
}

.beisel-input input:focus {
    outline: 2px solid #ffbf00;
    border-color: #ffbf00;
}

.save-btn {
    background-color: #ffbf00;
    color: #2c1b0e;
    padding: 10px 18px;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s, opacity 0.3s;
}

.save-btn:hover:not(:disabled) { background-color: #e6ac00; }
.save-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.previous-visit {
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px dashed #5d4037;
    color: #a5d6a7;
    font-size: 0.95rem;
    line-height: 1.6;
}

.visited-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    background-color: #2e7d32;
    color: #fff;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Reset Button */
.actions {
    margin-top: 25px;
    text-align: center;
    border-top: 3px solid #ffbf00;
    padding-top: 15px;
}

.reset-btn {
    background-color: #c62828;
    color: #fff;
    padding: 12px 24px;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.reset-btn:hover { background-color: #a50e0e; }

@media (max-width: 600px) {
    .beisel-input {
        flex-direction: column;
    }
    .save-btn, .new-user-btn {
        width: 100%;
    }
    .user-select-row, .new-user-row {
        flex-direction: column;
    }
}
