/* Speech Interview Multi Plugin Styles */
#speech-multi-questions, #speech-multi-criteria, #speech-multi-test, #speech-multi-results, #speech-multi-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
}

#speech-multi-questions h2, #speech-multi-criteria h2, #speech-multi-test h2, #speech-multi-results h2, #speech-multi-content h2 {
    color: #1a365d;
    font-size: 32px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #4299e1;
    font-weight: 700;
    text-align: center;
}

/* Language Selection Styles */
.speech-multi-language-selection {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    margin: 25px 0;
    border-radius: 12px;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.speech-multi-language-selection h3 {
    color: white;
    margin-top: 0;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.speech-multi-language-selection label {
    color: white;
    font-weight: 600;
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
}

.speech-multi-language-selection select {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    color: #2d3748;
    width: 100%;
    max-width: 300px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.speech-multi-language-selection select:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Form Styles */
#speech-multi-questions-form, #speech-multi-criteria-form, #speech-multi-test-form {
    display: block;
    visibility: visible;
    transition: all 0.3s ease;
}

.speech-multi-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    font-size: 14px;
}

.speech-multi-table th {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    font-weight: 600;
    padding: 18px;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.speech-multi-table td {
    border-bottom: 1px solid #edf2f7;
    padding: 16px;
    color: #2d3748;
    transition: background-color 0.2s ease;
}

.speech-multi-table tr:nth-child(even) {
    background: #f8fafc;
}

.speech-multi-table tr:hover {
    background: #e6fffa;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.speech-multi-table tr:hover td {
    color: #2d3748;
}

/* Input and Form Element Styles */
input[type="text"], input[type="email"], input[type="number"], textarea, input[type="file"], select {
    width: 100%;
    padding: 14px 18px;
    margin: 10px 0 25px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    font-family: inherit;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="number"]:focus, 
textarea:focus, input[type="file"]:focus, select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.1);
    background: #fff;
    transform: translateY(-2px);
}

textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    display: block;
    font-size: 15px;
}

/* Button Styles */
input[type="submit"], button, .button {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 16px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.5px;
}

input[type="submit"]:hover, button:hover, .button:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.3);
}

input[type="submit"]:active, button:active, .button:active {
    transform: translateY(-1px);
}

input[type="submit"]:disabled, button:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

input[type="submit"]:disabled:hover, button:disabled:hover {
    background: #a0aec0;
    transform: none;
    box-shadow: none;
}

.button-danger {
    background: linear-gradient(135deg, #e53e3e, #c53030) !important;
}

.button-danger:hover {
    background: linear-gradient(135deg, #c53030, #9b2c2c) !important;
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.3) !important;
}

/* Voice Controls */
#speech-multi-voice-controls {
    background: linear-gradient(135deg, #edf2f7, #e2e8f0);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #cbd5e0;
    margin: 25px 0;
    text-align: center;
}

#speech-multi-fix-voice-btn {
    background: linear-gradient(135deg, #9f7aea, #805ad5);
    margin-right: 15px;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

#speech-multi-fix-voice-btn:hover {
    background: linear-gradient(135deg, #805ad5, #6b46c1);
    box-shadow: 0 4px 15px rgba(159, 122, 234, 0.3);
    transform: translateY(-2px);
}

#speech-multi-voice-select {
    width: auto;
    min-width: 280px;
    display: inline-block;
    margin: 0;
    background: white;
    padding: 10px 15px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
}

/* Test Interface Styles - FIXED: Proper visibility control */
#speech-multi-test-recorder {
    display: none; /* Hidden by default */
    visibility: visible;
    opacity: 1;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 15px;
    padding: 30px;
    margin-top: 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#speech-multi-test-recorder.active {
    display: block; /* Show when active */
}

#speech-multi-question-counter {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 5px solid #4299e1;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#speech-multi-question-display {
    font-size: 22px;
    font-weight: 500;
    color: #2d3748;
    line-height: 1.7;
    margin: 25px 0;
    padding: 25px;
    background: white;
    border-radius: 10px;
    border-left: 5px solid #e53e3e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#speech-multi-timer-display {
    font-size: 28px;
    font-weight: 800;
    color: #e53e3e;
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    border-radius: 10px;
    animation: speechMultiPulse 2s infinite;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.2);
}

@keyframes speechMultiPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(229, 62, 62, 0.2);
    }
    50% { 
        transform: scale(1.03);
        box-shadow: 0 6px 20px rgba(229, 62, 62, 0.3);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(229, 62, 62, 0.2);
    }
}

#speech-multi-score-display {
    font-size: 22px;
    font-weight: 700;
    color: #38a169;
    margin: 20px 0;
    padding: 18px;
    background: #f0fff4;
    border-radius: 8px;
    border-left: 5px solid #38a169;
    text-align: center;
}

#speech-multi-comment-display {
    font-size: 17px;
    color: #4a5568;
    margin: 20px 0;
    padding: 20px;
    background: #ebf8ff;
    border-radius: 8px;
    border-left: 5px solid #4299e1;
    line-height: 1.6;
    text-align: center;
}

#speech-multi-transcription-display {
    font-size: 16px;
    color: #718096;
    font-style: italic;
    margin: 20px 0;
    padding: 20px;
    background: #fffaf0;
    border-radius: 8px;
    border-left: 5px solid #ed8936;
    line-height: 1.6;
    text-align: center;
    min-height: 60px;
}

#speech-multi-processing-display {
    color: #e53e3e;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    padding: 20px;
    background: #fed7d7;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 5px solid #e53e3e;
    display: none;
}

/* Checkbox Styles */
input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.3);
    accent-color: #4299e1;
}

/* Debug Message */
#speech-multi-debug-message {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 20px;
    padding: 15px;
    background: #fed7d7;
    border-radius: 6px;
    border-left: 4px solid #e53e3e;
    font-family: 'Courier New', monospace;
    display: none;
}

/* Results and Content Management */
.speech-multi-score-summary {
    background: linear-gradient(135deg, #90cdf4, #4299e1);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

.speech-multi-score-item {
    margin: 18px 0;
    font-size: 19px;
}

.speech-multi-score-item strong {
    font-weight: 700;
}

.speech-multi-calculated-average {
    font-size: 22px;
    font-weight: 800;
    color: #38a169;
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: #f0fff4;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(56, 161, 105, 0.2);
}

.speech-multi-test-session {
    border: 1px solid #cbd5e0;
    padding: 25px;
    margin: 30px 0;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.speech-multi-test-session:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.speech-multi-test-details {
    background: #f7fafc;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 5px solid #4299e1;
}

.speech-multi-question-pair {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #e2e8f0;
}

.speech-multi-question-pair:last-child {
    border-bottom: none;
}

.speech-multi-question-pair hr {
    border: 0;
    border-top: 2px dashed #e2e8f0;
    margin: 20px 0;
}

/* Content Management Styles */
.speech-multi-storage-stats, .speech-multi-bulk-actions {
    background: linear-gradient(135deg, #f7fafc, #e2e8f0);
    padding: 25px;
    margin: 25px 0;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.speech-multi-bulk-actions form {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.wp-list-table {
    margin-top: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.wp-list-table th.check-column {
    width: 2.5em;
}

.check-column input[type="checkbox"] {
    margin: 0 auto;
    display: block;
}

/* Language Indicators */
.speech-multi-language-indicator {
    display: inline-block;
    padding: 6px 12px;
    background: #4299e1;
    color: white;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}

.language-en { background: #4299e1; }
.language-zh { background: #e53e3e; }
.language-fr { background: #805ad5; }
.language-es { background: #38a169; }
.language-de { background: #ed8936; }
.language-it { background: #0bc5ea; }
.language-ja { background: #d69e2e; }
.language-ko { background: #c53030; }
.language-pt { background: #9f7aea; }
.language-ru { background: #4a5568; }

/* Success and Error Messages */
.notice {
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 5px solid;
    font-size: 15px;
}

.notice-success {
    background: #f0fff4;
    border-color: #38a169;
    color: #2f855a;
}

.notice-error {
    background: #fed7d7;
    border-color: #e53e3e;
    color: #c53030;
}

.notice-warning {
    background: #fffaf0;
    border-color: #ed8936;
    color: #dd6b20;
}

#speech-multi-questions-message, #speech-multi-criteria-message {
    margin-top: 20px;
    padding: 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
}

.success {
    background: #f0fff4;
    border: 2px solid #38a169;
    color: #2f855a;
}

.error {
    background: #fed7d7;
    border: 2px solid #e53e3e;
    color: #c53030;
}

/* User Information Fields Styles */
.speech-multi-user-info-fields {
    background: linear-gradient(135deg, #f0fff4, #c6f6d5);
    padding: 25px;
    margin: 25px 0;
    border-radius: 12px;
    border: 2px solid #38a169;
}

.speech-multi-user-info-fields h3 {
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid #38a169;
    padding-bottom: 10px;
}

.speech-multi-user-fields-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.speech-multi-user-field {
    margin-bottom: 15px;
}

.speech-multi-user-field label {
    font-weight: 600;
    color: #2d3748;
    display: block;
    margin-bottom: 8px;
}

.speech-multi-user-field input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.speech-multi-user-field input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.speech-multi-user-field input[readonly] {
    background-color: #f7fafc;
    border-color: #a0aec0;
    color: #718096;
    cursor: not-allowed;
}

.speech-multi-user-field small {
    color: #718096;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.speech-multi-guest-notice {
    background: #fffaf0;
    border: 1px solid #ed8936;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    grid-column: 1 / -1;
}

.speech-multi-guest-notice p {
    margin: 0;
    color: #dd6b20;
    font-weight: 500;
}

/* Password Protection Styles */
.post-password-form {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.post-password-form p {
    margin-bottom: 20px;
    color: #856404;
    font-size: 16px;
}

.post-password-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #856404;
}

.post-password-form input[type="password"] {
    padding: 12px 15px;
    border: 2px solid #ffeaa7;
    border-radius: 6px;
    font-size: 16px;
    width: 300px;
    max-width: 100%;
    margin-bottom: 15px;
}

.post-password-form input[type="submit"] {
    background: #f39c12;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.post-password-form input[type="submit"]:hover {
    background: #e67e22;
}

/* Test Controls */
.speech-multi-test-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.speech-multi-test-controls button {
    padding: 12px 25px;
    font-size: 16px;
    min-width: 150px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#speech-multi-next-question {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

#speech-multi-next-question:hover:not(:disabled) {
    background: linear-gradient(135deg, #3182ce, #2c5aa0);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

#speech-multi-next-question:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#speech-multi-finish-test {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
}

#speech-multi-finish-test:hover {
    background: linear-gradient(135deg, #c53030, #9b2c2c);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

/* Button Loading States */
#speech-multi-test-submit:disabled {
    background: #a0aec0 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Form Validation */
.speech-multi-user-field input:invalid {
    border-color: #e53e3e;
}

.speech-multi-user-field input:valid {
    border-color: #38a169;
}

/* Debug Message */
#speech-multi-debug-message {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #f7fafc;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #4299e1;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #speech-multi-questions, #speech-multi-criteria, #speech-multi-test, #speech-multi-results, #speech-multi-content {
        margin: 20px 15px;
        padding: 25px;
        max-width: none;
    }
}

@media (max-width: 768px) {
    #speech-multi-questions, #speech-multi-criteria, #speech-multi-test, #speech-multi-results, #speech-multi-content {
        margin: 15px 10px;
        padding: 20px;
    }
    
    #speech-multi-questions h2, #speech-multi-criteria h2, #speech-multi-test h2, #speech-multi-results h2, #speech-multi-content h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .speech-multi-table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
    }
    
    .speech-multi-table th, .speech-multi-table td {
        padding: 12px 8px;
        white-space: nowrap;
    }
    
    #speech-multi-question-display {
        font-size: 19px;
        padding: 20px;
    }
    
    #speech-multi-timer-display {
        font-size: 24px;
        padding: 18px;
    }
    
    .speech-multi-language-selection {
        padding: 20px;
    }
    
    .speech-multi-language-selection select {
        max-width: 100%;
    }
    
    input[type="submit"], button, .button {
        width: 100%;
        margin-bottom: 15px;
        padding: 14px;
    }
    
    #speech-multi-voice-controls {
        text-align: center;
    }
    
    #speech-multi-fix-voice-btn, #speech-multi-voice-select {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .speech-multi-user-fields-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .speech-multi-test-controls {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    #speech-multi-questions, #speech-multi-criteria, #speech-multi-test, #speech-multi-results, #speech-multi-content {
        padding: 15px;
        margin: 10px 5px;
    }
    
    #speech-multi-questions h2, #speech-multi-criteria h2, #speech-multi-test h2, #speech-multi-results h2, #speech-multi-content h2 {
        font-size: 22px;
    }
    
    .speech-multi-table {
        font-size: 12px;
    }
    
    #speech-multi-question-display {
        font-size: 17px;
        padding: 15px;
    }
    
    input[type="text"], input[type="email"], textarea, select {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .speech-multi-test-controls button {
        min-width: 100%;
    }
}

/* Print Styles */
@media print {
    #speech-multi-voice-controls, 
    .speech-multi-bulk-actions, 
    input[type="submit"], 
    button {
        display: none !important;
    }
    
    #speech-multi-questions, #speech-multi-criteria, #speech-multi-test, #speech-multi-results, #speech-multi-content {
        box-shadow: none;
        border: 2px solid #000;
        margin: 0;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    #speech-multi-questions, #speech-multi-criteria, #speech-multi-test, #speech-multi-results, #speech-multi-content {
        border: 3px solid #000;
    }
    
    .speech-multi-table th {
        background: #000;
        color: #fff;
    }
    
    input[type="text"], input[type="email"], textarea, select {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    #speech-multi-timer-display {
        animation: none;
    }
    
    .speech-multi-test-session:hover {
        transform: none;
    }
    
    input[type="submit"]:hover, button:hover, .button:hover {
        transform: none;
    }
}


