/* Tab Poll System Styles */
.tab-poll-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-family: 'Sukhumvit Set', 'Arial', sans-serif;
}

.tab-poll-header {
    text-align: center;
    margin-bottom: 25px;
    color: white;
}

.tab-poll-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tab-poll-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.4;
}

.poll-options {
    margin-bottom: 20px;
}

.poll-option {
    display: block;
    padding: 15px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.poll-option:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.poll-option input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.poll-option input[type="radio"]:checked + .poll-option-text {
    color: #667eea;
    font-weight: bold;
}

.poll-option-text {
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
}

.poll-vote-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.poll-vote-btn:hover {
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(238, 90, 36, 0.4);
}

.poll-vote-btn:active {
    transform: translateY(0);
}

/* Results Styles */
.tab-poll-results {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
}

.tab-poll-results h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    text-align: center;
    font-weight: bold;
}

.poll-result-item {
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.poll-result-item .poll-option-text {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.poll-bar-container {
    position: relative;
    background: #f0f0f0;
    height: 25px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 5px;
}

.poll-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 12px;
    transition: width 1s ease-in-out;
    position: relative;
}

.poll-percentage {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.poll-votes {
    font-size: 12px;
    color: #666;
    text-align: right;
}

.poll-total {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Admin Styles */
.tab-poll-admin-stats,
.tab-poll-admin-results,
.tab-poll-admin-actions {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-poll-admin-stats h2,
.tab-poll-admin-results h2,
.tab-poll-admin-actions h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tab-poll-container {
        margin: 10px;
        padding: 20px;
    }
    
    .tab-poll-header h3 {
        font-size: 20px;
    }
    
    .tab-poll-header p {
        font-size: 14px;
    }
    
    .poll-option {
        padding: 12px;
    }
    
    .poll-option-text {
        font-size: 14px;
    }
    
    .poll-vote-btn {
        font-size: 16px;
        padding: 12px;
    }
}

/* Loading Animation */
.tab-poll-loading {
    text-align: center;
    padding: 20px;
}

.tab-poll-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.poll-success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #c3e6cb;
}

/* Error Message */
.poll-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #f5c6cb;
}
