@import url("fonts.css");
@import url("responsive.css");

body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif !important;
    font-weight: 400 !important;
    background: #fafafa !important;
    color: #555 !important;
}

/* LOGIN */
#page,
.register-wrapper {
    background: url(../template/images/bg-login.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    overflow: auto;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

.login-card {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 0;
    padding: 20px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card .imgdiv {
    text-align: center;
}

.login-card img {
    width: 150px;
    margin-bottom: 15px;
}

.logologin img {
    max-height: 80px;
}

@media (min-width: 1200px) {
    .login-card {
        max-width: 350px;
        height: auto;
        border-radius: 5px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
}

.login .alert {
    background: #f4f7fb;
    color: #555;
    padding: 5px 10px;
    font-size: 12px;
    text-align: center;
}

.login #password {
    border-right: 0;
}

.login #togglePassword {
    cursor: pointer;
    height: 32px;
    border-radius: 0 0.25rem 0.25rem 0;
    background: #fff;
}

.login .was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #ced4da !important;
}

.login p {
    margin: 0 10px;
}

.login .form-check-input {
    width: 1.3em;
    height: 1.3em;
}

.login label {
    font-weight: bold;
    color: #555 !important;
    margin-bottom: 0 !important;
}

.login .row {
    margin-bottom: 0 !important;
}

.login .btn-primary {
    background: #40ae87 !important;
    color: #fff !important;
    border: none !important;
}

.login a {
    color: #40ae87 !important;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.login .form-check-input:checked {
    background-color: #40ae87;
    border-color: #40ae87;
}

/* HALAMAN SISWA */

.page-page {
    background: #fff !important;
}

.header {
    height: 55px !important;
}

.page-title {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    background: #fff;
    box-shadow: 0px 13px 26px -7px rgba(0, 0, 0, 0.28);
    -webkit-box-shadow: 0px 13px 26px -7px rgba(0, 0, 0, 0.28);
    -moz-box-shadow: 0px 13px 26px -7px rgba(0, 0, 0, 0.28);
}

.page-title a {
    margin: 15px;
}

.target-point {
    text-align: right !important;
}

.target-point h1,
.target-point h6 {
    color: #fff !important;
    padding-bottom: 0 !important;
}

.target-point h1 {
    font-size: 26px !important;
}

.target-point h6 {
    font-size: 16px !important;
}

.judul-card {
    font-size: 24px !important;
    font-weight: 600 !important;
    margin: 10px 0;
}

.tanggal-event {
    font-size: 16px !important;
    font-weight: 400 !important;
    margin-top: 10px;
}

.bintang {
    font-size: 18px !important;
}

.box-point .card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.box-point .fa-trophy {
    color: #a4de02 !important;
    font-size: 40px;
}

.box-point .fa-ticket {
    color: #007bff !important;
    font-size: 40px;
}

.box-point .card h5 {
    font-size: 18px;
    font-weight: 700;
}

.box-point .card h4 {
    font-size: 26px;
    font-weight: 700;
}

.box-point .card p {
    font-size: 14px;
    font-weight: 400;
}

.welcome-massage h2 {
    background: #ced4da;
    padding: 10px 20px;
    border-radius: 0.5rem;
}

/* DASHBOARD */

.dashboard-umum {
    background: #fff !important;
}

.scroll-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px 0 80px 0;
}

.arrow-flow {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: max-content;
}

.arrow-row,
.connector-row {
    display: flex;
    align-items: flex-start;
}

.arrow-box {
    background: #ccc;
    color: #fff;
    padding: 20px 15px 15px 15px;
    width: 220px;
    text-align: center;
    white-space: normal;
    flex-shrink: 0;
    position: relative;
}

/* Bentuk panah kanan */
.arrow-box:not(.arrow-1) {
    clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%, 10% 50%);
}

.arrow-1 {
    clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
}

.arrow-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.arrow-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.arrow-desc {
    font-size: 12px;
}

/* CONNECTOR di bawah */
.connector-space {
    width: 180px;
    height: 60px;
}

.connector {
    width: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0 5px;
}

.connector-line {
    width: 2px;
    height: 20px;
    background: #999;
}

.connector-text {
    font-size: 12px;
    color: #444;
    margin-top: 5px;
    text-align: center;
    white-space: nowrap;
}

/* Warna masing-masing */
.arrow-1 {
    background: #8ee87e;
    color: #2d842d;
}
.arrow-2 {
    background: #f88f5a;
    color: #bd3c00;
}
.arrow-3 {
    background: #df9ccf;
    color: #872c78;
}
.arrow-4 {
    background: #6d9beb;
    color: #143f8a;
}
.arrow-5 {
    background: #ffcb57;
    color: #a66900;
}
.arrow-6 {
    background: #61c4ea;
    color: #05526d;
}

.arrow-saatini {
    background: #8ee87e;
    color: #2d842d;
}

.arrow-sudahlewat {
    background: #e0e0e0;
    color: #000000;
}

.arrow-belumdimulai {
    background: #d0d6f7;
    color: #4860f0;
}

@media (max-width: 768px) {
    .arrow-box {
        width: 150px;
    }
    .connector-space {
        width: 139px;
    }
    .connector {
        width: 0;
    }
}

.connector-text .fa-star {
    color: yellow;
}

.detail-row {
    display: none;
    background-color: #f9f9f9;
}
.detail-content {
    padding: 10px;
}
.filter-form {
    margin-bottom: 20px;
}

.main-row td {
    cursor: pointer;
}

#filterWilayah {
    font-size: 12px;
}

/* Untuk layar <= 768px (Tablet & HP) */
@media (max-width: 768px) {
    .scroll-wrapper {
        overflow-x: auto;
        padding: 10px 0 40px 0;
    }

    .arrow-flow {
        flex-direction: column; /* Ganti jadi vertical kalau terlalu sempit */
        align-items: center;
    }

    .arrow-row,
    .connector-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .arrow-box {
        width: 190px;
        padding: 15px 10px;
        font-size: 12px;
        margin-right: 10px;
    }

    .arrow-title {
        font-size: 14px;
    }

    .arrow-desc {
        font-size: 11px;
    }

    .connector-space {
        width: 175px;
        height: 40px;
    }

    .connector {
        width: 20px;
        margin: 0 3px;
    }

    .connector-text {
        font-size: 12px;
        white-space: normal;
        width: 200px;
    }

    .connector-line {
        height: 15px;
    }
}

/* Untuk layar sangat kecil (< 480px) */
@media (max-width: 480px) {
    .arrow-box {
        width: 190px;
        font-size: 11px;
    }

    .arrow-title {
        font-size: 12px;
    }

    .arrow-desc {
        font-size: 10px;
    }

    .connector-text {
        font-size: 12px;
        width: 100px;
    }

    #filterWilayah {
        width: 200px;
    }
}
