/* Dark Theme with Neon Green Highlights */

:root {
    --primary-color: #00FF99;
    --secondary-color: #FFFFFF;
    --background-color: #121212;
    --card-bg: #1E1E1E;
    --text-color: #EEEEEE;
    --border-color: #00CC77;
    --border-color-dark: #007443;
    --hover-color: #121212;
}


.ko-fi::after {
      content: '\f004';
      font-weight: 900;
      font-size: 15px;
      color: #fff;
      position: absolute;
      margin: 20px 0 0 -32px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background-color: #1E1E1E;
    /* Dark background for the scrollbar track */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    /* Neon Green thumb */
    border-radius: 10px;
    border: 3px solid var(--card-bg);
    /* Adds a slight border around the thumb */
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--border-color);
    /* Slightly darker thumb color when hovered */
}

::-webkit-scrollbar-button {
    display: none;
    /* Hide the arrows */
}

::-webkit-scrollbar-corner {
    background-color: var(--background-color);
    /* Dark color for the corner */
}

/* Firefox scrollbar styling */
scrollbar {
    width: 12px;
    height: 12px;
}

scrollbar-track {
    background-color: #1E1E1E;
    border-radius: 10px;
}

scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    border: 3px solid var(--card-bg);
}

scrollbar-thumb:hover {
    background-color: var(--border-color);
}


.hidden {
    display: none !important;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #121212 25%, #1a1a1a 50%, #0f2419 75%, #121212 100%);
    background-attachment: fixed;
    color: var(--text-color);
    padding-bottom: 80px !important;
    font-family: 'Manrope', 'Noto Sans', sans-serif;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}

.navbar,
.card,
.modal-content,
.dropdown-menu {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color);
}

.navbar-brand,
.nav-link,
.dropdown-item {
    color: var(--text-color) !important;
}

.nav-link:hover,
.dropdown-item:hover {
    color: var(--primary-color) !important;
}

.btn-primary {
    color: black;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    border: 2px solid rgba(0, 0, 0, 0) !important;
}

.btn-primary:hover {
    color: var(--primary-color);
    background-color: var(--hover-color) !important;
    border: 2px solid var(--border-color) !important;
}

.active {
    color: var(--primary-color);
    background-color: var(--hover-color) !important;
    border: 2px solid var(--border-color) !important;
}

.search-active {
    color: black !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    border: 2px solid rgba(0, 0, 0, 0) !important;
}

.card {
    color: var(--text-color);
}

.card-header {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.table {
    color: var(--text-color);
}

.table thead {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.input-group-text,
.form-control {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
}

.badge-container {
    top: 10px;
    left: 10px;
    z-index: 10;
}

.badge-container .badge {
    display: block;
    margin-bottom: 5px;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-custom {
    background-color: #1a1a1a !important;
}

.footer {
    border-top: 1px solid var(--border-color);
}

.border-custom {
    border-bottom: 1px solid var(--border-color-dark);
}

.rounded-custom {
    border-radius: 1.25rem;
}

.btn-custom {
    background-color: #252a46;
    color: white;
}

.btn-custom:hover {
    background-color: #5a6a8a;
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.4) !important;
}

.card-custom {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.4) !important;
}

.card-custom-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.card-custom-body-custom {
    display: flex;
    align-items: center;
}

.text-body-primary {

    color: var(--primary-color) !important;
}

.modal {
    font-family: 'Roboto', sans-serif;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #12121277;
    backdrop-filter: blur(15px);
    color: white;
    justify-content: center;
    align-items: center;
    --bs-modal-width: 80vw !important;
}

.modal-content {
    background-color: transparent !important;
    border: 0px !important;
}

body.modal-open {
    padding-right: 0px !important;
    overflow-y: auto;
}

#usernameResults {
    max-height: 400px;
    /* Enough space for around 10 users depending on their size */
    height: 400px;
    overflow-y: auto;
}

#userProfileCard {
    background: linear-gradient(135deg, #1E1E1E, #151515);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 0 25px rgba(0, 255, 153, 0.15);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

#userProfileCard.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.97);
}

#userProfileCard:hover {
    box-shadow: 0 0 35px rgba(0, 255, 153, 0.3);
    transform: scale(1.02);
}

#userAvatar {
    height: 120px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0, 255, 153, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 0 auto;
}

#userAvatar:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.5);
}


#userName {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 6px rgba(0, 255, 153, 0.4);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

#userBio {
    font-style: italic;
    color: #bbb;
    animation: fadeInBio 0.4s ease-in-out;
    line-height: 1.6;
    max-height: 30vh;
    overflow-y: scroll;
}

@keyframes fadeInBio {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#userLinks {
    
    max-width: 40%;
}

#userLinks a {
    color: var(--primary-color);
    position: relative;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-right: 1rem;
}

#userLinks a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

#userLinks a:hover {
    color: #ffffff;
}

#userLinks a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

#vrchatButtonContainer {
    text-align: center;
    margin-top: 5rem;
}

#vrchatProfileLink {
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(0, 255, 153, 0.2);
    transition:  opacity 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 1;
}

#vrchatProfileLink:hover {
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.4);
}
#vrchatProfileLink.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.97);
}