/* Custom Styles for E-Presensi GTK */

/* Glassmorphism accents */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* Radar Pulse Effect for GPS */
.gps-pulse {
    position: relative;
}

.gps-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.6;
    animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.7;
    }
    70% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

/* Camera Viewfinder Styling */
.camera-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.camera-preview {
    width: 100%;
    height: 360px;
    object-fit: cover;
    transform: scaleX(-1); /* Mirror effect for selfie camera */
}

.camera-preview.back-camera {
    transform: none;
}

/* Face guide oval on camera */
.face-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 190px;
    height: 250px;
    border: 2px dashed rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.face-guide.active {
    border-color: #10b981;
    border-style: solid;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.15), 0 0 20px rgba(16, 185, 129, 0.5);
}

/* Shutter snapshot flash */
.camera-flash {
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-out;
}

.camera-flash.flash-active {
    opacity: 0.9;
}

/* Leaflet Map Styling */
.map-container {
    border-radius: 1rem;
    overflow: hidden;
    z-index: 10;
}

.leaflet-popup-content-wrapper {
    border-radius: 0.75rem !important;
    padding: 0.25rem !important;
    font-family: inherit !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Print styling for reports */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    .no-print {
        display: none !important;
    }
    .print-card {
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
    }
}

