.material.workbook.locked::after,
.material.video.locked::after,
.material.audio.locked::after,
.material.exam.locked::after {
  content: "";
  position: absolute;
  top:0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  font-size: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.material.video.locked::before {
    content: "Please Download Your Workbook Bellow First Before Starting Your Lecture.";
    background: var( --e-global-color-primary );
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    z-index: 999;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    font-weight: bold;
}
.material.exam.locked::before {
    content: "Finish The Video to take Assessment.";
    position: absolute;
    background-color: var( --e-global-color-primary );
    color:white;
    font-weight: 500;
    padding: 12px 24px;
    width: 350px;
    z-index: 999;
    border-radius: 50px;
    font-size: 15px;
    line-height: 1;
    text-align: center;
}
@media screen and (max-width: 480px) {
    .material.exam.locked::before {
        width: 100%;
    }
}

.material.completed {
	position: relative;
}
.material.completed::after {
	content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236cdd00' d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10s10-4.5 10-10S17.5 2 12 2m-2 15l-5-5l1.41-1.41L10 14.17l7.59-7.59L19 8z'/%3E%3C/svg%3E");
	position: absolute;
	right: -5px;
	top: -5px;
	width: 22px;
	color: #6BBE66;
	font-weight: bold;
}
.elementor-loop-container .active-lesson {
  background: black;
}

.sidebar-wrapper {
  position: relative;
  height: 100%;
}

.sidebar {
  position: relative;
  overflow-y: auto;
}

/* Fade atas */
.sidebar-wrapper::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 30px;
  z-index: 1;
  pointer-events: none;
  bottom: 0;
  background: linear-gradient(to top, rgb(0, 0, 0), rgba(255, 255, 255, 0));
}

.yfx-button-group {
    display: flex;
    gap:20px;
}
@media screen and (max-width: 480px) {
    .yfx-button-group {
        gap:0px;
        justify-content: space-between;
    }
}

.yfx-button {
  font-family: Roboto;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  padding: 12px;
  color: white!important;
  border: none;
  border-radius:50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.yfx-button svg {
  margin-right: 10px;
}

.yfx-button--primary {
  background-color: #007bff;
  color: #fff;
}

.yfx-button--success {
  background-color: #28a745;
  color: #fff;
}

.yfx-button--disabled {
    background-color: gray;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.yfx-course-time {
    font-size: 18px;
    line-height: 1.2em;
    color:white;
    text-align: center;
    background: var( --e-global-color-primary );
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 20px;
}
.yfx-course-time .timer {
    font-size: 44px;
}
@media screen and (max-width: 480px) {
    .yfx-course-time {
        position: fixed; 
        bottom: 0px;
        right: 130px;
        height: 54px;
        transform: translateX(50%);
        font-size: 10px;
        padding: 0px;
        border-radius: 10px 0 0 0;
        z-index: 9999;
    }
    .yfx-course-time .timer {
        font-size: 20px;
    }
}
.sidebar::-webkit-scrollbar-track
{
	background-color: #000000;
}

.sidebar::-webkit-scrollbar
{
	width: 3px;
	background-color: #000000;
}

.sidebar::-webkit-scrollbar-thumb
{
	background-color: rgba(255, 0, 0, 0.2);
}

.video-js .vjs-control-bar {
  background-color: #B90000!important;
}

.control-float .icon {
    cursor: pointer;
}

.module-index {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.ebook-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid;
    padding: 10px 0;
}
.ebook-meta {
    display: flex;
    gap: 10px;
    font-size: 14px;
    font-style: italic;
}
.ebook-modal {
    display: none; position: fixed; z-index: 9999; padding-top: 60px;
    left: 0; top: 0; width: 100%; height: 100%; overflow: auto;
    background-color: rgba(0,0,0,0.8);
}
.modal-content {
    background-color: #fefefe; margin: auto; padding: 20px;
    border: 1px solid #888; width: 80%;
}
.modal-actions {
    display:flex; justify-content: space-between; align-items: center;
    gap: 10px; margin-bottom: 10px;
}
.modal-actions .download {
    padding: 6px 12px; background: #B90000; color: #fff; text-decoration: none; border-radius: 4px;
}
.close {
    color: #aaa; float: right; font-size: 28px; font-weight: bold;
    cursor: pointer;
}
.pdf-viewer { position: relative; user-select: none; }
.pdf-indicator { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,0.6); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 12px; }

/* Hide-by-tier utility classes */
.yfx-tier-online .hide-online { display: none !important; }
.yfx-tier-hybrid .hide-hybrid { display: none !important; }
.yfx-tier-trial  .hide-trial  { display: none !important; }
.pdf-viewer .pdf-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.4); color: #fff; border: none;
    width: 36px; height: 36px; border-radius: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.pdf-viewer .pdf-prev { left: 8px; }
.pdf-viewer .pdf-next { right: 8px; }
.pdf-viewer .pdf-nav[disabled] { opacity: 0.4; cursor: not-allowed; }

.yfx-progress-info {
    display: flex;
    align-items: center;
}

.yfx-progress-info:after {
    content: "";
    margin-left: 3px;
    display: inline-block;
    width: 14px;
    height: 14px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2328a745' d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10s10-4.5 10-10S17.5 2 12 2m-2 15l-5-5l1.41-1.41L10 14.17l7.59-7.59L19 8z'/%3E%3C/svg%3E");
}

@media screen and (min-width: 480px) {
    .desktop-hide {
        display: none !important;
    }
}
