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

body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 20px;
    color: #000000;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    background: transparent;
    color: #000000;
    padding: 60px 30px 30px;
    text-align: center;
}

header h1 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 400;
}

.subtitle {
    font-size: 18px;
    opacity: 0.8;
    font-weight: 300;
}

.ballot {
    padding: 30px;
    background: #f5f5f5;
    border-radius: 10px;
}

.voted-notice {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #ffffff;
    border-radius: 5px;
    border: 1px solid #000000;
}

.voted-notice h2 {
    color: #000000;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 400;
}

.voted-notice p {
    color: #000000;
    font-size: 16px;
}

.problems-list {
    margin-bottom: 30px;
}

.problem-item {
    border: 1px solid #000000;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 15px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.problem-item:hover {
    border-color: #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.problem-item.selected {
    border-color: #000000;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.problem-item.disabled {
    opacity: 0.9;
}

.problem-item.disabled:hover {
    box-shadow: none;
}

.problem-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.problem-title {
    font-size: 16px;
    color: #000000;
    cursor: pointer;
    user-select: none;
    display: inline;
    font-weight: 500;
    flex: 1;
    margin-right: 15px;
}

.toggle-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
    color: #000000;
    margin-left: 8px;
}

.problem-title.active .toggle-icon {
    transform: rotate(180deg);
}

.problem-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0;
    padding-left: 0;
    color: #000000;
    font-size: 14px;
    line-height: 1.6;
}

.problem-description.show {
    max-height: 500px;
    margin-top: 15px;
}

.checkbox-container {
    display: inline-block;
    position: relative;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    display: inline-block;
    height: 30px;
    width: 30px;
    background-color: white;
    border: 2px solid #000000;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input:not(:disabled) ~ .checkmark {
    border-color: #000000;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #000000;
    border-color: #000000;
}

.checkbox-container input:disabled ~ .checkmark {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkbox-container input:disabled {
    cursor: not-allowed;
}

.checkbox-container.disabled {
    cursor: not-allowed;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 10px;
    top: 5px;
    width: 8px;
    height: 15px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.mayor-section {
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.mayor-section.disabled {
    opacity: 0.9;
}

.mayor-checkbox {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mayor-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.vote-section {
    text-align: center;
}

.counter-section {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.vote-button {
    background: #000000;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 400;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
}

.vote-button:hover:not(:disabled) {
    opacity: 0.8;
}

.vote-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 1;
}

.vote-button.auth-link {
    display: inline-block;
    background: #000000;
    text-decoration: none;
}

.vote-button.auth-link:hover {
    opacity: 0.8;
}

.error-message {
    color: #dc3545;
    margin-top: 15px;
    font-weight: 400;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    color: #000000;
    margin-top: 15px;
    font-weight: 400;
    font-size: 18px;
    display: none;
}

.success-message.show {
    display: block;
}

.auth-section {
    padding: 60px 30px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 10px;
}

.auth-description {
    font-size: 18px;
    color: #000000;
    margin-bottom: 30px;
}

.auth-button {
    display: inline-block;
    background: #000000;
    color: white;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.auth-button:hover {
    opacity: 0.8;
}


@media (max-width: 768px) {
    header h1 {
        font-size: 24px;
    }

    .problem-title {
        font-size: 15px;
    }

    .ballot {
        padding: 20px;
    }

    .vote-button {
        width: 100%;
        padding: 15px 20px;
    }
}
