/* eVote - Frontend Voting Styles */

.evote-voting {
    max-width: 700px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.evote-voting__card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.evote-voting__card h2 {
    color: #1B3A5C;
    margin: 0 0 10px 0;
    font-size: 24px;
}

.evote-voting__card--success {
    text-align: center;
    border: 2px solid #28a745;
}

.evote-voting__card--success h2 {
    color: #28a745;
}

/* Fields */
.evote-field {
    margin-bottom: 20px;
}

.evote-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.evote-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.evote-field input:focus {
    outline: none;
    border-color: #2B5797;
    box-shadow: 0 0 0 3px rgba(43,87,151,0.1);
}

/* Buttons */
.evote-btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.evote-btn--primary {
    background: #1B3A5C;
    color: #fff;
}

.evote-btn--primary:hover {
    background: #2B5797;
}

.evote-btn--primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.evote-btn--secondary {
    background: #e5e7eb;
    color: #333;
}

.evote-btn--secondary:hover {
    background: #d1d5db;
}

/* Error messages */
.evote-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Categories */
.evote-category {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.evote-category:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.evote-category h3 {
    color: #1B3A5C;
    font-size: 20px;
    margin: 0 0 8px 0;
}

.evote-category__info {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 16px 0;
}

.evote-category__counter {
    color: #6b7280;
    font-size: 14px;
    margin: 12px 0 0 0;
    font-weight: 600;
}

/* Candidates */
.evote-candidates {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.evote-candidate {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.evote-candidate:hover {
    border-color: #2B5797;
    background: #f0f4f8;
}

.evote-candidate--selected {
    border-color: #2B5797;
    background: #eff6ff;
}

.evote-candidate input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #1B3A5C;
    cursor: pointer;
}

.evote-candidate input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.evote-candidate__name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* Actions */
.evote-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

/* Review */
.evote-review-category {
    margin-bottom: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.evote-review-category h3 {
    color: #1B3A5C;
    font-size: 16px;
    margin: 0 0 8px 0;
}

.evote-review-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.evote-review-category li {
    padding: 6px 0;
    color: #059669;
    font-weight: 500;
}

.evote-review-warning {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .evote-voting {
        margin: 20px 16px;
    }

    .evote-voting__card {
        padding: 24px;
    }

    .evote-actions {
        flex-direction: column;
    }

    .evote-btn {
        width: 100%;
        text-align: center;
    }
}
