/* Custom minimal styles for native app feel */

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Nav items */
.nav-item {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    color: #9ca3af;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}
.nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
    transform: translateX(4px);
}
.nav-item.active {
    background: #4F46E5;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

/* Bottom Nav Mobile */
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.7rem;
    width: 20%;
    height: 100%;
    transition: all 0.2s ease;
    padding-top: 4px;
}
.bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.bottom-nav-item.active {
    color: #4F46E5;
    font-weight: 600;
}
.bottom-nav-item.active i {
    transform: translateY(-3px) scale(1.1);
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .pb-safe {
        padding-bottom: env(safe-area-inset-bottom);
        box-sizing: content-box;
    }
}

/* Modal Animations Override for SweetAlert2 */
div:where(.swal2-container) div:where(.swal2-popup) {
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
div:where(.swal2-container) button:where(.swal2-styled) {
    border-radius: 0.75rem;
    font-weight: 600;
}

/* Utility to hide horizontal scroll if any */
body {
    overscroll-behavior-y: none;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent SweetAlert from breaking the h-screen flex layout */
body.swal2-height-auto,
html.swal2-height-auto {
    height: 100vh !important;
}

/* Card components styles */
.glass-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px border-gray-100;
}
