/* 
  GeoLab Global Styles & IFP Optimizations
  Developed for Syaiful Bahri, S. Pd
*/

:root {
    --primary: #8ffc19;
    --primary-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --neon-glow: 0 0 20px rgba(143, 252, 25, 0.4);
}

/* Base resets for IFP */
* {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation; /* Prevents double-tap zoom on buttons */
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overscroll-behavior-y: contain; /* Prevents pull-to-refresh */
}

/* Glassmorphism System */
.glass-panel-modern {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

/* IFP Optimized Touch Targets */
.btn-ifp {
    min-height: 48px;
    min-width: 48px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    user-select: none;
}

.btn-ifp:active {
    transform: scale(0.95) translateZ(0);
}

/* Prevent unwanted selection during interaction */
.no-select {
    user-select: none;
    -webkit-user-select: none;
}

/* Custom Scrollbar for modern look */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* High DPI scaling fixes */
@media (min-width: 2000px) {
    html {
        font-size: 18px; /* Scale up everything for 4K panels */
    }
}

/* Curriculum Table Enhancements */
.glass-card table thead th {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-card table tbody tr {
    transition: all 0.3s ease;
}

.glass-card table tbody tr:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: translateX(8px);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation Utilities */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.animate-curriculum {
    animation: fadeInSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

[diff_block_end]
