/**
 * JBU Voting Verification Styles
 */

/* Verification Container */
.jbu-voting-verification-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Title */
.jbu-voting-verification-title {
    margin: 0 0 20px 0;
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

/* Messages */
.jbu-voting-message {
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
}

.jbu-voting-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.jbu-voting-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.jbu-voting-message-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.jbu-voting-message-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Actions */
.jbu-voting-verification-actions {
    margin-top: 30px;
}

/* Buttons */
.jbu-voting-button {
    display: inline-block;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 0 10px;
}

.jbu-voting-button-primary {
    background: #3498db;
    color: white;
}

.jbu-voting-button-primary:hover {
    background: #2980b9;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.jbu-voting-button-secondary {
    background: #95a5a6;
    color: white;
}

.jbu-voting-button-secondary:hover {
    background: #7f8c8d;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.jbu-voting-button-success {
    background: #27ae60;
    color: white;
}

.jbu-voting-button-success:hover {
    background: #229954;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.jbu-voting-button-danger {
    background: #e74c3c;
    color: white;
}

.jbu-voting-button-danger:hover {
    background: #c0392b;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Loading States */
.jbu-voting-loading {
    display: inline-block;
    margin: 20px 0;
}

.jbu-voting-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: jbu-spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

.jbu-voting-loading-text {
    font-size: 16px;
    color: #666;
}

@keyframes jbu-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status Icons */
.jbu-voting-status-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.jbu-voting-status-icon.success {
    color: #27ae60;
}

.jbu-voting-status-icon.error {
    color: #e74c3c;
}

.jbu-voting-status-icon.warning {
    color: #f39c12;
}

.jbu-voting-status-icon.info {
    color: #3498db;
}

/* Progress Indicators */
.jbu-voting-progress {
    margin: 30px 0;
}

.jbu-voting-progress-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.jbu-voting-progress-fill {
    height: 100%;
    background: #3498db;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.jbu-voting-progress-text {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* Error Details */
.jbu-voting-error-details {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

.jbu-voting-error-code {
    font-family: monospace;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

/* Timer Display */
.jbu-voting-timer {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.jbu-voting-timer.warning {
    background: #fff3cd;
    color: #856404;
}

.jbu-voting-timer.danger {
    background: #f8d7da;
    color: #721c24;
}

/* Help Text */
.jbu-voting-help {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 0 4px 4px 0;
}

.jbu-voting-help-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.jbu-voting-help-text {
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jbu-voting-verification-container {
        margin: 20px 10px;
        padding: 20px;
    }
    
    .jbu-voting-verification-title {
        font-size: 28px;
    }
    
    .jbu-voting-message {
        padding: 15px;
        font-size: 15px;
    }
    
    .jbu-voting-button {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .jbu-voting-verification-container {
        margin: 10px 5px;
        padding: 15px;
    }
    
    .jbu-voting-verification-title {
        font-size: 24px;
    }
    
    .jbu-voting-message {
        padding: 12px;
        font-size: 14px;
    }
    
    .jbu-voting-button {
        font-size: 15px;
        padding: 10px 20px;
    }
}