/* Global Scroll Padding for Fixed Header */
html {
    scroll-padding-top: 100px;
    /* Adjust based on header height (~80px) + breathing room */
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 75px;
        /* Match mobile header height (~72px) so title is visible but not too far */
    }
}

/* Premium Background Pattern (Dot Grid) */
.bg-grid-pattern {
    /* Creates a 1px dot every 32px */
    background-image: radial-gradient(rgba(148, 163, 184, 0.25) 1px, transparent 1px);
    background-size: 32px 32px;
    /* Fades out the pattern towards the bottom for a seamless look */
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Premium Glass Navigation (Transparent to Vision Style) */
.glass-nav {
    /* Base: Fully Transparent (Lets background text/blobs show through) */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    /* No borders initially */
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;

    box-shadow: none;

    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrolled State (Vision Pro Glass) */
.glass-nav.shadow-sm {
    /* The Transformation: Becomes Milky/Glassy */
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);

    /* Edges appear */
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);

    /* Shadow appears */
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Premium Glass Effect - Light Emerald-Lime Edition */
.glass-card-premium {
    /* Light Emerald to Lime Gradient */
    background: linear-gradient(135deg, #6ee7b7, #bef264);
    /* Emerald-300 to Lime-300 */

    /* Frosted Glass Effect (Subtle) */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    /* Subtle Dark Border */
    border: 1px solid rgba(0, 0, 0, 0.05);

    /* Glow Shadow */
    box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.3);
    /* Emerald-500 Glow */

    /* Smooth Transitions */
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Hover State */
.glass-card-premium:hover {
    /* Saturation Boost */
    background: linear-gradient(135deg, #34d399, #a3e635);
    /* Emerald-400 to Lime-400 */

    /* Border Darkens */
    border-color: rgba(0, 0, 0, 0.1);

    /* Lift & Glow Shadow */
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -10px rgba(16, 185, 129, 0.4);
}

/* Skeleton Loading */
.skeleton {
    color: transparent !important;
    background-color: #e2e8f0;
    background-image: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    border-radius: 0.375rem;
    /* rounded-md */
    user-select: none;
    width: fit-content;
    display: inline-block;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Standard Glass Card (White/Milky) */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Custom scrollbar (moved from index.html) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Form Wizard Styles (Moved from form-register.html) */
.step-active {
    background-color: #059669;
    /* primary-600 */
    color: white;
    border-color: #059669;
}

.step-done {
    background-color: #10b981;
    /* green-500 */
    color: white;
    border-color: #10b981;
}

.step-inactive {
    background-color: transparent;
    color: #64748b;
    /* slate-500 */
    border-color: #94a3b8;
    /* slate-400 */
}

/* Note: @apply doesn't work in vanilla CSS file linked normally, used explicit values */

/* Smooth transitions for form steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utilities (Moved from admin.html) */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* FAQ Page Styles */
.filter-btn.active {
    background-color: #059669;
    /* primary-600 */
    color: white;
    border-color: #059669;
}

/* Panduan Page Styles */
.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}