.ielts-speaking-player {
    display: none; /* Hide by default until form is submitted */
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto;
}

.ielts-popup {
    display: flex; /* Show by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ielts-header {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    background: #007bff;
    color: white;
    padding: 15px;
    border-radius: 5px 5px 0 0;
}

.ielts-audio-container {
    margin-bottom: 15px;
}

.ielts-audio {
    width: 100%;
}

.ielts-toolbar {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

.ielts-toolbar button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.start-practice {
    background: #28a745;
    color: white;
}

.start-practice:hover {
    background: #218838;
}

.pause-practice {
    background: #ffc107;
    color: #333;
}

.pause-practice:hover {
    background: #e0a800;
}

.stop-practice {
    background: #dc3545;
    color: white;
}

.stop-practice:hover {
    background: #c82333;
}

.download-recording {
    background: #17a2b8;
    color: white;
}

.download-recording:hover {
    background: #138496;
}

button:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

.status, .recording-status {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.ielts-script-container {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
}

.upload-progress-bar {
    display: none;
    width: 100%;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: #28a745;
    transition: width 0.1s linear;
}

.ielts-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ielts-popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    animation: popupFadeIn 0.4s ease-out;
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ielts-popup-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

.ielts-student-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ielts-student-form label {
    font-weight: 600;
    color: #34495e;
    display: block;
    margin-bottom: 5px;
}

.ielts-student-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ielts-student-form input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.ielts-student-form button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.ielts-student-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.popup-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.popup-status.error {
    background: #fdecea;
    color: #d32f2f;
}

.popup-status.success {
    background: #e8f5e9;
    color: #388e3c;
}