@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

html,
body {
    overscroll-behavior: none;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

label {
    font-size: 18px;
}
/* ==============================================
   LOGIN STYLES
   ============================================== */

.card {
    background-color: #fafafa;
    border-radius: 20px;
    padding: 50px;
}

input.input-login {
    background-color: rgba(222, 222, 222, 0.5);
    border: none;
    color: hsla(0, 0%, 0%, 0.5);
}

input.input-login:focus {
    background-color: rgba(222, 222, 222, 0.7);
    outline: none;
    border-color: #7c0000;
    box-shadow: 0 0 4px hsla(0, 100%, 24%, 0.5);
}

/* ==============================================
   HEADER COMPONENT STYLES
   ============================================== */

.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: #fafafa;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trainee-info {
    text-align: right;
}

.trainee-info h5 {
    margin: 0;
    font-size: 20px;
}

.trainee-info p {
    margin: 0;
    font-size: 16px;
}

.profile-pic {
    width: 50px;
    height: 50px;
    margin-left: 20px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 576px) {
    .profile-container {
        margin-top: 10px;
    }

    .profile-pic {
        width: 40px;
        height: 40px;
    }

    .trainee-info h5 {
        font-size: 18px;
    }

    .trainee-info p {
        font-size: 14px;
    }
}

/* ==============================================
   Check Kamera
   ============================================== */

.camera-container {
    width: 100%;
    max-width: 1239px;
    display: flex;
    /* gap: 20px; */
    justify-content: center;
    align-items: center;
    position: relative;
}

.camera-preview {
    flex: 3;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-right: 100px;
}

.info-text {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
}

.camera-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.camera-controls button {
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    background-color: #c18134;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.camera-controls button:hover {
    background-color: #218838;
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

.camera-controls button i {
    font-size: 20px;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-section {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.info-section h1 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-masuk {
    background-color: #7c0000;
    border: none;
    color: #fafafa;
}

.btn-masuk:hover {
    background-color: #7c0000b9;
    outline: none;
    box-shadow: 0 0 4px hsla(0, 100%, 24%, 0.5);
    color: #fafafa;
}

.button-back {
    background-color: none;
    border: 1px solid #7c0000;
    color: #7c0000;
}

.button-back:hover {
    background-color: #7c0000;
    outline: none;
    box-shadow: 0 0 4px hsla(0, 100%, 24%, 0.5);
    color: #fafafa;
}

@media (max-width: 768px) {
    .camera-container {
        flex-direction: column;
        align-items: stretch;
        padding: 0 10px;
    }

    .camera-preview {
        margin-right: 0;
        margin-bottom: 20px;
        aspect-ratio: 16 / 9;
        width: 100%;
    }

    .info-section {
        width: 100%;
        padding: 10px;
    }

    .info-section h1 {
        font-size: 24px;
        white-space: normal;
    }

    .btn-masuk, .button-back {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        display: block;
        margin: 10px auto;
    }

    .camera-controls button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .camera-controls button i {
        font-size: 16px;
    }
}


/* ==============================================
   WebCam
   ============================================== */
.webcam-video {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

@media (max-width: 480px) {
    .webcam-video {
        width: 80px;
        height: 80px;
        border-radius: 50%;
    }
}

/* ==============================================
   Soal
   ============================================== */
.question-container {
    width: 100%;
    overflow-y: auto;
    height: 100%;
    padding: 50px;
}

@media (max-width: 768px) {
    .question-container {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .question-container {
        padding: 20px;
    }
}

.question-header {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.left-header {
    text-align: left;
}

.title-question {
    font-size: 36px;
}

@media (max-width: 768px) {
    .title-question {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .title-question {
        font-size: 20px;
    }
}

.title-time {
    font-size: 20px;
    margin-bottom: 0;
}

.progress-container {
    width: 100%;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 100%;
    /* start full */
    background-color: #7c0000;
    transition: width 1s linear;
}

.form {
    font-size: 24px;
}

.question-options {
    list-style-type: none;
    padding: 0;
}

.question-options li {
    margin-bottom: 10px;
}

.nav-buttons {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    z-index: 100;
}

.btn-back,
.btn-next {
    padding: 5px 10px;
    font-size: 20px;
    border-radius: 10px;
}

.btn-next {
    background-color: #801114;
    color: #fff;
    border: none;
    transition: all 0.3s ease-in-out;
}

.btn-next:hover {
    background-color: #a51a1e; /* Warna lebih terang saat hover */
    color: #fff;
    box-shadow: 0px 4px 10px rgba(128, 17, 20, 0.5); /* Efek bayangan */
    transform: scale(1.05); /* Sedikit membesar */
}

.btn-back {
    background-color: #4a5568; /* Abu-abu kebiruan */
    color: #ffffff; /* Putih untuk kontras */
    border: none;
    transition: all 0.3s ease-in-out;
}

.btn-back:hover {
    background-color: #2d3748; /* Warna lebih gelap saat hover */
    box-shadow: 0px 4px 10px rgba(74, 85, 104, 0.5); /* Efek bayangan */
    transform: scale(1.05); /* Efek membesar sedikit */
}

.form-control.input-answer {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    line-height: 1.5;
    color: #333;
    resize: none;
    overflow: auto;
    white-space: pre-wrap;
}

.form-control.input-answer::placeholder {
    color: #888;
}

/* ==============================================
   Popup Submit
   ============================================== */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 872px;
    text-align: center;
    position: relative;
}

.popup-image {
    /* width: 50px; */
    margin-bottom: 40px;
}

.popup-buttons {
    margin-top: 20px;
}

.popup-buttons button {
    margin: 0 10px;
}

/* ==============================================
  Sidebar
============================================== */

.sidebar {
    width: 220px;
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
    background-color: #fafafa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    transform: translateX(0);
}

.sidebar.collapsed {
    transform: translateX(-250px);
    width: 0;
}

.main-content {
    margin-left: 220px;
    transition: margin-left 0.3s ease-in-out;
    flex-grow: 1;
}

.main-content.expanded {
    margin-left: 0;
}

.sidebar.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    margin-bottom: 20px;
}

.sidebar.logo a {
    display: inline-block;
    height: 100%;
}

.sidebar.logo img {
    max-height: 100%;
    display: block;
}

.menu-nav-link {
    color: hsla(0, 0%, 0%, 0.5);
    border-radius: 10px;
    transition: color 0.3s, background-color 0.3s;
}

.menu-nav-link:hover {
    background-color: #c18134;
    color: #fafafa;
}

.test-nav-link {
    color: #6c757d;
    transition: color 0.3s;
}

.test-nav-link:hover {
    color: #c18134;
    text-decoration: none;
}

.test-nav-link.active {
    color: #c18134;
    font-weight: bold;
}

.test-nav-link.active i {
    color: #c18134;
}

.menu-nav-link.active {
    background-color: #c18134;
    color: #fafafa;
    font-weight: bold;
}

.menu-nav-link.active i {
    color: #fafafa;
}

/* ==============================================
   Navbar
   ============================================== */

#sidebarToggle {
    font-size: 1.5rem;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
}

#sidebarToggle i {
    font-size: 2rem;
    color: inherit;
}

#sidebarToggle:hover,
#sidebarToggle:focus {
    background: none;
    color: inherit;
}

img.rounded-circle {
    width: 40px;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
}

/* ==============================================
   Footer
   ============================================== */

.footer {
    background-color: #fafafa;
    color: rgba(0, 0, 0, 0.5);
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    margin: 0;
}

.footer .text-left {
    flex: 1;
}

.footer .text-right {
    text-align: right;
}

/* ==============================================
   Table
   ============================================== */

.table-container {
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 50px;
    border-radius: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.btn-filter {
    background: none;
    border: none;
    color: black;
    font-size: 16px;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    border-radius: 0px;
    margin-right: 10px;
}

.btn-filter:hover {
    border-bottom: 2px solid black;
}

.btn-filter.active {
    border-bottom: 2px solid black;
}

#dataTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
}

#dataTable th,
#dataTable td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#dataTable thead {
    background-color: transparent;
    font-weight: bold;
}

#dataTable thead th {
    border-bottom: 2px solid #ddd;
}

#dataTable tbody tr {
    background-color: transparent;
}

#dataTable {
    border: 1px solid #ddd;
}

#dataTable .clickable-link {
    color: #007bff;
    text-decoration: none;
}

#dataTable .clickable-link:hover {
    text-decoration: underline;
}

.name {
    font-size: 1.2em;
    font-weight: 600;
}

.school-name {
    font-size: 0.9em;
    color: gray;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: #007bff;
}

.filter-container {
    padding: 20px;
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    background-color: #fafafa;
    margin-bottom: 33px;
}

th .sort-icon i {
    font-size: 12px;
}

th .sort-icon {
    visibility: hidden;
    transition: visibility 0.2s, opacity 0.2s;
    opacity: 0;
}

th:hover .sort-icon {
    visibility: visible;
    opacity: 1;
}

th {
    cursor: pointer;
}

.custom-link {
    color: black;
    text-decoration: none;
    font-size: inherit;
}

.custom-link:hover {
    color: #c18134;
}

a.custom-link,
a.custom-link:visited,
a.custom-link:active {
    color: black !important;
    text-decoration: none !important;
}

a.custom-link:hover {
    color: #c18134 !important;
}

/* ==============================================
   Form Input
   ============================================== */

.custom-input {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    outline: none;
    border-radius: 0;
}

.custom-input:focus {
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    background-color: transparent;
    box-shadow: none;
}

.custom-input:disabled {
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    background-color: transparent;
    box-shadow: none;
}

.btn-custom {
    color: #c18134;
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    font-size: 16px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 0;
}

.btn-custom:hover {
    color: #a65c2a;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}

.form-select {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s;
}

.form-select:focus {
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: none;
}

.form-select:disabled {
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: none;
    background-color: transparent;
}

/* ==============================================
   Pagination
   ============================================== */

.pagination .page-link {
    color: #000;
    background-color: #f8f9fa;
    border: 1px solid #000;
}

.pagination .page-link:hover {
    color: #fff;
    background-color: #000;
    border-color: #000;
}

.pagination .active .page-link {
    color: #fff;
    background-color: #000;
    border-color: #000;
}

.pagination {
    margin: 0;
}

/* ==============================================
   uestion-navigation
   ============================================== */

#question-navigation {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#question-navigation::-webkit-scrollbar {
    display: none;
}

.question-btn {
    background-color: transparent;
    color: #000;
    border: 2px solid transparent;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.question-btn:hover {
    background-color: #801114;
    color: #fafafa;
    cursor: pointer;
}

.question-btn.active {
    background-color: transparent;
    color: #801114;
    border: 2px solid #801114;
}

.question-btn.answered {
    background-color: #801114;
    color: #fafafa;
    border: 2px solid #801114;
}

/* ==============================================
   Search
   ============================================== */

   .search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #6c757d;
    ] pointer-events: none;
    ]
}

#searchInput {
    padding-left: 2.5rem;
}

/* ==============================================
   subtest
   ============================================== */

.title-heading {
    font-size: 48px;
}

.instruction-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.instruction-text {
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5);
}

.video-wrapper {
    max-width: 500px; /* Ubah sesuai ukuran yang diinginkan */
    margin: 0 auto;   /* Agar tetap di tengah */
}

.video-container {
    position: relative;
    padding-bottom: 51.25%; /* 16:9 aspect ratio */
    padding-top: 25px;
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Responsive Typography */
@media (max-width: 768px) {
    .title-heading {
        font-size: 32px;
    }

    .instruction-text {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .title-heading {
        font-size: 26px;
    }

    .instruction-text {
        font-size: 16px;
    }
}
