/* App layout styles - extracted from inline styles */

/* Body font family */
body {
    font-family: 'Poppins', sans-serif;
}

/* Unified button styles */
.btn-unified {
    position: relative;
    padding: 0 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border-width: 2px;
    border-color: rgb(74 222 128);
    background-color: transparent;
    font-weight: 600;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.btn-unified:hover {
    border-color: rgb(134 239 172);
    box-shadow: 0 10px 15px -3px rgba(74, 222, 128, 0.5), 0 4px 6px -4px rgba(74, 222, 128, 0.5);
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.1s ease;
    opacity: 0;
    pointer-events: none;
}

.loading-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Fade in animation */
.fade-in {
    animation: fadeInAnimation 0.1s ease-out forwards;
}

/* Custom scrollbar styles */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #17212D;
}

::-webkit-scrollbar-thumb {
    background: #22c55e;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #20ee6b;
}

/* Fade in animation keyframes */
@keyframes fadeInAnimation {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main content fade transitions */
main {
    opacity: 0;
    transition: opacity 0.2s ease;
}

main.loaded {
    opacity: 1;
}

main.fade-out {
    opacity: 0;
}

/* Alpine.js cloak */
[x-cloak] {
    display: none !important;
}

/* Prevent layout shifts by always showing scrollbar */
html {
    overflow-y: scroll;
}

/* Ensure navbar stays fixed in place without shifting */
#mainNav {
    width: 100%;
    left: 0;
    right: 0;
    position: fixed;
    top: 0;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}
