.table-primary {
    background-color: #8e7dbe !important;
    color: white;
    text-align: center;
}

thead.table-kehadiran th {
    background-color: #8e7dbe !important;
    color: white !important;
    text-align: center;
}

.table-kehadiran + tbody td {
    color: grey !important;
}






.btn-primary {
    background-color: #8e7dbe;
}

/* Font dan Umum */
span {
    font-size: 1rem !important;
}

.sidebar-brand-text {
    font-size: 1.5rem !important;
    text-transform: none !important;
}

.text-title {
    color: #7d65ec;
    font-weight: 500;
}

.sidebar-dark hr.sidebar-divider {
    border-top: 2px solid white;
}

.btn-tambah {
    background-color: #8e7dbe !important;
    border-color: #fff;
    color: #fff !important;
}

.btn-tambah:hover {
    background-color: #8873e6 !important;
    border-color: #8873e6 !important;
}

.align-middle {
    background-color: #fff;
}

.table-bordered,
th {
    border: 1px solid #e0d7d7 !important;
}

/* .card-dashboard {
    gap: 1rem;
} */

.card-reservasi {
    background-color: #ff8282 !important;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.card-konfirmasi {
    background-color: #ff9d3d !important;
    color: white;
    font-size: 17.5px;
    font-weight: 600;
}

.card-jumlah {
    background-color: #7aa2e3 !important;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.card-ditolak {
    background-color: #39d398 !important;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.chart-area {
    width: 100% !important;
    height: auto;
    overflow-x: auto;
}

canvas {
    width: 100% !important;
    height: auto !important;
}

#genderChart {
    max-width: 300px;
    max-height: 300px;
    margin: 0 auto;
}

.page-link {
    background-color: #8e7dbe !important;
    border: none;
    cursor: pointer;
}

/* Tombol hamburger */
/* .mobile-menu-toggle {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1100;
    background-color: white;
    color: #8E7DBE;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    border-radius: 4px;
    cursor: pointer;
} */

/* Backdrop gelap saat sidebar aktif */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1040;
}

.sidebar-backdrop.show {
    display: block;
}

/* Kunci scroll saat sidebar aktif */
body.sidebar-open {
    overflow: hidden;
}

.btn-purple {
    background-color: #8979ff;
    color: white;
}
.btn-purple:hover {
    background-color: #6353db;
    color: white;
}
.rounded-full {
    border-radius: 9999px;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

.btn-cari {
  background-color: #4b7ad8;
  color: #F0FAE3;
  border: none;
  padding: 6px 20px;
  font-weight: bold;
  border-radius: 8px;
  transition: 0.3s ease-in-out;
}
.btn-cari:hover {
  background-color: #132a5e;
  color: #ffffff;
}

.search-wrapper input {
    width: 100%;
    height: 40px;
    padding-left: 2.5rem;
    padding-right: 1rem;
    border-radius: 9999px;
    border: 1px solid #fdfdfd !important;
    box-sizing: border-box;
    background-color: #8979ff;
    color: white;
}

.search-wrapper input::placeholder {
    color: white;
    opacity: 1;
}

.search-wrapper .search-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: white;
    pointer-events: none;
    font-size: 1rem;
}



body {
    /* background: linear-gradient(135deg, #8B7FB8 0%, #A896C7 100%); */
    min-height: 100vh;
    font-family: "Poppins", sans-serif;
}

.container {
    min-height: 100vh;
    padding: 0;
}

.main-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    margin: 0;
    max-width: none;
    height: 100vh;
}

.left-section {
    background: linear-gradient(135deg, #8b7fb8 0%, #a896c7 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.welcome-text {
    margin-top: 2rem;
    font-size: 2.6rem;
    font-weight: 700;
    /* margin-bottom: 2rem; */
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.illustration {
    position: relative;
    width: 280px;
    height: 180px;
    margin-top: 1rem;
}

.circle-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 130px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 130px 130px 0 0;
}

.character {
    position: absolute;
    bottom: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.character:hover {
    transform: translateY(-5px);
}

.char1 {
    left: 50px;
    width: 45px;
    height: 45px;
    background: #ff6b9d;
    color: white;
}

.char2 {
    right: 50px;
    width: 45px;
    height: 45px;
    background: #4ecdc4;
    color: white;
}

.char3 {
    left: 50%;
    transform: translateX(-50%);
    bottom: 35px;
    width: 38px;
    height: 38px;
    background: #ffd93d;
    color: white;
}

.toys {
    position: absolute;
    bottom: 8px;
    left: 25px;
    font-size: 1rem;
    color: #ff6b9d;
}

.toys2 {
    position: absolute;
    bottom: 8px;
    right: 25px;
    font-size: 1rem;
    color: #4ecdc4;
}

.decorative-shapes {
    position: absolute;
    top: 20px;
    left: 20px;
}

.shape {
    width: 25px;
    height: 25px;
    margin: 3px;
    display: inline-block;
}

.shape1 {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
}

.shape2 {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.musical-note {
    position: absolute;
    top: 40px;
    right: 40px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.8rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.right-section {
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: white;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #8b7fb8;
    margin-bottom: 0.5rem;
    text-align: left;
}

.form-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: #8b7fb8;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    border: 2px solid #8b7fb8;
    border-radius: 12px;
    /* padding: 0.75rem 1rem; */
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #8b7fb8;
    box-shadow: 0 0 0 0.2rem rgba(139, 127, 184, 0.25);
    background: white;
}

.form-control-user {
    border-radius: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, #8b7fb8 0%, #a896c7 100%);
    border: none;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 127, 184, 0.3);
    background: linear-gradient(135deg, #7a6fa7 0%, #9785b6 100%);
}

.btn-user {
    border-radius: 30px;
}

.custom-control-label {
    color: #666;
    font-size: 0.85rem;
}

.alert {
    border-radius: 10px;
    border: none;
    font-size: 0.85rem;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b, #ffa8a8);
    color: white;
}

.alert ul {
    margin: 0;
    padding-left: 1.2rem;
}

.register-link {
    text-align: center;
    margin-top: 2rem;
}

.register-link a {
    color: #8b7fb8;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.register-link b:hover {
    color: #6d5eac;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #8b7fb8;
}

.password-toggle:focus {
    outline: none;
    color: #8b7fb8;
}

.illustration {
    width: 350px !important;
    height: auto;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-login {
    width: 400px !important;
    height: auto;
    transition: transform 0.3s ease;
    align-items: left;
    justify-content: left;
    justify-items: left;
}

/* .img-login.enlarge {
    transform: scale(2.5);
    z-index: 9999;
    position: relative;
    cursor: zoom-out;
} */

hr {
    margin: 1.5rem 0;
    border-color: #e9ecef;
}

.swal2-popup {
    border-radius: 15px;
}

.swal2-confirm {
    background: linear-gradient(135deg, #8b7fb8 0%, #a896c7 100%) !important;
    border-radius: 8px;
}

.text-lupa-password {
    color: #8b7fb8;
    font-weight: 500;
    font-size: 1.1rem;
    text-decoration: none;
}

.text-lupa-password:hover {
    color: #6d5eac;
    text-decoration: underline;
}

.pagination .page-link {
        color: white !important;
    }

    .pagination .page-item.active .page-link {
        background-color: #0d6efd;
        color: white !important;
        border-color: #0d6efd;
    }

    .pagination .page-link:hover {
        color: white !important;
        background-color: #0a58ca;
    }



@media (max-width: 768px) {
    .sidebar {
        width: 250px !important;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1050;
        background-color: #8e7dbe;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar .sidebar-brand-text {
        display: inline !important;
        color: #fff;
    }

    .sidebar .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        padding: 10px 15px;
        position: relative;
    }

    .sidebar .nav-link span {
        flex-grow: 1;
        overflow: visible;
        white-space: nowrap;
        text-overflow: ellipsis;
        color: white;
        font-size: 1rem;
    }

    .sidebar .nav-link svg {
        position: absolute;
        right: -120px;
        top: 50%;
        flex-shrink: 0;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        fill: white;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown .btn {
        width: 100%;
    }

    .dropdown-menu {
        width: 100% !important;
    }

    .search-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-wrapper input {
        width: 100%;
    }

    .row.g-2 > div {
        margin-bottom: 1rem;
    }

    .btn-purple {
        width: 100%;
    }

    .main-card {
        margin: 0;
        height: auto;
        min-height: 100vh;
    }

    .welcome-text {
        margin-top: 3rem;
        font-size: 1.8rem;
    }

    .illustration {
        margin-top: 6rem;
        margin-bottom: 6rem;
        width: 100px;
        height: 140px;
    }

    .circle-bg {
        width: 200px;
        height: 100px;
        border-radius: 100px 100px 0 0;
    }

    .left-section {
        min-height: 50vh;
        padding: 2rem 1.5rem;
    }

    .right-section {
        padding: 2rem 1.5rem;
        min-height: 50vh;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
}

/* Tambahan untuk sidebar desktop saat toggled */
@media (min-width: 769px) {
  .sidebar.toggled {
    width: 80px !important;
  }

  .sidebar.toggled .nav-item .nav-link span {
    display: none !important;
  }
  
}




  
