@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* ===================== BASE ===================== */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #ffeaea;
    color: #0f172a;
}

/* ===================== AMBIENT BLOBS ===================== */
.ambient-blob-1 {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0,100,150,0.15) 0%, rgba(0,100,150,0) 70%);
    z-index: -1;
    animation: pulse-slow 8s infinite alternate;
}

.ambient-blob-2 {
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(64,187,153,0.25) 0%, rgba(64,187,153,0) 70%);
    z-index: -1;
    animation: pulse-slow 10s infinite alternate-reverse;
}

/* ===================== GRADIENTS ===================== */
.grad-primary {
    background: linear-gradient(135deg, #006496 0%, rgb(64,187,153) 100%);
}

/* ===================== GLASSMORPHISM ===================== */
.glass-sidebar {
    background: linear-gradient(180deg, rgba(0,100,150,0.95) 0%, rgba(64,187,153,0.92) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid rgba(255,255,255,0.3);
    will-change: transform;
    transform: translateZ(0);
    contain: layout paint style;
}

/* Reduce heavy blur on low-power devices while animating */
@media (max-width: 1024px) {
    .glass-sidebar {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Reduce tap delay and avoid gesture-induced jank */
.btn-action,
.nav-btn,
.bottom-nav-item,
a {
    touch-action: manipulation;
}

/* Avoid costly hover transforms on touch devices */
@media (hover: none) {
    .btn-action:hover,
    .bento-card:hover,
    .child-card:hover {
        transform: none;
    }
}

.header-grad-glass {
    background: linear-gradient(135deg, rgba(0,100,150,0.95) 0%, rgba(64,187,153,0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 20px rgba(0,100,150,0.1);
}

.glass-bottom-nav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 -10px 30px rgba(0,100,150,0.08);
}

/* ===================== CARDS ===================== */
.bento-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,100,150,0.05);
    border: 2px solid rgba(255,255,255,1);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

    .bento-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(64,187,153,0.15);
        border-color: rgb(64,187,153);
    }

.child-card:hover {
    border-color: rgb(64,187,153);
    background: rgba(255,255,255,1);
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,100,150,0.15);
    cursor: pointer;
}

/* ===================== INPUTS ===================== */
.input-field {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: rgba(255,255,255,0.9);
    font-weight: 700;
    color: #0f172a;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

    .input-field:focus {
        border-color: #006496;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(0,100,150,0.2);
        outline: none;
    }

/* ===================== STICKERS ===================== */
.sticker {
    background: white;
    border: 3px solid white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    font-size: 1.2rem;
    font-weight: 900;
    padding: 6px 12px;
    position: absolute;
    z-index: 20;
    color: #0f172a;
}

.sticker-1 {
    top: -15px;
    right: 15px;
    animation: float-sticker-1 3s ease-in-out infinite;
    transform: rotate(12deg);
}

.sticker-login-1 {
    top: -20px;
    left: -10px;
    animation: float-sticker-1 3.5s ease-in-out infinite;
    transform: rotate(-10deg);
}

.sticker-login-2 {
    bottom: -15px;
    right: -10px;
    animation: float-sticker-2 4s ease-in-out infinite;
    transform: rotate(15deg);
}

/* ===================== BUTTONS ===================== */
.btn-action {
    transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
    cursor: pointer;
}

    .btn-action:hover {
        transform: scale(1.05);
    }

    .btn-action:active {
        transform: scale(0.95);
    }

/* ===================== DRAWER ===================== */
.drawer-open {
    transform: translateX(0) !important;
}

/* ===================== BOTTOM NAV ===================== */
.bottom-nav-item.active {
    color: rgb(64,187,153);
}

    .bottom-nav-item.active i {
        transform: translateY(-3px);
    }

    .bottom-nav-item.active span {
        font-weight: 800;
        opacity: 1 !important;
    }

/* ===================== ANIMATIONS ===================== */
@keyframes wave {
    0%,100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-20deg);
    }

    75% {
        transform: rotate(20deg);
    }
}

.animate-wave {
    display: inline-block;
    animation: wave 1.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes float-sticker-1 {
    0%,100% {
        transform: translateY(0) rotate(12deg);
    }

    50% {
        transform: translateY(-10px) rotate(16deg);
    }
}

@keyframes float-sticker-2 {
    0%,100% {
        transform: translateY(0) rotate(15deg);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

@keyframes pulse-slow {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes float-icon {
    0%,100% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(calc(-50% - 8px)) scale(1.05);
    }
}

.icon-float {
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stagger-entry {
    opacity: 0;
    animation: slideUpFade 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-in-out forwards;
}

.page-transition {
    animation: slideUpFade 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

/* ===================== SCROLLBARS ===================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: #006496;
    border-radius: 10px;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scroll-fade-right {
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

/* ===================== MODAL ===================== */
.modal-enter {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
}

    .modal-enter.modal-show {
        transform: scale(1);
        opacity: 1;
    }

/* ===================== TEXT CLAMP ===================== */
.text-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
