.yns-survey-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.yns-question h3,
h3.summary {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    font-size: 1.4em;
}

p.note {
    text-align: center;
}

.yns-results-summary {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: #666;
}

.yns-voting-container {
    margin-top: 20px;
}

.yns-answer-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.yns-option {
    flex: 1;
    text-align: center;
}

.yns-option input[type="radio"] {
    display: none;
}

.yns-option-label {
    display: block;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    color: #666;
}

.yns-no-option .yns-option-label:hover,
.yns-no-option input[type="radio"]:checked + .yns-option-label {
    background: #A589D1;
    border-color: #201433;
    color: #201433;
}

.yns-yes-option .yns-option-label:hover,
.yns-yes-option input[type="radio"]:checked + .yns-option-label {
    background: #D8CCEB;
    border-color: #8C68C4;
    color: #8C68C4;
}

.yns-option-text {
    margin-right: 8px;
}

.yns-count {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9em;
}

/* Ruler indicator */
.yns-ruler-indicator {
    margin: 20px 0;
}

.yns-ruler-bar {
    height: 40px;
    display: flex;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid #ddd;
}

.yns-no-bar {
    background: linear-gradient(to right, #3c005a, #7247B8);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10px;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
}

.yns-yes-bar {
    background: linear-gradient(to left, #8C68C4, #D8CCEB);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
}

/* Email form */
.yns-email-form {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.yns-form-group {
    margin-bottom: 15px;
}

.yns-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

#yns-email {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

#yns-email:focus {
    outline: none;
    border-color: #0066cc;
}

.yns-email-error {
    color: #cc0000;
    font-size: 0.9em;
    margin-top: 5px;
}

.yns-submit-btn {
    background: #8C68C4;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
    width: 100%;
}

.yns-submit-btn:hover {
    background: #F1EDF8;
    color: #201433;
    border: 2px #201433 solid;
    transition: all 2s ease;
}

.yns-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Messages */
.yns-message-container {
    margin-top: 15px;
}

.yns-success-message {
    color: #2d862d;
    background: #e6ffe6;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #2d862d;
}

.yns-error-message {
    color: #cc0000;
    background: #ffe6e6;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #cc0000;
}

.yns-user-vote {
    margin-top: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 5px;
    border-left: 4px solid #0066cc;
    text-align: center;
}

.yns-user-vote p {
    margin: 0;
    font-size: 1.1em;
}

@keyframes color-shift {
    0% {
        background-color: #3c005a;
    }

    50% {
        background-color: #C3B1E1;
    }

    100% {
        background-color: #8C68C4;
    }
}

.yns-total-votes {
    background-color: #a8dadc;
    animation: color-shift 5s infinite alternate;
    /* Animates the background color */
    border: none;
    padding: 12px;
    border-radius: 8px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

hr.rotated-line {
    border: none;
    /* Remove default border */
    border-top: 2px solid #ccc;
    /* Add a custom top border */
    margin: 20px 0;
    /* Add some spacing */
    border-color: #7247B8;
}

/* Message input styles */
.yns-message-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    resize: vertical;
    min-height: 100px;
}

.yns-message-input:focus {
    outline: none;
    border-color: #8C68C4;
}

.yns-message-counter {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.yns-message-error {
    color: #cc0000;
    font-size: 0.9em;
    margin-top: 5px;
}

/* File upload styles */
.yns-file-input {
    width: 100%;
    padding: 8px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.yns-file-input:hover {
    border-color: #8C68C4;
}

.yns-file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.yns-file-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    position: relative;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.yns-file-item:hover {
    border-color: #8C68C4;
    box-shadow: 0 2px 8px rgba(140, 104, 196, 0.2);
}

.yns-file-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.yns-file-preview img {
    max-width: 80px;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.yns-file-icon {
    font-size: 32px;
    margin-bottom: 8px;
    color: #6c757d;
}

.yns-file-name {
    font-size: 11px;
    word-break: break-all;
    margin-bottom: 4px;
    color: #495057;
    text-align: center;
    line-height: 1.3;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.yns-file-size {
    font-size: 10px;
    color: #6c757d;
}

/* Fixed delete button */
.yns-file-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3232;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 10;
}

.yns-file-remove:hover {
    background: #a00;
    transform: scale(1.1);
}

.yns-file-remove:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(220, 50, 50, 0.3);
}

.yns-file-remove::before {
    content: "×";
    font-weight: bold;
    display: block;
    margin-top: -1px;
}

.yns-file-error {
    color: #cc0000;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Character limit warnings */
.yns-char-warning {
    color: #f56e28;
}

.yns-char-danger {
    color: #cc0000;
}

.description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.mandatory {
    color: red;
}

/* Language validation styles */
.yns-language-error {
    color: #dc3232;
    background: #ffe6e6;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #dc3232;
    margin-top: 5px;
    font-size: 0.9em;
}

.yns-language-invalid {
    border-color: #dc3232 !important;
    background-color: #fff5f5 !important;
}

.yns-language-invalid:focus {
    box-shadow: 0 0 0 1px #dc3232 !important;
}

/* Language indicator */
.yns-language-indicator {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    background: #f0f0f0;
}

.yns-language-chinese {
    background: #e6f7ff;
    color: #0066cc;
}

.yns-language-english {
    background: #f0ffe6;
    color: #2d862d;
}

.yns-language-mixed {
    background: #fff7e6;
    color: #f56e28;
}

/* Character counter styles */
.yns-char-warning {
    color: #f56e28;
    font-weight: bold;
}

.yns-char-danger {
    color: #dc3232;
    font-weight: bold;
}

/* Summary Section Styles */
.yns-summary-section {
    margin-top: 40px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.summary-table-title {
    color: #201433;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8C68C4;
    text-align: center;
    font-size: 1.5em;
}

/* Summary Stats */
.yns-summary-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.yns-stat-badge {
    background: linear-gradient(135deg, #8C68C4, #7247B8);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(140, 104, 196, 0.3);
}

.yns-stat-label {
    display: block;
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.yns-stat-value {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
}

/* Summary Table */
.yns-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.yns-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.yns-summary-table th {
    background: linear-gradient(to right, #8C68C4, #7247B8);
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border: none;
    position: sticky;
    top: 0;
}

.yns-summary-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.yns-summary-table tr:hover {
    background-color: #f8f9fa;
}

.yns-summary-table tr:last-child td {
    border-bottom: none;
}

/* Message Preview Cell */
.yns-message-preview {
    max-width: 400px;
    cursor: pointer;
    position: relative;
}

.yns-message-preview-content {
    max-height: 60px;
    overflow: hidden;
    line-height: 1.4;
    color: #495057;
}

.yns-message-preview:hover .yns-message-preview-content {
    color: #8C68C4;
}

.yns-message-preview-more {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9em;
}

/* Files Preview Cell */
.yns-files-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yns-file-thumbnail {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.yns-file-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #8C68C4;
}

.yns-file-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yns-file-thumbnail.pdf {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.yns-file-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3232;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Selection Badges */
.yns-selection-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
}

.yns-selection-restaurant {
    background: #A589D1;
    color: #201433;
}

.yns-selection-store {
    background: #D8CCEB;
    color: #8C68C4;
}

/* Date Time Format */
.yns-datetime-cell {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #6c757d;
}

/* Loading Spinner */
.yns-loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #8C68C4;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.yns-loading-row td {
    text-align: center;
    color: #6c757d;
}

/* Pagination */
/* Hide pagination only when explicitly set */
.yns-table-pagination[style*="display: none"] {
    display: none !important;
}

.yns-table-pagination.hidden {
    display: none !important;
}

.yns-prev-btn,
.yns-next-btn {
    padding: 8px 16px;
    background: #8C68C4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    min-width: 100px;
}

.yns-prev-btn:hover:not(:disabled),
.yns-next-btn:hover:not(:disabled) {
    background: #7247B8;
}

.yns-prev-btn:disabled,
.yns-next-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.yns-page-info {
    font-size: 14px;
    color: #495057;
    font-weight: bold;
}

/* Message Detail Modal */
.yns-message-detail-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.yns-message-detail-info p {
    margin: 5px 0;
}

.yns-message-full-content h4 {
    color: #201433;
    margin-bottom: 10px;
}

.yns-message-text {
    background: white;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Image Preview Modal */
.yns-image-modal .yns-modal-content {
    max-width: 90%;
    max-height: 90vh;
}

.yns-image-modal .yns-modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: #f5f5f5;
    min-height: 400px;
}

/* Empty State */
.yns-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.yns-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Modal Styles (update existing) */
.yns-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    padding: 20px;
    box-sizing: border-box;
}

.yns-modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: yns-modal-fade-in 0.3s ease-out;
    margin: 0; /* Remove any margin that might affect centering */
}

/* For message detail modal - make it a bit narrower */
.yns-message-detail-modal .yns-modal-content {
    max-width: 600px;
}

/* For image preview modal - make it fit content */
.yns-image-preview-modal .yns-modal-content {
    max-width: 90%;
    max-height: 90vh;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yns-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1;
    border-radius: 8px 8px 0 0;
}

.yns-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

/* Close button */
.yns-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.yns-modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* Modal body */
.yns-modal-body {
    padding: 20px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* Modal footer */
.yns-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
    background-color: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .yns-summary-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .yns-stat-badge {
        width: 100%;
        max-width: 300px;
    }
    
    .yns-summary-table th,
    .yns-summary-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .yns-table-pagination {
        flex-direction: column;
        gap: 10px;
    }
}

/* Page number links */
.yns-page-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.yns-page-link {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    min-width: 36px;
    text-align: center;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.yns-page-link:hover {
    background-color: #f0f0f0;
    border-color: #8C68C4;
    color: #8C68C4;
}

/* Active page number styling */
.yns-page-link.yns-current-page,
.yns-page-link.active {
    background: linear-gradient(135deg, #8C68C4, #7247B8);
    border-color: #8C68C4;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(140, 104, 196, 0.3);
}

.yns-page-separator {
    color: #999;
    padding: 0 5px;
    user-select: none;
}

.yns-page-info {
    margin-right: 15px;
    font-weight: bold;
    color: #666;
    min-width: 100px;
    text-align: center;
}

.yns-page-separator {
    color: #999;
    padding: 0 5px;
}

.yns-page-info {
    margin-right: 15px;
    font-weight: bold;
    color: #666;
}

/* Pagination container */
.yns-table-pagination {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.yns-pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Page numbers container */
#yns-page-links {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Active page animation */
@keyframes activePagePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.yns-page-link.yns-current-page {
    animation: activePagePulse 0.3s ease;
}

/* Responsive design for pagination */
@media (max-width: 768px) {
    .yns-table-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .yns-pagination-container {
        order: 1;
        margin: 10px 0;
    }
    
    .yns-prev-btn,
    .yns-next-btn {
        order: 2;
        width: 100%;
        max-width: 200px;
    }
    
    #yns-page-links {
        max-width: 100%;
        overflow-x: auto;
        padding: 5px 0;
    }
    
    .yns-page-link {
        min-width: 28px;
        padding: 4px 8px;
        font-size: 13px;
    }
}

/* Image preview specific styles */
#yns-image-container {
    text-align: center;
    margin-bottom: 20px;
}

#yns-preview-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 4px;
}

#yns-pdf-container {
    width: 100%;
    height: 70vh;
}

#yns-pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

/* Animation for modal */
@keyframes yns-modal-fade-in {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .yns-modal {
        padding: 10px;
    }
    
    .yns-modal-content {
        width: 95%;
    }
    
    .yns-message-detail-modal .yns-modal-content {
        max-width: 95%;
    }
    
    .yns-image-preview-modal .yns-modal-content {
        max-width: 95%;
    }
}

.yns-prev-btn:disabled,
.yns-next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* CAPTCHA styles */
.yns-captcha-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.yns-captcha-container {
    margin-top: 10px;
}

.yns-captcha-image-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

#yns-captcha-image {
    height: 60px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #fff;
    padding: 5px;
}

#yns-refresh-captcha,
#yns-audio-captcha {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#yns-captcha {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    letter-spacing: 2px;
    text-align: center;
}

#yns-check-captcha {
    background: #0073aa;
    color: white;
    border: none;
}

#yns-check-captcha:hover {
    background: #005a87;
}

.yns-captcha-error {
    color: #dc3232;
    background: #ffe6e6;
    padding: 8px;
    border-radius: 4px;
    border-left: 4px solid #dc3232;
    margin-top: 5px;
}

.yns-captcha-success {
    color: #2d862d;
    background: #e6ffe6;
    padding: 8px;
    border-radius: 4px;
    border-left: 4px solid #2d862d;
    margin-top: 5px;
}

.yns-captcha-loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.yns-captcha-valid {
    border-color: #46b450 !important;
    background-color: #f8fff8 !important;
}

.yns-captcha-invalid {
    border-color: #dc3232 !important;
    background-color: #fff5f5 !important;
}

/* CAPTCHA button styles */
#yns-refresh-captcha,
#yns-audio-captcha {
    background: #8C68C4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    min-width: 40px;
    height: 40px;
}

#yns-refresh-captcha:hover,
#yns-audio-captcha:hover {
    background: #7247B8;
}

#yns-refresh-captcha:disabled,
#yns-audio-captcha:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.yns-captcha-icon {
    font-size: 16px;
    display: block;
}

/* Fix button alignment */
.yns-captcha-image-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

#yns-captcha-image {
    height: 60px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #fff;
    padding: 5px;
    flex-shrink: 0;
}

/* Check CAPTCHA button */
#yns-check-captcha {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

#yns-check-captcha:hover {
    background: #005a87;
}

#yns-check-captcha:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Audio CAPTCHA styles */
.yns-audio-playing {
    animation: pulse 1.5s infinite;
    border-left: 3px solid #0073aa;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Audio button states */
#yns-audio-captcha:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Small spinner for audio button */
#yns-audio-captcha .yns-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}