html, body {
    overflow-x: hidden;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    padding-top: 55px;
    background-color: #f8f9fa;
    color: #2a2a2a;
    line-height: 1.6;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
    background-color: #6e36ca;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav-scroller .nav::-webkit-scrollbar {
    display: none;
}

.nav-underline .nav-link {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: .875rem;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease;
}

.nav-underline .nav-link:hover {
    color: #ffffff;
}

.nav-underline .active {
    font-weight: 600;
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

.text-white-50 { 
    color: rgba(255, 255, 255, 0.7); 
}

.bg-purple { 
    background-color: #6e36ca;
    transition: background-color 0.3s ease;
}

.bg-purple:hover {
    background-color: #5d2db3;
}

.lh-100 { line-height: 1; }
.lh-125 { line-height: 1.25; }
.lh-150 { line-height: 1.5; }

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.text-shadow-light {
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.navbar-brand img {
    max-height: 47px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.chat-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background-color: rgba(0,0,0,0.5);
    color: #ffffff;
    font-size: .85rem;
    padding: 0.25rem 0.5rem;
    backdrop-filter: blur(4px);
}

.main-content {
    font-size: 0.925rem;
}

.form-group div.error {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-group .form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,0.25);
}

#loader-icon {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

#loader-icon img {
    max-width: 100px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.load-more {
    background: #6e36ca !important;
    border-color: #6e36ca !important;
    transition: all 0.3s ease !important;
}

.load-more:hover {
    background: #5d2db3 !important;
    border-color: #5d2db3 !important;
    transform: translateY(-1px);
}

@media (max-width: 1000px) {
    .sandwich-menu {
        position: fixed;
        top: 56px;
        bottom: 0;
        left: 100%;
        width: 100%;
        padding: 1rem;
        overflow-y: auto;
        visibility: hidden;
        background-color: #343a40;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    
    .sandwich-menu.open {
        visibility: visible;
        transform: translateX(-100%);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* Modern scrollbar for WebKit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #6e36ca;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5d2db3;
}

.btn-more-models {
    background-color: #6e36ca;
    border: none;
    color: white;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(110, 54, 202, 0.3);
}

.btn-more-models:hover {
    background-color: #5d2db3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 54, 202, 0.4);
}
.btn.load-more {
    background-color: #6e36ca !important;
    border-color: #6e36ca !important;
    box-shadow: 0 2px 8px rgba(110, 54, 202, 0.3) !important;
}

.btn.load-more:hover {
    background-color: #5d2db3 !important;
    border-color: #5d2db3 !important;
}



.card, .model-item {
  transition: transform 0.2s ease, opacity 0.2s ease;
}