/* ============================================
   APP.CSS — Global Styles for Absensi App
   ============================================ */

/* ——— BASE / LAYOUT ——— */
body {
    background-color: #192230;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

#mobile-container {
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: #192230;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
    body {
        background-color: #192230;
    }

    #mobile-container {
        max-height: 100%;
        box-shadow: none;
    }
}

/* ——— PAGE TRANSITIONS ——— */
.page {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #192230;
    padding-top: env(safe-area-inset-top);
}

.page-hidden-right {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.page-hidden-left {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

/* ——— SIDEBAR ——— */
#sidebar-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ——— SCROLLBAR ——— */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* ——— BOTTOM SHEETS ——— */
#attendance-sheet,
#dashboard-sheet {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    bottom: 0;
}

.sheet-hidden {
    transform: translateY(150%) !important;
}


/* ============================================
   LOGIN PAGE
   ============================================ */
.login-gradient {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e1b4b 100%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.google-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    transition: all 0.3s ease;
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.google-btn:active {
    transform: translateY(0);
}

.float-animate {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.pulse-ring {
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}


/* ============================================
   DASHBOARD PAGE
   ============================================ */
.slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide-img.active {
    opacity: 1;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.slide-dot.active {
    background: #ffffff;
    width: 20px;
    border-radius: 4px;
}


/* ============================================
   SCAN PAGE
   ============================================ */
#reader video {
    object-fit: cover;
    border-radius: 12px;
}

.fake-qr-pattern {
    background-image: radial-gradient(#64748b 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: 0.3;
}

.scan-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: #e2e8f0;
    border-style: solid;
    pointer-events: none;
    z-index: 10;
    border-radius: 4px;
    opacity: 0.8;
}

.tl {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
    border-top-left-radius: 12px;
}

.tr {
    top: 0;
    right: 0;
    border-width: 3px 3px 0 0;
    border-top-right-radius: 12px;
}

.bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 3px 3px;
    border-bottom-left-radius: 12px;
}

.br {
    bottom: 0;
    right: 0;
    border-width: 0 3px 3px 0;
    border-bottom-right-radius: 12px;
}


/* ============================================
   ATTENDANCE PAGE — Pie Chart Calendar
   ============================================ */
.pie-day {
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    position: relative;
}

.pie-day:hover {
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.pie-day:active {
    transform: scale(0.9);
}

/* Inner white circle for donut effect */
.pie-day[style*="conic-gradient"]::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #192230;
    z-index: 5;
}