:root {
    --primary: #0f2747;
    --primary-soft: #3f6491;
    --bg: #010101;
    --text-light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.14);
    --glass-border: rgba(255, 255, 255, 0.35);
}

* {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-light);
    padding: 90px 16px 24px;
    box-sizing: border-box;
}


/* Navbar Start */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22.4px 7%;
    background-color: rgba(1, 1, 1, 0.8);
    border-bottom: 1px solid #2e4c76;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.navbar .navbar-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.navbar .navbar-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    padding: 2px;
}

.navbar .navbar-logo span {
    color: var(--primary);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    /* jarak antar menu */
}

.navbar .navbar-nav a {
    color: #fff;
    display: inline-block;
    font-size: 17px;
    margin: 0 20px;
    text-decoration: none;
}

.navbar .navbar-nav a:hover {
    color: var(--primary);
}

.navbar-nav .dropdown {
    position: relative;
}

.navbar-nav .dropdown:hover .dropdown-menu {
    display: inline-block;
    position: absolute;
    top: 0%;
    /*top sblmnya 100%*/
    left: 0;
    background-color: rgba(1, 1, 1, 0.8);
    /* border: 1px solid #513c28; */
    z-index: 999;
}

.dropdown-menu {
    display: none;
    font-size: 15px;
}

.dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu ul li {
    padding: 10px;
    width: 180px;
}

.dropdown-menu ul li a {
    color: white;
    text-decoration: none;
}

.dropdown-menu ul li a:hover {
    color: var(--primary);
}

.sub-drop {
    font-size: 5px;
}


/* Navbar End */


/* Logout Start */

.btn-logout {
    position: absolute;
    top: 100px;
    right: 20px;
}

.btn-logout button {
    background-color: white;
    color: black;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, .3);
}

.btn-logout button:hover {
    background-color: var(--primary);
}


/* Logout End */


/* Greeting Start */

.greeting-section {
    padding: 20px;
    text-align: left;
    background-color: transparent;
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
    display: block;
    position: absolute;
}


/* Greeting End */


/* Formulir Start */


/* wrapper input Start */

.logo-login {
    width: 90px;
    margin-left: 130px;
}

.wrapper {
    width: 350px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px rgba(0, 0, 0, rgba(0, 0, 0, .2));
    color: white;
    border-radius: 10px;
    padding: 25px 15px;
}

.wrapper h2 {
    text-align: center;
    font-size: 30px;
    color: #052280;
    font-weight: 750;
}

.wrapper .input-group {
    width: 100%;
    height: 50px;
    margin: 20px 0;
    position: relative;
}

.input-group input {
    width: 60%;
    height: 30%;
    background: transparent;
    outline: none;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 40px;
    padding-left: 70px;
    padding-top: 20px;
}

input {
    padding: 12px 45px 20px 20px;
    color: white;
}

.input-group input:focus {
    border-color: rgba(255, 255, 255, .3);
    box-shadow: none;
}

.input-group input::placeholder {
    color: white;
    font-weight: 400;
}

.input-group .input-logo {
    position: absolute;
    left: 20px;
    top: 30%;
}


/* Input End */


/* Lupa password Start */

.wrapper .remember-forgot {
    display: flex;
    justify-content: space-between;
    margin: 10px 0 16px;
    font-size: 14.5px;
    font-weight: 600;
    align-items: center;
}

#checkbox:hover {
    color: var(--primary);
}

.remember-forgot label input {
    margin-right: 3px;
}

.remember-forgot a {
    text-decoration: none;
    color: white;
    font-weight: 400;
}

.remember-forgot a:hover {
    text-decoration: underline;
    color: var(--primary);
}


/* Lupa password End */

/* Auth modal start */
.auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.auth-modal-card {
    width: min(380px, 92%);
    background: #ffffff;
    color: #1d1d1d;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.auth-modal-card.register {
    width: min(420px, 92%);
}

.auth-modal-card h3 {
    margin-bottom: 8px;
    font-size: 24px;
    color: #0f2747;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.auth-modal-card p {
    font-size: 14px;
    margin-bottom: 12px;
    color: #4d5c75;
    font-weight: 600;
}

.auth-modal-card input {
    display: block;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c8d2e3;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #ffffff;
    color: #1d1d1d;
    font-size: 14px;
    font-weight: 600;
}

.auth-modal-card input::placeholder {
    color: #8b95a8;
    font-weight: 600;
}

.auth-modal-card input:focus {
    outline: none;
    border-color: #0f2747;
    box-shadow: 0 0 0 2px rgba(15, 39, 71, 0.12);
}

.auth-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 2px;
}

.auth-modal-actions button {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
}

.auth-modal-actions .btn-cancel {
    background: #f2f4f8;
    color: #2f3c52;
    border-color: #d8deea;
}

.auth-modal-actions .btn-submit {
    background: #0f2747;
    color: #ffffff;
}
/* Auth modal end */


/* Button login Start*/

.wrapper .login {
    width: 94%;
    height: 35px;
    background: white;
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    cursor: pointer;
    font-size: 15px;
    color: black;
    font-weight: 600;
}


/* Button login End */


/* Register Start */

.wrapper .register-link {
    font-size: 14.5px;
    text-align: center;
    margin: 20px 0 25px;
    font-weight: 600;
}

.register-link a {
    text-decoration: none;
    color: white;
}

.register-link a:hover {
    text-decoration: underline;
    color: var(--primary);
}


/* Register End */


/* Container Start */

.container,
.container-dua {
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    height: auto;
    display: block;
    width: min(1120px, 96%);
    padding: 20px 0 24px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.container-dua {
    width: min(860px, 96%);
    padding: 10px 0 12px;
    border-radius: 8px;
    border: 1px solid rgba(203, 213, 225, 0.45);
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.2);
}

.mix {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 0 20px;
}

.container .tracking,
.info-ba {
    padding: 20px;
    text-align: left;
}

.tracking,
.info-ba {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.tracking label,
.info-ba {
    min-width: 120px;
}

.container-dua .info-ba {
    padding: 8px 12px 6px;
    gap: 8px;
}

.container-dua .info-ba label {
    min-width: 110px;
    font-size: 13px;
    color: #e5edf8;
}

.container-dua .info-ba input {
    border-color: rgba(203, 213, 225, 0.56);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.22);
}

.container-dua .info-ba input:focus {
    border-color: rgba(165, 194, 229, 0.9);
    box-shadow: 0 0 0 2px rgba(90, 126, 168, 0.3);
}

.tracking input,
.info-ba input {
    width: 95%;
    padding: 11px 14px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    outline: none;
}

.tracking input::placeholder,
.info-ba input::placeholder {
    color: rgba(255, 255, 255, 0.82);
}

.button-wrapper,
.button-info {
    display: flex;
    justify-content: flex-end;
    margin-right: 20px;
    gap: 10px;
}

.container-dua .button-info {
    margin-right: 12px;
    margin-bottom: 4px;
}

.container-dua .button-info #btn-cari,
.container-dua .button-info #btn-hapus {
    min-width: 84px;
    height: 28px;
    border-radius: 5px;
    font-size: 11px;
    padding: 4px 10px;
}

.container-dua .button-info #btn-cari:hover,
.container-dua .button-info #btn-hapus:hover {
    color: #ffffff;
}

#btn-lacak,
#btn-reset,
#btn-cari,
#btn-hapus {
    padding: 10px 16px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.7);
    cursor: pointer;
    border-radius: 10px;
    min-width: 120px;
    height: 40px;
    font-size: 13.5px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}

#btn-reset,
#btn-hapus {
    margin-left: 0;
}

#btn-lacak:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    box-shadow: 0 8px 20px rgba(15, 39, 71, 0.5);
    transform: translateY(-1px);
}

#btn-reset:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    box-shadow: 0 8px 20px rgba(15, 39, 71, 0.5);
    transform: translateY(-1px);
}


/* Container End */


/* Result(hasil) Tracking Start */

#input-id,
#result-area,
#cari-id,
#result-info {
    color: var(--bg);
}

.tracking-result {
    width: 100%;
}

.hasil-tracking {
    background-color: #fdfdfd;
    border: 1px solid #ccc;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    margin-left: 20px;
    margin-right: 20px;
    width: auto;
    height: auto;
    font-size: 13.5px;
    align-items: center;
}

.hasil-tracking h3,
.hasil-tracking h4 {
    margin-top: 20px;
    color: #333;
}

.hasil-tracking ul {
    padding-left: 20px;
}

.hasil-tracking li {
    margin-bottom: 6px;
}


/* Result(hasil) Tracking End */


/* Button Kembali ke Dashboard Start */

.menu-kembali {
    position: absolute;
    justify-content: left;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

.menu-kembali button {
    width: auto;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    border: none;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid rgba(148, 163, 184, 0.9);
}

.menu-kembali button:hover {
    background-color: var(--primary);
    transform: translateY(-1px);
}


/* Button Kembali ke Dashboard End */


/* Info Bahan Ajar Start */

#btn-cari:hover {
    background-color: var(--primary);
}

#btn-hapus:hover {
    background-color: var(--primary);
}

.stok-bahan-ajar {
    background: rgba(255, 255, 255, 0.97);
    height: auto;
    display: block;
    padding: 10px 12px;
    border: 1px solid #d6dee9;
    border-radius: 6px;
    margin-top: 8px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    color: #0f172a;
    box-shadow: none;
    flex: 1 1 auto;
}

.informasi-bahan-ajar {
    border-bottom: 1px solid #d9e2ee;
    margin-bottom: 8px;
    padding-bottom: 6px;
}

.info-judul {
    text-align: center;
    font-size: 15px;
    margin-bottom: 4px;
}

.sampul-buku {
    width: 92px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
    margin: 6px auto 8px;
    display: block;
    object-fit: contain;
}

.stok-bahan-ajar table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.stok-bahan-ajar tr:nth-child(odd) {
    background: #f8fafc;
}

.stok-bahan-ajar tr:nth-child(even) {
    background: #ffffff;
}

.stok-bahan-ajar th,
.stok-bahan-ajar td {
    padding: 3px 7px;
    border-bottom: 1px solid #e5eaf2;
    text-align: left;
    vertical-align: top;
    font-size: 12px;
    line-height: 1.3;
}

.stok-bahan-ajar th:nth-child(2),
.stok-bahan-ajar td:nth-child(2) {
    width: 16px;
    text-align: center;
    color: #475569;
}

.stok-bahan-ajar tr:last-child th,
.stok-bahan-ajar tr:last-child td {
    border-bottom: none;
}


/* Tambah Stok Start */

.form-tambah-stok {
    margin-top: 8px;
    padding: 9px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 6px;
    box-shadow: none;
    border: 1px solid #dbe4f0;
    flex: 0 0 210px;
}

.form-tambah-stok h3 {
    margin-bottom: 8px;
    font-size: 14px;
    color: #0f172a;
    border-bottom: 1px solid #e3ebf5;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-tambah-stok input {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    padding: 6px 8px;
    border: 1px solid #d4deeb;
    border-radius: 4px;
    font-size: 11px;
    color: #0f172a;
    background: #fff;
    box-sizing: border-box;
}

.form-tambah-stok input:focus {
    outline: none;
    border: 1px solid var(--primary);
    box-shadow: 0 0 0 1px rgba(15, 39, 71, 0.15);
}

.form-tambah-stok input::placeholder {
    color: #64748b;
}

.form-tambah-stok {
    margin-top: 8px;
    margin-right: 0;
}

.form-tambah-stok button,
.btn-reset-data {
    padding: 4px 9px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #0f172a;
    border: 1px solid #ced9e8;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 0;
    font-weight: 600;
    font-size: 11px;
    transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.form-tambah-stok button:hover,
.btn-reset-data:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    box-shadow: 0 8px 20px rgba(15, 39, 71, 0.5);
    transform: translateY(-1px);
    color: #ffffff;
}

#btn-tambah-stok,
#btn-reset-data {
    min-width: 0;
}

.form-tambah-stok {
    display: flex;
    flex-direction: column;
}

.form-tambah-stok button {
    margin-top: 2px;
}

.form-tambah-stok button + button {
    margin-left: 6px;
}

.mix {
    gap: 8px;
    align-items: stretch;
    padding: 0 12px;
}


/* Tambah Stok End */


/* Info Bahan Ajar End */


/* Video Background */

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.video-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 14, 28, 0.84), rgba(15, 39, 71, 0.66));
}

@media (max-width: 760px) {
    .mix {
        flex-direction: column;
    }
    .form-tambah-stok {
        flex: 1 1 auto;
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 700px) {
    body {
        padding-top: 80px;
        align-items: flex-start;
    }
    .container,
    .container-dua {
        width: 100%;
    }
    .tracking,
    .info-ba {
        flex-direction: column;
        align-items: flex-start;
    }
    .button-wrapper,
    .button-info {
        justify-content: flex-start;
        margin-left: 20px;
        margin-right: 20px;
        flex-wrap: wrap;
    }
}