/* CSS Untuk Tampilan Create */

/* Animasi Flash */
.flash-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 8px;
}

.flash-effect.active {
    opacity: 1;
}

/* Animasi Border */
.border-pulse {
    border: 3px solid #7BA5B0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        border-color: #7BA5B0;
        box-shadow: 0 0 0 0 rgba(123, 165, 176, 0.7);
    }

    70% {
        border-color: #3E5467;
        box-shadow: 0 0 0 10px rgba(123, 165, 176, 0);
    }

    100% {
        border-color: #7BA5B0;
        box-shadow: 0 0 0 0 rgba(123, 165, 176, 0);
    }
}

/* Countdown Timer */
.countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 70px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 10;
}

.countdown.active {
    display: block;
    animation: fadeInOut 1s ease-in-out;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* CSS Untuk Tampilan Dashboard */
/* Sidebar styling */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 16rem;
    /* w-64 */
    z-index: 40;
    /* z-40 */
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

/* Main content styling */
#main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease-in-out;
}

/* When sidebar is open */
#sidebar.open {
    transform: translateX(0);
}

/* For desktop - sidebar always visible */
@media (min-width: 768px) {
    #sidebar {
        transform: translateX(0);
    }

    #main-content {
        margin-left: 16rem;
        /* ml-64 */
    }
}

/* Backdrop for mobile */
#sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 30;
    /* below sidebar */
}

/* Show backdrop when sidebar is open on mobile */
@media (max-width: 767px) {
    #sidebar-backdrop.active {
        display: block;
    }
}

/* Menyembunyikan scrollbar tetapi tetap memungkinkan scrolling */
.table-container {
    -ms-overflow-style: none;  /* IE dan Edge */
    scrollbar-width: none;  /* Firefox */
}

.table-container::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, dan Opera */
}
