.learner-login-required-container {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 500px !important;
    padding: 30px;
    border: 1px solid lightgray;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.learner-profile-container {
    position: relative;
    display: flex;
    border: 1px solid lightgray;
    border-radius: 5px;
    margin: 5px !important;
}

.learner-profile-container input {
    background-color: white;
    color: black;
    border: 1px solid black;
    border-radius: 5px;
    line-height: 1;
    margin-bottom: 10px;
}

.learner-profile-container input:focus {
    outline-color: black;
}

.learner-profile-container button[type="submit"] {
    margin-top: 10px;
    margin-bottom: 10px;
    width: fit-content;
}

.learner-profile-container button[type="submit"]:disabled {
    background-color: darkgray;
}

.learner-profile-left-column {
    border-right: 1px solid lightgray;
    text-align: center;
    margin: 0px !important;
}

.learner-profile-image {
    border-radius: 50%;
    background-color: black;
    color: white;
    width: 80px;
    height: 80px;
    font-size: 20px;
    line-height: 80px;
    display: inline-block;
    margin-top: 10px;
}

.learner-profile-menu {
    margin-top: 10px;
}

.learner-profile-menu-item {
    padding: 10px 20px;
    cursor: pointer;
    display: block;
    color: black;
    text-decoration: none !important;
}

.learner-profile-menu-item[href="?menu=subscription"] {
    background-color: lightyellow;
}

.learner-profile-menu-item[href="?menu=progress"] {
    background-color: lightcyan;
}

.learner-profile-menu-item[href="?menu=class"] {
    background-color: rgb(241, 237, 255);
}

.learner-profile-menu-item.selected, .learner-profile-menu-item:hover {
    background-color: rgb(65, 65, 65);
    color: white;
}

.learner-profile-right-column {
    padding: 30px;
    width: 100%;
}

.learner-menu-content {
    display: none;
}

.learner-menu-content.selected {
    display: flex;
    flex-direction: column;
}

.premium-member-badge {
    background: linear-gradient(135deg, #ffdca8, #ffeea8);
    border: 2px solid #ffbf7e;
    border-radius: 5px;
    padding: 10px 20px;
}

.premium-member-badge i {
    color: #ffbe47;
    border-radius: 50%;
    background-color: #111111;
    padding: 8px;
    font-size: 16px;
}

.saved-premium-activation-code {
    width: 100%;
    padding: 10px 20px;
    border: 1px solid lightgray;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 15px;
}

.premium-plan-purchase-incentive {
    width: 100%;
    padding: 10px 20px;
    border: 3px dashed red;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    text-align: center;
}

.premium-plan-purchase-incentive a {
    color: red;
    font-weight: bold;
}

.learner-progress-divider {
    margin-top: 10px;
    margin-bottom: 50px;
    background-color: lightcyan;
    height: 5px;
}

.progress-header {
    font-size: 30px !important;
    margin-bottom: 5px !important;
}

iframe {
    border: 2px solid black;
    border-radius: 5px;
}

.back-to-all-progress-button {
    margin-bottom: 20px;
    display: inline-block;
}

.writing-task-essay-item, .speaking-part-answer-item, .ielts-test-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px;
    border: 1px solid lightgray;
    border-radius: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.writing-task-essay-item-band-score, .speaking-part-answer-item-band-score, .ielts-test-item-band-score {
    font-weight: bold;
    white-space: nowrap;
    font-size: 18px;
    margin-right: 20px;
}

.delete-ielts-test-item-progress-button, .delete-writing-task-essay-item-progress-button, .delete-speaking-part-answer-item-progress-button {
    position: absolute;
    top: -12px;
    right: -12px;
    background-color: white;
    width: 26px;
    height: 26px;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid gray;
    border-radius: 50%;
    font-size: 14px;
    color: black;
    font-weight: bold;
    text-decoration: none !important;
}

.delete-ielts-test-item-progress-button:hover, .delete-writing-task-essay-item-progress-button:hover, .delete-speaking-part-answer-item-progress-button:hover {
    border-color: red;
    color: red;
}

.writing-task-essay-title, .speaking-part-answer-title, .ielts-test-title {
    font-size: 26px !important;
    margin-bottom: 5px !important;
    white-space: pre-line;
}

.band-score, .total-time-taken {
    font-size: 22px;
    font-style: italic;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 20px;
    border: 1px solid lightgray;
    border-radius: 10px;
    padding: 5px 15px;
    width: fit-content;
    display: inline-block;
}

.writing-task-essay-image-info {
    border: 1px solid lightgray;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.writing-task-essay-image-info em {
    font-size: 16px;
    line-height: 2;
}

.writing-task-question, .speaking-part-question {
    font-size: 20px;
    white-space: pre-line;
    font-weight: bold;
}

.writing-task-essay-container, .speaking-part-answer-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 50px;
}

.writing-task-essay-left-column, .speaking-part-answer-left-column {
    width: 70%;
}

.writing-task-essay-right-column, .speaking-part-answer-right-column {
    width: 30%;
}

.content-editable-div[contenteditable="false"], .content-editable-div[contenteditable="null"] {
    background-color: white !important;
}

.audio-privacy-notice {
    font-size: 13px;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.5;
}

.play-user-word-audio-button {
    display: none !important;
}

.premium-member-notice {
    color: red !important;
    font-style: italic;
}

.spinner-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999;
    flex-wrap: wrap;
    flex-direction: column;
    display: none;
}

.spinner-overlay strong {
    color: white;
    width: 100%;
    margin-bottom: 20px;
    font-size: 25px;
}

.spinner {
    display: block;
    width: 80px;
    height: 80px;
    border: 8px solid lightgray;
    border-radius: 50%;
    border-top: 8px solid #3498db;
    animation: spin 2s linear infinite;
}

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

@media screen and (max-width: 768px) {
    .learner-profile-container {
        flex-direction: column;
    }

    .learner-profile-left-column {
        border-right: none;
        border-bottom: 1px solid lightgray;
    }

    .learner-profile-menu-item {
        line-height: 1.5;
    }

    .writing-task-essay-container, .speaking-part-answer-container {
        flex-direction: column;
    }

    .writing-task-essay-left-column, .writing-task-essay-right-column, .speaking-part-answer-left-column, .speaking-part-answer-right-column {
        width: 100%;
    }
}