/* ========================================
   Gaya Umum & Login
========================================= */
.form-signin {
    max-width: 500px;
    margin: 20px auto;
    background-color: rgba(0, 81, 255, 0.8);
    border-radius: 8px;
    box-shadow: 4px 4px 10px 0 rgba(20, 20, 20, 0.6);
}

#background-carousel {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.item {
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    z-index: 0;
}

#content-wrapper {
    position: absolute;
    z-index: 1;
    min-width: 100%;
    min-height: 100%;
}

.well {
    opacity: 0.85;
}

.login-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    background: transparent;
}

/* Carousel fade (modern browsers) */
@media all and (transform-3d), (-webkit-transform-3d) {
    .carousel-fade .carousel-inner > .item.next,
    .carousel-fade .carousel-inner > .item.active.right,
    .carousel-fade .carousel-inner > .item.prev,
    .carousel-fade .carousel-inner > .item.active.left {
        opacity: 0;
        transform: translate3d(0, 0, 0);
    }
    .carousel-fade .carousel-inner > .item.next.left,
    .carousel-fade .carousel-inner > .item.prev.right,
    .carousel-fade .carousel-inner > .item.active {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.sticky {
    position: sticky;
    top: 0;
    padding: 30px;
    background-color: #0068fab7; /* Warna solid, ganti sesuai kebutuhan */
    background-image: none; /* Hapus gambar */
    height: 300px;
}

.overlap {
    margin-top: -260px;
}

/* ========================================
   Funky Radio / Checkbox
========================================= */
.funkyradio div {
    clear: both;
    overflow: hidden;
}

.funkyradio label {
    width: 100%;
    border-radius: 3px;
    border: 1px solid #D1D3D4;
    font-weight: normal;
    padding: 5px 0 5px 50px;
}

.funkyradio input[type="radio"]:empty,
.funkyradio input[type="checkbox"]:empty {
    display: none;
}

.funkyradio input[type="radio"]:empty ~ label,
.funkyradio input[type="checkbox"]:empty ~ label {
    position: relative;
    line-height: 2em;
    margin-top: 5px;
    cursor: pointer;
    user-select: none;
}

.funkyradio input[type="radio"]:empty ~ label:before,
.funkyradio input[type="checkbox"]:empty ~ label:before {
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    content: '';
    width: 2.5em;
    background: #D1D3D4;
    border-radius: 3px 0 0 3px;
}

.funkyradio input[type="radio"]:hover:not(:checked) ~ label,
.funkyradio input[type="checkbox"]:hover:not(:checked) ~ label {
    color: #888;
}

.funkyradio input[type="radio"]:hover:not(:checked) ~ label:before,
.funkyradio input[type="checkbox"]:hover:not(:checked) ~ label:before {
    text-indent: .9em;
    color: #000;
    font-weight: bold;
    padding: 5px 0 0 0;
}

.funkyradio input[type="radio"]:checked ~ label,
.funkyradio input[type="checkbox"]:checked ~ label {
    color: #fff;
    background: #86C186;
    font-weight: bold;
}

.funkyradio input[type="radio"]:checked ~ label:before,
.funkyradio input[type="checkbox"]:checked ~ label:before {
    text-indent: .9em;
    color: #333;
    background-color: #ccc;
    padding: 5px 0 0 0;
}

.funkyradio input[type="radio"]:focus ~ label:before,
.funkyradio input[type="checkbox"]:focus ~ label:before {
    box-shadow: 0 0 0 3px #999;
}

/* Variasi warna funkyradio */
.funkyradio-default input[type="radio"]:checked ~ label:before,
.funkyradio-default input[type="checkbox"]:checked ~ label:before {
    color: #333;
    background-color: #ccc;
}
.funkyradio-primary input[type="radio"]:checked ~ label:before,
.funkyradio-primary input[type="checkbox"]:checked ~ label:before {
    color: #fff;
    background-color: #337ab7;
}
.funkyradio-success input[type="radio"]:checked ~ label:before,
.funkyradio-success input[type="checkbox"]:checked ~ label:before {
    color: #fff;
    background-color: #5cb85c;
}
.funkyradio-danger input[type="radio"]:checked ~ label:before,
.funkyradio-danger input[type="checkbox"]:checked ~ label:before {
    color: #fff;
    background-color: #d9534f;
}
.funkyradio-warning input[type="radio"]:checked ~ label:before,
.funkyradio-warning input[type="checkbox"]:checked ~ label:before {
    color: #fff;
    background-color: #f0ad4e;
}
.funkyradio-info input[type="radio"]:checked ~ label:before,
.funkyradio-info input[type="checkbox"]:checked ~ label:before {
    color: #fff;
    background-color: #5bc0de;
}

.huruf_opsi {
    margin-left: -36px;
    margin-top: 9px;
    position: absolute;
}

.btn.no-hover:hover {
    cursor: default !important;
}

/* ========================================
   Shadow
========================================= */
.shadow-sm {
    box-shadow: 0 .125rem .25rem 0 rgba(58, 59, 69, 0.2) !important;
}
.my-shadow {
    box-shadow: 0 .15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}
.shadow-none {
    box-shadow: none !important;
}

/* ========================================
   Input Group Width
========================================= */
.input-group > .w-40 {
    flex: 0 0 40%;
}
.input-group > .input-group-prepend {
    flex: 0 0 15%;
}
.input-group .input-group-text {
    width: 100%;
}

/* Summernote */
.note-editor.note-frame,
.note-editor.note-airframe {
    border: 1px solid #ffffff;
}

/* ========================================
   Buttons & Circles
========================================= */
.bg-circle {
    width: 49px;
    height: 49px;
    text-align: center;
    padding: 5px 0 5px 10px;
    line-height: 2;
    border-radius: 30px;
    white-space: nowrap;
}

.btn-circle {
    width: 49px;
    height: 49px;
    text-align: center;
    padding: 5px 0;
    font-size: 20px;
    line-height: 2;
    border-radius: 30px;
}

.btn-oval {
    height: 49px;
    text-align: center;
    padding: 5px 0;
    font-size: 20px;
    line-height: 2;
    border-radius: 30px;
}

.btn-circle-micro {
    display: inline-block;
    padding: .25em .4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .80rem;
}

.btn-circle-sm {
    width: 35px;
    height: 35px;
    text-align: center;
    padding: 4px 0;
    font-size: 12pt;
    line-height: 1.65;
    border-radius: 30px;
}

.btn-oval-sm {
    height: 35px;
    text-align: center;
    font-size: 12pt;
    line-height: 1.65;
    border-radius: 30px;
    padding: .25em 1em;
}

.btn-circle-lg {
    width: 79px;
    height: 79px;
    text-align: center;
    padding: 13px 0;
    font-size: 30px;
    line-height: 2;
    border-radius: 70px;
}

/* ========================================
   Select2
========================================= */
.no-search .select2-search {
    display: none;
}

/* ========================================
   Custom Radio/Checkbox (container-jawaban)
========================================= */
.container-jawaban {
    display: block;
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
    cursor: pointer;
    font-size: 18px;
    text-align: justify;
    user-select: none;
}

.container-jawaban input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: -5px;
    left: 0;
    height: 40px;
    width: 40px;
    background-color: #eee;
    border-radius: 50%;
    border: 1px solid #ccc;
    font-size: 24px;
    line-height: 1.6;
    text-align: center;
}

.boxmark {
    position: absolute;
    top: -5px;
    left: 0;
    height: 40px;
    width: 40px;
    background-color: #eee;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 24px;
    line-height: 1.6;
    text-align: center;
}

.container-jawaban:hover input ~ .checkmark,
.container-jawaban:hover input ~ .boxmark {
    background-color: #ccc;
}

.container-jawaban input:checked ~ .checkmark {
    background-color: #2196F3;
    color: #fff;
}

.container-jawaban input:checked ~ .boxmark {
    font-weight: bold;
    background-color: #2196F3;
    color: #fff;
}

.container-jawaban input:checked ~ .boxmark:before {
    content: "\2713";
}

/* Custom controls large */
.checkbox-lg .custom-control-label::before,
.checkbox-lg .custom-control-label::after {
    top: .8rem;
    width: 1.55rem;
    height: 1.55rem;
}

.checkbox-lg .custom-control-label {
    padding-top: 13px;
    padding-left: 6px;
    cursor: pointer;
}

.checkbox-xl .custom-control-label::before,
.checkbox-xl .custom-control-label::after {
    top: 1.2rem;
    width: 1.85rem;
    height: 1.85rem;
}

.checkbox-xl .custom-control-label {
    padding-top: 23px;
    padding-left: 20px;
    cursor: pointer;
}

.my-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.form-check-input[type=checkbox]:indeterminate {
    background-color: #3DA576;
    border-color: #3DA576;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e");
}

/* ========================================
   Media List (upload)
========================================= */
ul.media-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.media-list li {
    float: left;
    border: 1px solid #ccc;
    position: relative;
    margin: 0 5px 5px 0;
    width: 102px;
    height: 102px;
}

ul.media-list li img {
    width: 100px;
    height: 100px;
}

ul.media-list li video {
    width: 100px;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

li .title-thumb {
    position: absolute;
    height: 28px;
    width: 100px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.6);
    bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.post-thumb {
    position: absolute;
    background: rgba(0, 0, 0, 0.3);
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: none;
}

ul.media-list li:hover .post-thumb {
    display: block;
}

a.remove-pic {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 50%;
    display: block;
    height: 25px;
    width: 25px;
    text-align: center;
    padding: 3px 0;
}

li.myupload span {
    position: relative;
    width: 100px;
    height: 100px;
    display: block;
    background: #fff;
}

li.myupload span input {
    opacity: 0;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

li.myupload span i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
    font-size: 54px;
}

/* ========================================
   Posting / User
========================================= */
.user-post-text-wrap {
    position: relative;
    border-bottom: 1px solid #ccc;
    margin: 0 0 15px;
}

.user-pic-post {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 0;
    left: 0;
}
.user-pic-post img {
    width: 100%;
}

.user-txt-post {
    padding: 0 0 0 65px;
}

textarea.form-control.upostTextarea {
    border: 0;
    box-shadow: none;
    height: 85px;
    resize: none;
}

.user-post-btn-wrap {
    margin: 25px 0 0;
}

ul.btn-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
ul.btn-nav li {
    position: relative;
    float: left;
    margin: 0 10px 0 0;
}
ul.btn-nav li span input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 9;
    opacity: 0;
}

input.picupload {
    width: 100px;
    height: 100px;
}

/* ========================================
   Treeview
========================================= */
.bstreeview {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: .25rem;
    padding: 0;
    overflow: hidden;
}

.bstreeview .list-group {
    margin-bottom: 0;
}

.bstreeview .list-group-item {
    border-radius: 0;
    border-width: 1px 0 0 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    cursor: pointer;
}

.bstreeview .list-group-item:hover {
    background-color: #dee2e6;
}

.bstreeview > .list-group-item:first-child {
    border-top-width: 0;
}

.bstreeview .state-icon {
    margin-right: 8px;
    width: 12px;
    text-align: center;
}
.bstreeview .item-icon {
    margin-right: 5px;
}

/* ========================================
   Miscellaneous
========================================= */
.tbl-vertical {
    white-space: nowrap;
    transform: rotate(-90deg);
    text-align: left;
    bottom: 4px;
    padding: 1px 1px 1px 10px;
    width: 30px;
}

/* Responsive hidden (Bootstrap 3 compatibility) */
@media (max-width: 767px) {
    .hidden-xs { display: none !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .hidden-sm { display: none !important; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .hidden-md { display: none !important; }
}
@media (min-width: 1200px) {
    .hidden-lg { display: none !important; }
}

.img-zoom {
    transition: transform .2s;
    margin: 0 auto;
}
.img-zoom:hover {
    transform: scale(2);
}

/* Striped list for jadwal */
div.list-jadwal-ujian div:nth-child(even) {
    background: white;
    padding-left: .25rem;
    padding-right: .25rem;
    color: black;
}
div.list-jadwal-ujian div:nth-child(odd) {
    background: #dee2e6;
    padding-left: .25rem;
    padding-right: .25rem;
    color: black;
}

/* DataTable */
#guru.dataTable.no-footer {
    border-bottom: unset;
}
#guru tbody td {
    display: block;
    border: unset;
}
#guru > tbody > tr > td {
    border-top: unset;
}

/* Horizontal rule with text */
.hrspan {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}
.hrspan span {
    position: absolute;
    top: -11px;
    background: #fff;
    padding: 0 20px;
    font-weight: bold;
    font-size: 16px;
}

div.hr-or {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
    text-align: center;
    height: 0;
    line-height: 0;
}
div.hr-or:before {
    content: 'OR';
    background-color: #fff;
}

div.hr {
    margin-top: 20px;
    margin-bottom: 12px;
    margin-right: 20px;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    height: 0;
    line-height: 0;
}
.hr-title {
    background-color: #fff;
    font-weight: bold;
    padding: 0 4px 0 0;
}

.hr-text {
    line-height: 1em;
    position: relative;
    outline: 0;
    border: 0;
    color: black;
    text-align: center;
    height: 1.5em;
    opacity: .5;
}
.hr-text:before {
    content: '';
    background: linear-gradient(to right, transparent, #818078, transparent);
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
}
.hr-text:after {
    content: attr(data-content);
    position: relative;
    display: inline-block;
    padding: 0 .5em;
    line-height: 1.5em;
    color: #818078;
    background-color: #fcfcfa;
}

/* Disabled buttons */
.btn-disabled,
.btn-disabled[disabled] {
    opacity: .65;
    cursor: not-allowed;
}

/* Crop text */
.crop-text-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.crop-text-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.crop-text-table {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* Table display */
.rTable {
    display: table;
    width: 100%;
}
.rTableRow {
    display: table-row;
}
.rTableCell, .rTableHead {
    display: table-cell;
    border-top: 10px solid #EBEBEB;
}
.rTableBody {
    display: table-row-group;
}

.sTable {
    display: table;
    width: 100%;
}
.sTableRow {
    display: table-row;
}
.sTableCell, .sTableHead {
    display: table-cell;
    padding: 3px 10px;
    border: 1px solid #999;
}
.sTableBody {
    display: table-row-group;
}

/* Connection */
connection {
    border: 2px solid #b51c29;
    border-radius: 31px;
}

/* Jodohkan (matching) */
.jodohkan ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
    font-weight: normal;
}
.jodohkan li {
    border: solid 1px grey;
    padding: 5px 2px 5px 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    user-select: none;
    cursor: pointer;
    background-color: #fff;
    color: black;
    border-radius: 4px;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Button with icon (shaded) */
button.btn.btn-icon {
    display: flex;
}
button.btn.btn-icon > i:first-child:not(:only-child) {
    margin-right: 0.75rem;
}
button.btn.btn-icon > span + i {
    margin-left: 0.75rem;
}
button.btn.shaded.btn-icon {
    display: flex;
    position: relative;
}
button.btn.shaded.btn-icon.shaded > i {
    display: flex;
    align-items: center;
    position: absolute;
    z-index: 100;
    top: 0;
    border-radius: 0;
    padding: 0 0.4rem;
    height: 100%;
}
button.btn.shaded.btn-icon.shaded > i::before {
    background-color: rgba(6, 7, 8, 0.3);
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -10;
}
button.btn.shaded.btn-icon.left.shaded {
    padding-left: 2.7rem;
}
button.btn.shaded.btn-icon.left.shaded > i {
    left: 0;
    border-top-left-radius: inherit;
    border-bottom-left-radius: inherit;
    margin-right: 0.75rem;
}
button.btn.shaded.btn-icon.right.shaded {
    padding-right: 2.7rem;
}
button.btn.shaded.btn-icon.right.shaded > i {
    right: 0;
    border-top-right-radius: inherit;
    border-bottom-right-radius: inherit;
    margin-left: 0.75rem;
}
button.btn.shaded.btn-icon.primary > i::before {
    background-color: rgba(0, 86, 179, 0.5);
}
button.btn.shaded.btn-icon.danger > i::before {
    background-color: rgba(167, 29, 42, 0.5);
}
button.btn.shaded.btn-icon.info > i::before {
    background-color: rgba(15, 102, 116, 0.5);
}
button.btn.shaded.btn-icon.outline.primary > i::before {
    background-color: rgba(0, 123, 255, 0.3);
}
button.btn.shaded.btn-icon.outline.danger > i::before {
    background-color: rgba(231, 118, 129, 0.3);
}
button.btn.shaded.btn-icon.outline.info > i::before {
    background-color: rgba(54, 206, 230, 0.3);
}

/* Search input reset */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
}