/* Announcement Modal Styles */
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.announcement-modal.show {
    opacity: 1;
    visibility: visible;
}

.announcement-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.announcement-modal.show .announcement-content {
    transform: scale(1);
}

.announcement-header {
    text-align: center;
    margin-bottom: 24px;
}

.announcement-title {
    font-size: 24px;
    font-weight: bold;
    color: #F0B90B;
    margin: 0 0 16px 0;
}

.language-toggle {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: #F0B90B;
    color: white;
    border-color: #F0B90B;
}

.lang-btn:hover {
    background: #e0e0e0;
}

.lang-btn.active:hover {
    background: #e0aa0a;
}

.announcement-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 24px;
    text-align: left;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #F0B90B;
}

.vote-section {
    margin-top: 24px;
}

.vote-question {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
}

.vote-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.vote-btn {
    padding: 12px 16px;
    border: 2px solid #F0B90B;
    background: white;
    color: #F0B90B;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
}

.vote-btn:hover {
    background: #F0B90B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}

.vote-btn.selected {
    background: #F0B90B;
    color: white;
}

.vote-btn.not-interested {
    border-color: #999;
    color: #999;
}

.vote-btn.not-interested:hover {
    background: #999;
    color: white;
}

.vote-btn.not-interested.selected {
    background: #999;
    color: white;
}

.vote-submit {
    width: 100%;
    padding: 14px;
    background: #F0B90B;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.vote-submit:hover {
    background: #e0aa0a;
    transform: translateY(-1px);
}

.vote-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.close-announcement {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-announcement:hover {
    background: #f0f0f0;
    color: #333;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .announcement-content {
        padding: 24px;
        margin: 20px;
    }
    
    .announcement-title {
        font-size: 20px;
    }
    
    .announcement-text {
        font-size: 14px;
    }
    
    .vote-question {
        font-size: 16px;
    }
    
    .vote-options {
        grid-template-columns: 1fr;
    }
    
    .vote-btn {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* Loading state */
.vote-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Vote Results Styles */
.vote-results {
    margin-top: 24px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.results-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    text-align: center;
}

.result-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.result-option {
    font-weight: 600;
    color: #333;
    min-width: 80px;
    font-size: 14px;
}

.result-bar {
    flex: 1;
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.result-fill {
    height: 100%;
    background: linear-gradient(90deg, #F0B90B, #e0aa0a);
    border-radius: 12px;
    transition: width 0.8s ease;
    position: relative;
}

.result-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    font-size: 12px;
}

.result-count {
    font-weight: 600;
    color: #333;
}

.result-percentage {
    color: #666;
    font-size: 11px;
}

.total-votes {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #ddd;
    font-size: 16px;
    color: #333;
}

/* Mobile responsive for results */
@media (max-width: 768px) {
    .result-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .result-option {
        text-align: center;
        min-width: auto;
    }
    
    .result-stats {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }
}

/* No Show Option Styles */
.no-show-option {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-container:hover .checkmark {
    border-color: #F0B90B;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background-color: #F0B90B;
    border-color: #F0B90B;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 14px;
    color: #666;
    transition: color 0.2s ease;
}

.checkbox-container:hover .checkbox-text {
    color: #333;
}