/* Message Board Polls */
.mb-poll {
    margin: 1rem 0;
    padding: 1rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.mb-poll-question {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #630031;
}

.mb-poll-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Voting buttons (before voting) */
.mb-poll-option-btn {
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: left;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mb-poll-option-btn:hover {
    border-color: #630031;
    background: #faf5f5;
}

.mb-poll-option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Results display (after voting) */
.mb-poll-result {
    margin-bottom: 0.5rem;
}

.mb-poll-result-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.mb-poll-result-text {
    font-weight: 500;
    color: #444;
    font-size: 0.95rem;
}

.mb-poll-result-text.user-vote {
    color: #630031;
    font-weight: 600;
}

.mb-poll-result-text.user-vote::before {
    content: "✓ ";
}

.mb-poll-result-stats {
    font-size: 0.95rem;
    color: #333;
}

.mb-poll-bar-container {
    background: #e0e0e0;
    border-radius: 4px;
    height: 20px;
    overflow: hidden;
}

.mb-poll-bar {
    height: 100%;
    background: #630031;
    border-radius: 4px;
    min-width: 2px;
    transition: width 0.3s ease;
}

.mb-poll-footer {
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.mb-poll-total {
    font-style: italic;
}

.mb-poll-status {
    color: #888;
}

.mb-poll-status.closed {
    color: #c00;
}

/* Poll creation form */
.mb-poll-create {
    margin-top: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.mb-poll-create-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.mb-poll-create-title {
    font-weight: 600;
    color: #630031;
}

.mb-poll-create .form-group {
    margin-bottom: 0.75rem;
}

.mb-poll-create label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.25rem;
}

.mb-poll-create input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
}

.mb-poll-create input[type="text"]:focus {
    outline: none;
    border-color: #630031;
}

.mb-poll-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mb-poll-option-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.mb-poll-option-input input {
    flex: 1;
}

.mb-poll-option-input .option-num {
    font-size: 0.85rem;
    color: #888;
    width: 1.5rem;
}

.mb-poll-add-option {
    font-size: 0.85rem;
    color: #630031;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0;
}

.mb-poll-add-option:hover {
    text-decoration: underline;
}

.mb-poll-expiry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mb-poll-expiry select {
    padding: 0.375rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .mb-poll {
        padding: 0.75rem;
    }
    
    .mb-poll-question {
        font-size: 0.95rem;
    }
    
    .mb-poll-option-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}
