/* root.css */
:root {
    --background-color: #000000;
}

/* Floating Navbar */
.navbar-custom {
    display: flex;
    position: fixed; /* Makes it "float" and stick to the top */
    top: 16px; /* Threshold from the top */
    left: 24px; /* Threshold from the left */
    right: 24px; /* Threshold from the right */
    bottom: 16px; /* Threshold from the bottom */
    z-index: 1030; /* Keeps it above other elements */
    background-color: rgba(0, 0, 0, 0.5); /* Black with 50% transparency */
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); /* Ensures compatibility with Safari */
    border: 1px solid grey;
    border-radius: 10px; /* Rounded corners */
    padding: 5px 10px; /* Inner padding for aesthetics */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Optional shadow for floating effect */
    justify-content: space-between; /* Spread logo and buttons evenly */
    align-items: center; /* Vertically center items */
    max-height: 60px; /* Limit the height */
}

/* Navbar container fluid */
.navbar-custom .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Credits nav item styling for desktop */
.credits-nav-item-desktop {
    margin-right: 10px;
}

/* Container for multiple indicators on desktop */
.credits-indicators-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Free Entry Icon - only changes the icon color when used with credits-indicator */
.credits-indicator.free-entry-icon i {
    color: var(--color-4); /* Teal/turquoise color for gift icon */
}

/* Professional Credits System */

/* Desktop credits indicator */
.credits-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 10px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    min-height: 32px;
    box-sizing: border-box;
}

.credits-indicator:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.credits-indicator i {
    font-size: 14px;
    color: var(--color-2); /* Yellow color for wallet icon */
}

.credits-count {
    font-size: 14px;
    font-weight: 600;
    color: white;
    min-width: 16px;
    text-align: center;
}

.credits-unlimited {
    display: flex;
    align-items: center;
    justify-content: center;
}

.credits-infinity {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-2);
    line-height: 1;
}

/* Mobile floating credits indicator */
.credits-floating-mobile {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.credits-floating-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-2); /* Yellow background */
    color: black;
    border-radius: 25px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 80px;
    justify-content: center;
    text-decoration: none;
}

.credits-floating-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    background-color: var(--color-2-dark);
}

.credits-floating-indicator i {
    font-size: 16px;
    color: black;
}

.credits-floating-indicator .credits-count {
    font-size: 16px;
    font-weight: 700;
    color: black;
}

.credits-floating-indicator .credits-unlimited {
    justify-content: center;
}

.credits-floating-indicator .credits-infinity {
    font-size: 28px;
    color: black;
}

/* Free Entry floating indicator - teal/turquoise background */
.credits-floating-indicator.free-entry-icon {
    background-color: var(--color-4); /* Teal background */
    color: black;
}

.credits-floating-indicator.free-entry-icon:hover {
    background-color: var(--color-4-dark);
}

.credits-floating-indicator.free-entry-icon i {
    color: black;
}

.credits-floating-indicator.free-entry-icon .credits-count {
    color: black;
}

/* Container for floating indicators on mobile */
.floating-indicators-container {
    position: relative;
    display: flex;
    flex-direction: column-reverse; /* Reverse order so free entry appears on top */
    align-items: flex-end;
    gap: 8px; /* Add spacing between bubbles when both are present */
}


/* Credits indicator styling */
.credits-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.1); /* Subtle white background */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle white border */
    border-radius: 6px;
    padding: 6px 10px;
    color: white; /* White text */
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: default;
    min-width: 60px;
    justify-content: center;
}

.credits-indicator:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.credits-indicator i {
    font-size: 14px;
    opacity: 0.8;
}

.credits-count {
    font-size: 14px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

/* Navbar links */
.logo {
    width: min(226px, 50vw); /* Adjust the width of the logo */
    filter: invert(1) brightness(2); /* Turns black to white */
}

/* Make logo smaller on mobile to accommodate credits indicator */
@media (max-width: 768px) {
    .logo {
        width: min(160px, 35vw); /* Even smaller logo on mobile */
    }
}

/* Styling for the white button (Sign Up) */
.nav-link-white {
    width: 165px;
    height: 53px;
    font-size: 20px;
    background-color: white; /* White background */
    color: black; /* Black text */
    padding: 10px 20px; /* Add some padding */
    border: 1px solid black; /* Black border */
    border-radius: 5px; /* Rounded corners */
    font-weight: bold; /* Bold text */
    text-decoration: none; /* Remove underline */
    white-space: nowrap; /* Prevent wrapping */
    text-align: center; /* Center text */
    transition: background-color 0.3s, color 0.3s; /* Smooth transitions */
}

.nav-link-white:hover {
    background-color: rgb(255, 255, 255, 0.8); /* White background on hover */
}
.nav-link-white:active {
    background-color: rgb(2555, 255, 255, 0.5);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    transform: translateY(2px); /* Slightly "push" the button down */
}

/* Styling for the black button (Login) */
.nav-link-black {
    width: 165px;
    height: 53px;
    font-size: 20px;
    background-color: black; /* Black background */
    color: white; /* White text */
    padding: 10px 20px; /* Add some padding */
    border: 1px solid white; /* White border */
    border-radius: 5px; /* Rounded corners */
    font-weight: bold; /* Bold text */
    text-decoration: none; /* Remove underline */
    white-space: nowrap; /* Prevent wrapping */
    text-align: center; /* Center text */
    transition: background-color 0.3s, color 0.3s; /* Smooth transitions */
}

.nav-link-black:hover {
    background-color: rgb(2555, 255, 255, 0.2);
}
.nav-link-black:active {
    background-color: rgb(2555, 255, 255, 0.5);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    transform: translateY(2px); /* Slightly "push" the button down */
}


.nav-item {
    margin-right: 2px; /* Add space between buttons */
}
@media (max-width: 768px) {
    .nav-item {
        margin-right: 10px;
    }
}

/* Toggler icon for mobile view */
.navbar-toggler {
    width: 48px; /* Adjust as needed for larger container */
    height: 48px; /* Larger height for the icon */
    padding: 10px; /* Ensure no extra padding */
    display: flex; /* Center content */
    justify-content: center;
    align-items: center;
    /* Do not have any border */
    border-width: 0px;
}
.navbar-toggler:hover {
    background-color: rgba(0, 0, 0, 0.3); /* Black with 30% transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Ensures compatibility with Safari */
    border-radius: 5px; /* Optional: add rounded corners to the button */
    padding: 10px; /* Adjust the padding if needed for spacing */
}

.navbar-toggler-icon {
    background-position: 0 8px, 0 16px; /* Positions the lines */
    background-size: 100% 3px;
    background-image: linear-gradient(white, white), 
                      linear-gradient(white, white);
    background-repeat: no-repeat; /* Ensures no repeating */
    transition: all 0.3s ease;
    border-width: 0px;
}
/* Toggler icon for pressed state (menu expanded) */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-position: 0 8px, 0 16px; /* Positions the lines */
    background-image: linear-gradient(black, black), 
                      linear-gradient(black, black);
    background-repeat: no-repeat;
    transition: all 0.3s ease;
    border-width: 0px;
}

.navbar-toggler[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.8); /* White with 30% transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Ensures compatibility with Safari */
    border-radius: 5px; /* Optional: add rounded corners to the button */
}
.navbar-toggler[aria-expanded="true"]:hover {
    background-color: rgba(255, 255, 255, 0.5); /* White with 30% transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Ensures compatibility with Safari */
    border-radius: 5px; /* Optional: add rounded corners to the button */
}

/* Remove outline on pressed button */
.navbar-toggler:focus, 
.navbar-toggler-icon:focus {
    outline: none; /* Removes the outline */
    box-shadow: none; /* Ensures no shadow is applied */
}

.nav-link {
    font-size: 20px; /* Adjust size for readability */
    background-color: transparent; /* No background */
    color: white; /* White text */
    text-decoration: none; /* Remove underline */
    padding: 0; /* Remove padding */
    text-align: right; /* Align text to the right */
    transition: color 0.3s ease; /* Smooth hover effect */
    width: auto; /* Fit the text dynamically */
    padding: 5px 10px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.5); /* White with 30% transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Ensures compatibility with Safari */
    border-radius: 5px; /* Rounded corners on hover */
    border-width: 0px;
}

.nav-link:focus,
.nav-link:focus-within {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Ensures compatibility with Safari */
    border-radius: 5px; /* Rounded corners on hover */
    border-width: 0px;
}

/* Navbar menu for toggled (mobile) view */
@media (max-width: 768px) {
    .navbar-collapse {
        display: flex; 
        flex-direction: column; /* Stack items vertically */
        align-items: flex-end; /* Align the entire menu to the right */
        padding: 10px 24px; /* Add padding for spacing */
        background-color: rgba(0, 0, 0, 0.8) !important; /* Stronger black with less transparency - no blur needed */
        border-radius: 10px; /* Optional: Rounded corners */
        margin-top: 10px; /* Add space below the navbar */
        position: absolute; /* Allow precise positioning */
        top: 100%; /* Position below the navbar */
        right: 0px; /* Align menu 24px from the right */
        max-width: calc(100% - 24px);
        z-index: 1050; /* Ensure it sits above other elements */
        border: 1px solid grey;
        width: 300px;
    }

    .navbar-nav {
        width: 100%; /* Full width for the list */
        display: flex;
        flex-direction: column; /* Stack items vertically */
        align-items: flex-end; /* Align items to the right */
        gap: 5px; /* Add spacing between items */
        border-width: 0px;
    }

    .nav-item {
        margin: 0; /* Remove button-like margins */
        width: auto; /* Adjust width for proper alignment */
    }
}

body {
    background-color: black;
}

/* Centered container for simple pages */
.body-container {
    display: flex;
    position: relative;
    flex-direction: column;
    margin-top: 80px;
    height: calc(var(--vh, 1vh) * 100 - 100px); /* Limits the height */
    width: 100%; /* Full width */
    padding: 24px;
    background-color: transparent;
    /* padding-top: 2%; Add slight padding to position closer to the top */
    align-items: center; 
    overflow-y: auto; /* Allow vertical scrolling */
}

.centered-container {
    display: flex;
    background-color: var(--color-4-dark);
    align-items: flex-start;
    width: auto;
    flex-direction: column;
    max-width: calc(100vw - 48px);
    padding: 24px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    gap: 10px;
    box-sizing: border-box;
    min-height: min-content;
    height: auto;
}

@media (max-width: 768px) {
    .centered-container {
        width: 100%;
        max-width: 100%;
        min-height: min(100%, fit-content);
        overflow-y: auto;
        overflow-x: hidden;
    }
}

@media (min-width: 768px) {
    .centered-container {
        min-width: 600px;
    }
}

.centered-container-title {
    color: var(--color-3);
    font-size: 36px;
}

.reverse-svg {
    transform: rotateY(180deg);
}

/* Account menu in navbar */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu-account {
    display: none; 
    position: absolute; /* Allow precise positioning */
    flex-direction: column; /* Stack items vertically */
    align-items: flex-end; /* Align the entire menu to the right */
    padding: 10px 24px; /* Add padding for spacing */
    background-color: rgba(0, 0, 0, 0.5); /* Black with 50% transparency */
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); /* Ensures compatibility with Safari */
    border-radius: 10px; /* Optional: Rounded corners */
    top: 50px !important; /* Adjust based on navbar height */
    right: -24px !important; /* Align menu 24px from the right */
    max-width: calc(100% - 24px);
    z-index: 1050; /* Ensure it sits above other elements */
    border: 1px solid grey;
    width: 300px;
}

.dropdown-item {
    margin: 0; /* Remove button-like margins */
    width: auto; /* Adjust width for proper alignment */
}

.messages {
    position: fixed;
    top: 76px;  /* Adjust this value based on your navbar height */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
    padding: 10px;
}

.alert {
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: white;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.9);  /* Bootstrap success green */
    border-color: #28a745;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.9);  /* Bootstrap warning yellow */
    border-color: #ffc107;
    color: #000;  /* Dark text for light background */
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.9);  /* Bootstrap danger red */
    border-color: #dc3545;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.9);  /* Bootstrap info blue */
    border-color: #17a2b8;
}

.alert-dismissible {
    padding-right: 3rem;
}

/* Credits indicator wrapper */
.credits-indicator-wrapper {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

/* Credits indicator styling */
.credits-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.1); /* Subtle white background */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle white border */
    border-radius: 6px;
    padding: 6px 10px;
    color: white; /* White text */
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: default;
    min-width: 60px;
    justify-content: center;
}

.credits-indicator:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.credits-indicator i {
    font-size: 14px;
    opacity: 0.8;
}

.credits-count {
    font-size: 14px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

/* Mobile responsive adjustments for credits indicator */
@media (max-width: 768px) {
    .credits-indicator {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 50px;
        gap: 4px;
    }
    
    .credits-indicator i {
        font-size: 12px;
    }
    
    .credits-count {
        font-size: 12px;
    }
}
