#listen-ui {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}


.practice-header {
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
}

.practice-options {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.practice-options label {
    font-size: 16px;
    color: #333;
}

@media (max-width: 768px) {
  .practice-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .practice-options label {
    margin-left: 0 !important;
  }
}
.practice-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.tab-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;

    border-bottom: 1px solid #e0e0e0;
}

.tab-item {
    padding: 12px 24px;
    cursor: pointer;
    color: #000 !important;
    font-weight: 300;
    transition: all 0.2s ease;
}

.tab-item.active {
    color: #fff !important ;
    font-weight: 300;
	background: #289275 !important;
}

#practice-main {
	max-width: 1000px;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    max-width: 100% !important;
    margin-top: 25px !important;
	margin-bottom: 25px !important;
	border: 1px solid #ebebeb;
}

.sentence-info {
    font-size: 20px;
    font-weight: bold;
    color: #22c55e;
    margin-bottom: 12px;
}

.practice-audio {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.practice-audio button {
    padding: 10px 16px;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.exercise {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.exercise input {
    flex: 1;
    padding: 20px 20px;
    font-size: 25px;
    border-radius: 6px;
    background: #f9fafb;

}

#btn-check {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    background: #e3f2fd !important;
    color: #fff;
    font-size: 20px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

#btn-check:hover {
    background: #16a34a;
}

#result {
    border-radius: 8px;
    padding: 25px;
    background: #fff3e0;
    margin-top: 30px !important;
    min-height: 40px;
    font-size: 16px;
    text-align: center;
    color: #666;
	margin-bottom: 30px;
}

#result:empty::before {
	font-style: italic;
    content: "Bấm kiểm tra để kiểm tra mức độ chính xác.";
    color: #999;
}

/* Mặc định: 2 cột hoặc inline-block */
.script-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.script-item {
  flex: 1 1 calc(50% - 12px);
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Giao diện mobile: 1 cột */
@media (max-width: 768px) {
  .script-item {
    flex: 1 1 100%;
  }
}


.script-item small {
    display: block;
    margin-top: 8px;
    font-size: 15px;
    color: #555;
}

#progress-bar-container {
    background: #eee;
    border-radius: 8px;
    height: 10px;
    margin-top: 4px;
}

#progress-bar {
    height: 10px;
    background: #22c55e;
    width: 0%;
    border-radius: 8px;
    transition: width 0.3s ease;
}

#speakingIcon {
	padding:5px;
    width: 140px;
    height: 50px;
    border: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px !important;
	margin-bottom: 35px !important;
}

.practice-nav {
    display: flex;
	padding: 0 14px;
    justify-content: center;
    gap: 10px !important;
}

.practice-nav button {
    padding: 12px 4px !important;
    min-width: 80px;
    border-radius: 12px;
    font-weight: 300 !important;
    background: #22c55e;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.practice-nav button:hover {
    background: #16a34a;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

label, legend {
    font-size: 16px;
    font-weight: 300;
}

.listen-practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.listen-topic-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
}

.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-icon {
	margin-left:10px;
    width: 18px;
    height: 18px;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    background-color: #ffffff;
    color: #333333;
    text-align: left;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border: 1px solid #e5e7eb;
    font-size: 14px;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text ul {
    margin: 0;
    padding-left: 20px;
}

.tooltip-text li {
    margin-bottom: 5px;
}


