#vocab-learning-container {
    max-width: 900px;
    margin: 20px auto;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

#vocab-statistics {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1em;
    color: #333;
}

#progress-bar {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
}
#progress-bar::-webkit-progress-bar {
    background: #eee;
}
#progress-bar::-webkit-progress-value {
    background: #4caf50;
}

.vocab-layout {
    display: flex;
    gap: 20px;
}

.vocab-left {
    flex: 0 0 35%;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    max-height: 650px;
    overflow-y: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.vocab-right {
	flex:1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid #ddd;
    padding: 16px;
    border-radius: 8px;
    background: #fff;
	    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    min-height: 500px; /* Hoặc tuỳ chỉnh chiều cao bạn muốn */
}


#sentence-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sentence-item {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.sentence-item:hover {
    background: #f5f7fa;
}

.sentence-item.selected {
    background: #e3f2fd;
}

.sentence-item.learned {
    font-weight: normal;
}

#learning-card {
    text-align: center;
}

.exercise-block {
    margin-top: 16px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    text-align: center;

}

.exercise-title {
    color:#000000;
		font-style: italic;
    margin-bottom: 0px!important;
}

.sentence-block {
    margin-top: 8px;
}
.korean-sentence {
	margin-top:10px;
    font-size: 18px;
	color: #02a231;
    margin-bottom: 5px!important;
    font-weight: bold;
}

.vietnamese-meaning {

    margin-bottom: 5px !important;
    color: #555;
}

#vocab-explanations {
    margin-bottom: 18px;
    text-align: center;
}

.vocab-word-explain {
    margin: 12px 0;
}

.vocab-word {
    display: inline-block;
    background: #fff8d1;
    border: 1px solid #f0ad4e;
    padding: 4px 8px;
    margin-right: 8px;
    border-radius: 4px;
    font-weight: bold;
    color: #d35400;
}

.vocab-meaning {
    font-weight: normal;
    color: #333;
}

.vocab-explain {
    margin-top: 6px;
	margin-bottom: 20px
    color: #555;
    font-size: 16px;
}


.vocab-navigation {
    display: none;
    margin-top: auto;
    display: flex;
    justify-content: space-between;;
    gap: 12px;
    padding-top: 20px;
}

.nav-btn {
    padding: 8px 16px;
    background: #fff;
    color: #373737;
    border-radius: 6px;
    cursor: pointer;
    font-weight: normal;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: #388e3c;
}


#play-audio, #record-speech {
    margin: 6px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 4px;
    transition: background 0.2s;
}

#play-audio:hover, #record-speech:hover {
    background: #43a047;
}

#speech-result {
    margin-top: 12px;
    font-weight: normal;
}

.item-number {
    margin-right: 6px;
    font-weight: normal;
    color: #777;
}

.highlight-vocab-pending {
    color: #fd6704;
    font-weight: normal;
}

.highlight-vocab-learned {
    color: #00bb2b;
    font-weight: normal;
}

.icon-audio {
    width: 22px;
    height: 22px;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 6px;
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0.8;
}

.icon-audio:hover {
    transform: scale(1.15);
    opacity: 1;
}

.icon-audio:active {
    transform: scale(0.9);
    opacity: 0.7;
}


#play-audio {
    display: none;
}

#record-speech {
    position: relative;
    padding-left: 36px !important; /* Chừa chỗ cho icon */
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    display: inline-block;
    line-height: 1.4;
}

#record-speech::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
	margin-right: 5px;
    background: url('https://www.tuhoctienghan.vn/wp-content/uploads/2025/07/mic-1.png') center center no-repeat;
    background-size: contain;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
}

.status-indicator {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-left: 6px;
}

/* Trạng thái đã học */
.sentence-item.learned .status-indicator {
    background-image: url('https://www.tuhoctienghan.vn/wp-content/uploads/2025/07/check.png');
}


.record-btn {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

.record-btn.green {
    background-color: #28a745;
}

.record-btn.green:hover {
    background-color: #218838;
}

.record-btn.red {
    background-color: #dc3545;
}

.record-btn.red:hover {
    background-color: #c82333;
}

#sentence-list .sentence-item {
    position: relative;
    padding-right: 28px;
}

#sentence-list .status-indicator {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
}

.record-section {
    margin-top: 20px;
    text-align: center;
}

#typing-answer {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    font-size: 16px;
}

.mic-container {
    width: 80%;
    height: 70px;
    margin: 0 auto;
    cursor: pointer;
}



@media (max-width: 768px) {
    .vocab-layout {
        flex-direction: column;
    }
    .vocab-left, .vocab-right {
        width: 100%;
    }
    .vocab-left {
        max-height: 200px;
        overflow-y: auto;
        margin-bottom: 16px;
    }
    .sentence-item {
        display: block;
        padding: 10px;
        word-break: break-word;
    }
}


#text-input {
    flex: 1;
    padding: 8px 12px;
    font-size: 16px;
	font-weight:300;
    border: 1px solid #fff;
    border-radius: 6px;
}

.check-btn {
    background: #fff !important;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-btn img,
.check-btn svg {
    width: 20px;
    height: 20px;
}

.check-btn:hover {
    background: #22c55e;
}

.typing-section {
    background: #e3f2fd;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.recording-section {
    background: #fff3e0;
    padding: 16px;
    border-radius: 8px;
}

.typing-area {
    display: flex;
    gap: 8px;
    margin-top: 10px;
	margin-bottom: 10px;
}

.typing-area input {
    flex: 1;
    padding: 8px;
}

.check-btn {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.mic-container {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

#speech-result {
    margin-top: 12px;
}


#highlight-result {
    display: none;
	margin-bottom: 5px;
}

.topic-intro {
    margin-bottom: 5px !important;
}

.topic-title {
    font-size: 18px;
	font-weight: bold;
	color: #22c55e;   /* Màu xanh lá giống Tailwind text-green-600 */

}


