/* ========================================================
   CUSTOM STYLES & ANIMATIONS: BPMSI RESULT PORTAL
   Used alongside Tailwind CSS v3
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --transition-speed: 0.2s;
}

/* Background grid texture: subtle technical alignment without neon orbs */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bg-tech-grid {
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

.dark .bg-tech-grid {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Custom Accessible Focus Rings (R-32) */
:focus-visible {
    outline: 2px solid #10b981 !important;
    outline-offset: 2px !important;
}

/* Toast Notifications */
.toast-box {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.825rem;
    font-weight: 600;
    pointer-events: auto;
    animation: toast-slide 0.25s ease forwards;
}

@keyframes toast-slide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clean Loader Animation */
.spinner-ring {
    width: 3.25rem;
    height: 3.25rem;
    border: 3px solid rgba(16, 185, 129, 0.15);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Ping Animation */
@keyframes pulse-ping {
    75%, 100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.animate-pulse-ping {
    animation: pulse-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Verified Badge SVG */
.verified-badge-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
}

/* Prevent iOS Safari auto-zoom on input focus (Safari auto-zooms if font-size < 16px) */
#nim-input {
    font-size: 16px !important;
}
