/* global_styles.css 

The Application uses Bootstrap as a starting point for styling (classes, layouts, components, etc.)

However, Bootstap does not meet all the needs of this project.
As a result, this global stylesheet provides overrides to the Bootstrap library
and serves as a mechanism for additional customizations.

This file is located in a global folder, so it can be shared between 
multiple applications within the Django project.

*/


/* Design Tokens */
:root {
    /* Color Scheme */

    --bsx-gray-000:  #ffffff;
    --bsx-gray-050:  hsl(216, 5%, 95%);
    --bsx-gray-100:  hsl(216, 5%, 90%);
    --bsx-gray-200:  hsl(216, 5%, 80%);
    --bsx-gray-300:  hsl(216, 5%, 70%);
    --bsx-gray-400:  hsl(216, 5%, 60%);
    --bsx-gray-500:  hsl(216, 5%, 50%);
    --bsx-gray-600:  hsl(216, 5%, 40%);
    --bsx-gray-700:  hsl(216, 5%, 30%);
    --bsx-gray-800:  hsl(216, 5%, 20%);
    --bsx-gray-900:  hsl(216, 5%, 10%);
    --bsx-gray-999:  black;

    --bsx-color1-30:   #ff6a7b;
    --bsx-color1-40:   #ff596d;
    --bsx-color1-50:   #FE4156;
    --bsx-color1-60:   #ff223c;
    --bsx-color2-30:   #6bcf9c;
    --bsx-color2-40:   #2fb771;
    --bsx-color2-50:   #00A651;
    --bsx-color2-60:   #008c44;
    --bsx-color3-30:   #ca63fd;
    --bsx-color3-40:   #b32bf7;
    --bsx-color3-50:   #A600F7;
    --bsx-color3-60:   #9100da;
    --bsx-color3-70:   #8000c0;
    --bsx-color4-30:   #ffdf7e;
    --bsx-color4-40:   #fed24d;
    --bsx-color4-50:   #FECD3A;
    --bsx-color4-60:   #ffc825;
    --bsx-color5-30:   #6bb0ff;
    --bsx-color5-40:   #429aff;
    --bsx-color5-50:   #2388F8;
    --bsx-color5-60:   #137cf3;



    /* Fonts */
    --font-family-sans-serif: 'Nunito', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  
    /* Borders */
    --border-radius: 0.5rem;
}


/* Base Element Styles */

body {
    font-family: var(--font-family-sans-serif);
    margin: 0;
    padding: 0;
}

html {
    overflow-y: scroll;
    overflow-x: hidden; /* Prevent horizontal scrollbars */
}

body {
    font-family: var(--font-family-sans-serif);
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrollbars */
    max-width: 100vw; /* Ensure body doesn't exceed viewport width */
}

.preserve-format {
    white-space: pre-line;
}

/* Fixed Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensures header stays above other content */
    background-color: var(--bsx-gray-000); /* Optional: Ensure header has a background */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}

/* Wavvy Header Gallery Style */
.header-gallery {
    background-color: var(--bsx-gray-000);
    box-shadow: none;
    color: var(--bsx-gray-800);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-left: 2px;
}

/* Remove padding from container inside header and add shadow to content area only */
/* Make header container wider than page content to accommodate shadow (12px padding on each side = 24px total) */
.header-gallery .container {
    padding-left: 0;
    padding-right: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* On desktop, make header container wider to account for shadow blur */
/* Bootstrap container max-widths: sm=540px, md=720px, lg=960px, xl=1140px, xxl=1320px */
/* Add 24px (12px each side) for shadow blur, but only on desktop breakpoints */
@media (min-width: 576px) {
    .header-gallery .container {
        max-width: calc(540px + 24px);
    }
}

@media (min-width: 768px) {
    .header-gallery .container {
        max-width: calc(720px + 24px);
    }
}

@media (min-width: 992px) {
    .header-gallery .container {
        max-width: calc(960px + 24px);
    }
}

@media (min-width: 1200px) {
    .header-gallery .container {
        max-width: calc(1140px + 24px);
    }
}

@media (min-width: 1400px) {
    .header-gallery .container {
        max-width: calc(1320px + 24px);
    }
}

/* Logo container with white background and rounded corners */
.header-gallery .logo-profile-container .d-inline-block {
    background-color: var(--bsx-gray-000);
    border-radius: 5px;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Allow bell icon to extend outside */
}

/* Logo profile container alignment */
.header-gallery .logo-profile-container {
    display: flex;
    align-items: flex-end; /* Align with bottom of page selector container */
    height: 100%;
    padding-bottom: 0px; /* Match the padding of page-selector-container */
}

.header-gallery .header-logo-img {
    transition: transform 0.2s ease;
    max-height: 50px;
    width: auto;
}

.header-gallery .header-logo-img:hover {
    transform: scale(1.05);
}

/* Page Selector styling */
.page-selector-container {
    padding: 0;
}

/* Decrease size of page selector items and their icons */
.header-gallery .page-selector-container a.item-selector {
    font-size: 1rem; /* Decreased from 1.2rem */
}

.header-gallery .page-selector-container a.item-selector i {
    font-size: 0.9rem; /* Decreased icon size */
    margin-right: 4px; /* Slightly reduced margin */
}

/* Decrease size of Premium link and its icon */
.header-gallery .page-selector-container .ms-4 a.item-selector {
    font-size: 1rem; /* Decreased from 1.2rem */
}

.header-gallery .page-selector-container .ms-4 a.item-selector i {
    font-size: 0.9rem; /* Decreased icon size */
    margin-right: 4px; /* Slightly reduced margin */
}

.page-selector {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-selector a {
    display: flex;
    align-items: center;
    white-space: nowrap;
}


.page-selector a i {
    margin-right: 5px;
}

.header-gallery .page-selector-container a.item-selector,
.header-gallery .page-selector-container a.item-selector-post {
    color: var(--bsx-gray-800);
    text-decoration: none;
    position: relative;
    border-bottom: none;
    display: flex;
    align-items: center;
}

.header-gallery .page-selector-container a.item-selector:hover,
.header-gallery .page-selector-container a.item-selector-post:hover {
    color: var(--bsx-gray-800);
    background-color: transparent;
}

/* Page selector links underline effect */
.header-gallery .page-selector-container a.item-selector:after,
.header-gallery .page-selector-container a.item-selector-post:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -1px;
    left: 50%;
    background-color: var(--bsx-color5-50); /* Blue underline like Premium link */
    transition: width 0.15s ease;
    transform: translateX(-50%);
}

.header-gallery .page-selector-container a.item-selector:hover:after,
.header-gallery .page-selector-container a.item-selector-post:hover:after {
    width: 100%;
}

.header-gallery .page-selector-container a.item-selector.active:after,
.header-gallery .page-selector-container a.item-selector-post.active:after {
    width: 100%;
}

/* Make camera icon larger */
.page-selector-container .item-selector-post .bi-camera,
.header-gallery .item-selector-post .bi-camera {
    font-size: 1.6em;
    color: var(--bsx-gray-800); /* Add color to match the header styling */
}

/* Camera icon in header matches other menu items */
.header-gallery .item-selector-post {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--bsx-gray-800);
    border-bottom: none;
    position: relative;
    padding-bottom: 0px; /* Add padding to increase space between icon and underline */
}

/* Add the hover underline effect for the camera icon */
.header-gallery .item-selector-post:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: var(--bsx-gray-800);
    transition: width 0.15s ease;
    transform: translateX(-50%);
}

.header-gallery .item-selector-post:hover:after {
    width: 100%;
}

/* Override the blue underline from item-selector-post */
.header-gallery .item-selector-post:hover,
.header-gallery .item-selector-post.selected {
    border-bottom: none;
}

.container-fluid.p-0 {
    margin-top: 0px; /* Adjust this value to match your header's height */
}

ul.no-bullets {
    list-style-type: none;
    padding: 0;
    margin: 0;
}



/* Bootstrap Overrides (bsx) */

/* Override Accordion */
.accordion-button:not(.collapsed) {
    color: var(--bsx-gray-700);
    background-color: var(--bsx-gray-100);
}
.accordion-button:focus {
    outline: none;
    box-shadow: none;
}
/* Dropdown Arrow */
.accordion-button::after {
    color: var(--bsx-gray-700);
}
.accordion-button:focus::after,
.accordion-button:hover::after,
.accordion-button:not(.collapsed)::after {
    color: var(--bsx-gray-700);
}




/* Bootstrap Overrides and Enhancers */


/* Logo */

/* Logo link styling */
.bsx-navbar-brand {
    display: inline-block;
    position: relative;
}

/* Wrapper for both images to control height */
.logo-wrapper {
    width: 50px; /* Set the width for the logo area */
    background-repeat: no-repeat;

}

/* Both images positioned absolutely to overlap */
.logo-wrapper .logo-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.2s ease; /* Smooth transition for both in and out */
}

/* Initially show only the base logo */
.logo-wrapper .hover-logo {
    opacity: 0; /* Hidden by default */
}

/* Hover effect to show hover logo and hide base logo */
.bsx-navbar-brand:hover .hover-logo {
    opacity: 1; /* Show hover logo */
}

.bsx-navbar-brand:hover .base-logo {
    opacity: 0; /* Hide base logo */
}



.navbar-collapse {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px; /* Fixed width for the sidebar */
    background-color: var(--bsx-gray-100); /* Light background for contrast */
    padding-top: 20px;
    z-index: 1050; /* Ensure it's on top of other elements */
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    overflow: hidden; 
    border-bottom-left-radius: 20px;
}

/* Keep the hamburger button fixed to the right */
.navbar-toggler {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1100; /* Above the overlay menu */
}

/* Style for menu items to avoid pushing content down */
.navbar-nav .nav-link {
    padding: 10px 15px;
    display: block;
    color: var(--bsx-gray-800);
}

/* Add padding to the main content so it's not covered by the fixed menu */
.main-content {
    padding-top: 60px;
}



/* Links */
.bsx-link {
    color: var(--bsx-color5-50);
}
.bsx-link:hover {
    color: var(--bsx-gray-50);
}

.bsx-shadow {
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.bsx-pop {
    transition: transform 0.05s ease-in-out, box-shadow 0.05s ease-in-out;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.bsx-pop:hover {
    transform: scale(1.010);
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
    transition: transform 0.03s ease-in-out, box-shadow 0.05s ease-in-out;
}


/* Buttons */


/* Button */

.btn.bsx-btn {
    color: white;
    border: 1px solid var(--bsx-color3-50);
    background-color: var(--bsx-color3-50);
    padding: 0.375rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    box-shadow: none;
    width: auto;
}

.btn.bsx-btn:hover {
    background-color: var(--bsx-color3-50);
    color: white;
    border-color: var(--bsx-color3-50);
    box-shadow: none;
}

.btn.bsx-btn:active {
    background-color: var(--bsx-color3-50);
    color: white;
    border-color: var(--bsx-color3-50);
    box-shadow: none;
}

.btn.bsx-btn:focus {
    box-shadow: none;
    outline: none;
}



/* Text Colors */

.bsx-txt-color1 {
    color: var(--bsx-color1-50);
}

.bsx-txt-color2 {
    color: var(--bsx-color2-50);
}

.bsx-txt-color3 {
    color: var(--bsx-color3-50);
}

.bsx-txt-color4 {
    color: var(--bsx-color4-50);
}

.bsx-txt-color5 {
    color: var(--bsx-color5-50);
}


.bsx-txt-feature {
    width: 300px;
}

.bsx-subtle-header {
    background-color: var(--bsx-gray-050);
    border-radius: 14px;
}
.bsx-subtle {
    background-color: var(--bsx-gray-050);
    border-radius: 20px;
}
.bsx-bg-header-grad {
    background-color: var(--bsx-grad01-beg);
}
.bsx-bg-footer-grad {
    background-color: var(--bsx-grad01-end);
}
.bsx-txt-subtle {
    color: var(--bsx-gray-300);
}
.bsx-txt-white {
    color: var(--bsx-gray-050);
}
.bsx-txt-color {
    color: var(--bsx-color5-50);
}

.bsx-txt-section-title {
    font-size: 2.0rem;
}
.bsx-txt-larger {
    font-size: 1.8rem;
}
.bsx-txt-large {
    font-size: 1.2rem;
}
.bsx-txt-small {
    font-size: 0.90rem;
}
.bsx-txt-subscript {
    font-size: 0.8rem;
}

.bsx-close-btn {
    color: var(--bsx-gray-050);
}



.bsx-vertical-line {
    border-left: 1px solid var(--bsx-pink-20); 
    height: 90%;
}

.bsx-horizontal-line {
    background-color: var(--bsx-color5-50); 
    height: 5px;
}

.bsx-sizzle {
    color: var(--bsx-color3-60);
}
.bsx-sizzle:hover {
    color: var(--bsx-pink-60);
}


.bsx-delete {
    color: var(--bsx-color1-50);
}
.bsx-delete:hover {
    color: var(--bsx-gray-000);
    background-color: var(--bsx-color1-50);
}

.bsx-grad {
    background-image: linear-gradient(var(--bsx-color5-50), var(--bsx-color2-50));
}

.bsx-img-hero {
    height: 500px;
}
.bsx-img-lg {
    max-height: 500px;
    max-width: 500px;
}
.bsx-img-partner {
    height: 75px;
}

.wvy-card {
    background: var(--bsx-gray-000);
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}



.bsx-card {
    overflow: hidden;
}

/* Signup form specific - no shadow, no margin/padding */
.signup-form-card {
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bsx-card-contest {
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    overflow: hidden; 
    max-width: 400px;
}


/* Cards */

/* Card 1 */
.bsx-card-header, 
.bsx-card-footer {
    background-color: var(--bsx-gray-050); /* Default color */
}



.bsx-card-detail {
    background-color: var(--bsx-gray-050);
    border-top: 1px solid var(--bsx-gray-200);
    border-bottom: 1px solid var(--bsx-gray-200);
}

/* Hide content by default */
.hover-content {
    visibility: hidden; /* Makes the content not visible, but it still takes up space */
    opacity: 0;         /* Makes the content fully transparent */
    height: 0px;
    transition: all 0.2s ease;
}

/* Show content when parent container is hovered */
.hover-container:hover .hover-content {
    visibility: visible; /* Makes the content visible */
    opacity: 1;           /* Fully opaque */
    height: 100px;
    transition: all 0.2s ease;
}





input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    border: 1px solid #ced4da;
    -webkit-text-fill-color: #495057;
    -webkit-box-shadow: 0 0 0px 1000px var(--bsx-color5-30) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Remove blue autofill background from inputs */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: var(--bsx-gray-900) !important;
}

/* Logo size adjustments */
.header-logo-img {
    border: none;
    max-height: 50px;
    width: auto;
}

/* Sign In title size increase */
.signin-title {
    font-size: 1.8rem;
    font-weight: 600;
}

.header-hero-img {
    background-position: right top;  /* Position the image at the top-right corner */
    background-repeat: no-repeat;
    background-size: auto 100%;
}

input[type="radio"]:checked {
    background-color: var(--bsx-color5-50);  /* Color of the selected radio button */
    border-color: var(--bsx-color5-50);
}


/* Hide increment controls for input[type=number] */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield; /* For Firefox */
}


/* Header Layout - Single line for all screen sizes */
.header-gallery .header-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

/* Dynamic header height compensation */
.header-gallery {
    --header-height: 60px;
    min-height: 30px;
}

/* Apply dynamic padding to main content */
.main-content-with-header {
    padding-top: var(--header-height);
    transition: padding-top 0.3s ease;
}

/* Fallback: Use minimal default padding */
.main-content-with-header {
    padding-top: 1px !important;
}

/* JavaScript will update --header-height dynamically */

/* Page Selector Container */
.header-gallery .page-selector-container {
    padding: 0;
    white-space: nowrap;
}

/* Page selector underline - identical to PremiumLink styling */
.header-gallery .page-selector-dropdown-container .item-selector {
    border-bottom: none;
    position: relative;
}

.header-gallery .page-selector-dropdown-container .item-selector:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -1px;
    left: 50%;
    background-color: var(--bsx-color5-50);
    transition: width 0.15s ease;
    transform: translateX(-50%);
}

.header-gallery .page-selector-dropdown-container .item-selector:hover:after {
    width: 100%;
}

.header-gallery .page-selector-dropdown-container .item-selector.active:after {
    width: 100%;
}

/* Premium Link - Use thin underline like page selector */
.header-gallery a.item-selector {
    border-bottom: none;
    position: relative;
}

.header-gallery a.item-selector:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -1px;
    left: 50%;
    background-color: var(--bsx-color5-50);
    transition: width 0.15s ease;
    transform: translateX(-50%);
}

.header-gallery a.item-selector:hover:after {
    width: 100%;
}

.header-gallery a.item-selector.active:after {
    width: 100%;
}

/* Container to hold video and content */
.video-background {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh; /* Full viewport height */
    border: none;
  }
  
.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video covers the entire area */
    transform: translate(-50%, -50%); /* Center the video */
    z-index: -1; /* Place the video behind content */
    border: none;
}
  
.video-background .content {
    position: relative;
    z-index: 1;
    color: var(--bsx-gray-000);
    text-align: center;
    padding-top: 20vh; /* Adjust for positioning */
    border: none;
}
  
.video-background {
    padding: 0;
    margin: 0;
    border: none;
}


video {
    transform: scale(1);
    border: none;
    outline: none;
    background-color: var(--bsx-gray-000);
}



 /*--------------*/
/* Gallery Feed */


.gallery-container {
    display: flex;
    gap: 16px;
    margin: 0px;
}

.gallery-column {
    flex: 1;
}

.entry-card {
    background: var(--bsx-gray-000);
    border: none;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

/* Flip Container */
.entry-card-flip-container {
    position: relative;
    width: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    perspective: 1000px; /* Enable 3D perspective for flip effect */
}

/* Flip the card when flipped class is applied */
.entry-card-flip-container.flipped {
    transform: rotateY(180deg);
}

/* Front and Back faces */
.entry-card-front,
.entry-card-back {
    width: 100%;
    backface-visibility: hidden;
    border-radius: 14px;
    overflow: hidden;

}

.entry-card-front {
    background: var(--bsx-gray-000);
    position: relative; /* Normal document flow */
}

.entry-card-back {
    background-color: #EE4551;
    transform: rotateY(180deg);
    position: absolute; /* Overlay on top */
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.entry-card-image {
    width: 100%;
    height: auto;
    display: block;
}

.menu-icon {
    text-align: left;
    font-size: 34px;
    color: var(--bsx-gray-999);
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s;
}

.menu-icon:hover {
    color: #000;
}


/* Row 1: Entry Title */
.entry-title {
    margin-bottom: 8px;
    flex: 0 0 auto; /* Fixed height for the title */
    font-size: 1.25rem;
    font-weight: bold;
}

/* Row 2: Entry Description */
.entry-description {
    overflow-y: auto; /* Scrollable if content exceeds available space */
    margin: 8px 0;
    font-size: 1rem;
    color: var(--bsx-gray-100);
}

/* Row 3: Remaining Details */
.entry-details {
    margin-top: auto; /* Pushes details to the bottom of the container */
    flex: 0 0 auto; /* Fixed height for the details */
    font-size: 0.875rem;
    text-align: left; /* Align text to the left */
}

/* Ensure scrollbars are styled consistently */
.entry-description::-webkit-scrollbar {
    width: 6px;
}
.entry-description::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}
.entry-description::-webkit-scrollbar-thumb:hover {
    background: #777;
}



/* Back face content styles (replacing overlay) */



.entry-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 4px;
    color: var(--bsx-gray-100);
    text-align: left;
}


.entry-card-text {
    color: var(--bsx-gray-900);
    text-align: left;
}

/* Scrollbar styling for entry card text */
.entry-card-text::-webkit-scrollbar {
    width: 6px;
}

.entry-card-text::-webkit-scrollbar-track {
    background: var(--bsx-gray-100);
    border-radius: 3px;
}

.entry-card-text::-webkit-scrollbar-thumb {
    background: var(--bsx-gray-400);
    border-radius: 3px;
}

.entry-card-text::-webkit-scrollbar-thumb:hover {
    background: var(--bsx-gray-500);
}

.entry-card-text h5 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.entry-card-text p {
    font-size: 0.9rem;
    margin: 0;
}

.entry-card-link {
    color: #4caf50;
    text-decoration: underline;
}

.entry-card-date {
    font-size: 0.875rem;
    color: #ccc;
}

/* Entry vote count styling */
.entry-vote-count {
    font-size: 10pt;
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* Control spacing for vote button icons */
.vote-button-container i.bi {
    color: var(--bsx-gray-999);
    display: block;
    line-height: 0.8;
    padding: 0;
    margin: 0;
    height: 16px;
}

/* Close Button for Flip Cards */
.close-overlay {
    position: static;
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--bsx-gray-700);
    cursor: pointer;
    background: var(--bsx-gray-100);
    border: none;
    outline: none;
    z-index: 10;
    transition: color 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.close-overlay:hover {
    color: var(--bsx-gray-700);
    background: var(--bsx-gray-100);
}




 /*----------------*/
/* Gallery Header */




 /*-------------*/
/* Signup Form */
.skill-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.membership-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.membership-box {
    border: 2px solid #ddd;
    padding: 12px 16px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-radius: 14px;
    transition: border-color 0.2s;
}

.membership-box h5,
.membership-box .fw-bold {
    white-space: nowrap;
    margin: 0;
}

.membership-box .small,
.membership-box .text-muted {
    white-space: nowrap;
}

/* Purple radio buttons and checkboxes for signup form */
.signup-form-card .form-check-input[type="radio"] {
    border-color: var(--bsx-color3-50);
}

.signup-form-card .form-check-input[type="radio"]:checked {
    background-color: var(--bsx-color3-50);
    border-color: var(--bsx-color3-50);
}

.signup-form-card .form-check-input[type="radio"]:focus {
    border-color: var(--bsx-color3-50);
    box-shadow: 0 0 0 0.25rem rgba(166, 0, 247, 0.25);
}

.signup-form-card .form-check-input[type="checkbox"] {
    border-color: var(--bsx-color3-50);
}

.signup-form-card .form-check-input[type="checkbox"]:checked {
    background-color: var(--bsx-color3-50);
    border-color: var(--bsx-color3-50);
}

.signup-form-card .form-check-input[type="checkbox"]:focus {
    border-color: var(--bsx-color3-50);
    box-shadow: 0 0 0 0.25rem rgba(166, 0, 247, 0.25);
}

.membership-box:hover,
.membership-box.selected {
    border-color: black;
}



 /*---------*/
/* Profile */

/* Scrollable skill filter container */
.skill-filter-container {
    display: flex;
    overflow-x: auto; /* Enables horizontal scrolling */
    white-space: nowrap; /* Prevents skills from wrapping */
    scrollbar-width: thin; /* Makes scrollbar minimal (for Firefox) */
    -ms-overflow-style: none; /* Hides scrollbar on IE/Edge */
}

/* Hide scrollbar for Chrome, Safari, and Edge */
.skill-filter-container::-webkit-scrollbar {
    height: 3px; /* Minimal scrollbar height */
}

.skill-filter-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2); /* Light-colored scrollbar */
    border-radius: 10px;
}

.skill-filter-container::-webkit-scrollbar-track {
    background: transparent; /* Hide track */
}


.skill-decoration{
    color: var(--bsx-gray-600);
    background-color: var(--bsx-gray-100);
    border: none;
    outline: none;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 4px;
    border-radius: 20px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.skill-decoration-sm{
    color: var(--bsx-gray-600);
    font-size: 0.8rem;
    background-color: var(--bsx-gray-100);
    border: none;
    outline: none;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 1px;
    padding-bottom: 2px;
    border-radius: 20px;
    margin-top: 0px;
    margin-left: 3px;
    margin-right: 0px;
    margin-bottom: 0px;
}

.state-decoration{
    color: var(--bsx-gray-700);
    font-size: 1.4rem;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-top: 0px;
    margin-bottom: 0px;

}

.state-decoration-sm{
    color: var(--bsx-gray-200);
    font-size: 0.8rem;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 0px;
    margin-top: 2px;
    margin-bottom: 0px;

}

.username-decoration{
    color: var(--bsx-gray-700);
    font-size: 1.3rem;
    font-weight: 400;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.username-decoration-sm{
    color: var(--bsx-gray-100);
    font-size: 1.3rem;
    font-weight: 400;
    padding-left: 2px;
    padding-right: 10px;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.link-decoration{
    text-decoration: none;
    color: var(--bsx-gray-700);
    font-size: 1.0rem;
    font-weight: none;
    margin-left: 10px;
    margin-right: 10px;
    padding: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.link-decoration-sm{
    text-decoration: none;
    color: var(--bsx-gray-200);
    font-size: 1.0rem;
    font-weight: none;
    margin-left: 3px;
    margin-right: 10px;
    padding: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
}
.link-decoration-sm:hover,
.link-decoration-sm.selected {
    border-bottom: 2px solid var(--bsx-color5-50);
}

/* Expanded State */
.profile-container.expand {
    overflow: hidden; 
    width: 300px; /* Width to fit all columns */
    transition: width 0.5s ease-in-out; /* Smooth transition for opening */
}

/* Collapsed State */
.profile-container.collapse {
    overflow: hidden; 
    width: 80px; /* Width of the collapsed container */
    display: flex; /* Ensures content aligns properly */
    align-items: center; /* Vertically aligns items within the container */
    transition: width 0.5s ease-in-out; /* Smooth transition for opening */
    white-space: nowrap; 
}

.profile-img-wrapper {
    width: 65px;
    height: 65px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%; /* Ensures the wrapper is circular */
    overflow: hidden; /* Crops the image to fit within the circle */
    cursor: pointer; /* Changes cursor to pointer for interactivity */
    flex-shrink: 1; /* Allows the wrapper to shrink when needed */
}

/* Responsive profile image wrapper for smaller screens */
@media (max-width: 576px) {
    .profile-img-wrapper {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 400px) {
    .profile-img-wrapper {
        width: 50px;
        height: 50px;
    }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops the image while maintaining aspect ratio */
    object-position: center; /* Centers the cropped area */
}

.profile-info {
    text-align: left; /* Ensure all children align to the left */
}

.profile-p {
    margin: 0;
    padding: 0;
}


 /*-----------*/
/* Selectors */

.item-selector {
    text-decoration: none;
    font-size: 1rem; /* Match page selector font size */
    font-weight:100;
    color: var(--bsx-gray-700);
    border-bottom: 2px solid transparent;
    white-space: nowrap; /* Prevent icon and text from wrapping */
}
.item-selector:hover,
.item-selector.selected {
    border-bottom: 2px solid var(--bsx-color5-50);
}
.item-selector-post {
    text-decoration: none;
    font-size: 1rem; /* Match page selector font size */
    font-weight: 400;
    color: var(--bsx-gray-700);
    border-bottom: 2px solid  var(--bsx-gray-700);
    white-space: nowrap; /* Prevent icon and text from wrapping */
}
.item-selector-post:hover,
.item-selector-post.selected {
    border-bottom: 2px solid var(--bsx-color5-50);
}

.item-selector-sm {
    display: inline-block;
    text-decoration: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 100;
    color: var(--bsx-gray-700);
    padding: 4px 6px;
    margin: 0;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background-color: transparent;
}

.item-selector-sm:hover {
    background-color: var(--bsx-gray-200);
}

/* Modifier class for alert style */
.item-selector-sm.alert {
    color: red;
}

/* Ensure alert items also get hover effect but maintain red color */
.item-selector-sm.alert:hover {
    background-color: var(--bsx-gray-200);
}

.rank-badge-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    padding: 2px;
}

.rank-badge-container.selected {
    background-color: rgb(255, 255, 255, 0.5);
}

.rank-columns {
    gap: 2px;
}

.rank-column {
    min-width: max-content;
}

.rank-fallback-row {
    gap: 2px;
}

.rank-fallback-column {
    min-width: max-content;
    flex-shrink: 0;
    text-align: center;
}

.rank-badge-sm {
    width: 20px;
    height: 20px;
}
.rank-badge-lg {
    height: 30px;
}

.rank-container {
    white-space: nowrap;
    scrollbar-width: thin;
}

.skill-selector {
    color: var(--bsx-gray-700);
    border-color: var(--bsx-gray-200);
    background-color: var(--bsx-gray-000);
    border-radius: 20px;
    padding-top: 2px;
    padding-right: 10px;
    padding-bottom: 2px;
    padding-left: 8px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.skill-selector:hover {
    background-color: #e4e4e4 !important;
    transition: all 0.2s ease-in-out !important;
}

.skill-selector.selected {
    background-color: var(--bsx-gray-000);
    color: black !important;
    border-color: black !important;
    transition: all 0.2s ease-in-out !important;
}

.skill-dot {
    display: inline-block;
    margin-right: 8px;
    transition: all 0.2s ease;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: gray;

}

/* Due to the browser issues associated with applying styles to the All button,
    these styles have been created to force the All button's intended styles.
*/
.skill-selector.skill-all.selected {
    border-color: black !important; 
    background-color: var(--bsx-gray-000); 
    transition: all 0.2s ease-in-out !important;
}


/* Entry Image Upload Preview */

.preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px; /* Adjust the height to fit your needs */
    overflow: hidden; /* Ensures the image does not overflow the container */
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    display: none; /* Hide the image by default */
    object-fit: cover; /* Crops the image to fit the container without squishing */
    border-radius: 14px; /* Optional: Adds rounded corners */
}


.vote-count {
    font-size: 12px;
    color: var(--bsx-gray-100);
}

.vote-button-container {
    cursor: pointer;
    font-size: 22px; /* Increased from default size */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.vote-button {
    height: 22px; /* Increased from 15px to almost twice the size */
}

.contest-title-single {
    font-weight: 500;
}

.paid-badge {
    height: 15px;
}



/* Points History */

/* Points History Container */
.points-history-container {
    max-height: 60px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    margin-top: 0;
    padding-top: 0;
}

.points-history-container::-webkit-scrollbar {
    width: 6px;
}

.points-history-container::-webkit-scrollbar-track {
    background: transparent;
}

.points-history-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.points-history-title {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.25rem;
    margin: 0;
    line-height: 1;
}

.pts-label {
    white-space: nowrap;
}

/* Overlays */
.bsx-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 2rem;
}

.bsx-overlay-content {
    max-width: 600px;
    width: 100%;
}

/* Storylane responsive width */
.storylane-responsive-width {
    width: 100%;
}

@media (min-width: 768px) {
    .storylane-responsive-width {
        width: 80%;
    }
}

/* Skill Styling */
.bsx-skill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.bsx-skill-dot-lg {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.bsx-skill-label {
    padding: 2px 0;
    border-radius: 4px;
    font-size: 0.8rem;
    align-self: flex-start;
    display: flex;
    align-items: center;
}

/* Buttons */
.bsx-chevron-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border: 1px solid #dee2e6;
    color: #adb5bd;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.bsx-chevron-btn:hover {
    color: var(--bsx-gray-000);
}

.bsx-chevron-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.bsx-chevron-btn-lg {
    width: 32px;
}

.bsx-chevron-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Scrollable Containers */
.bsx-scroll-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.bsx-dropdown-scroll {
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Text Sizes */
.bsx-text-sm {
    font-size: 0.9rem;
}

/* Add this new class for the create challenge button */
.bsx-create-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #dee2e6;
    color: #adb5bd;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    border-radius: 4px;  /* Square with rounded corners instead of circle */
    margin-left: 4px;
}

.bsx-create-btn:hover {
    color: var(--bsx-gray-000);
    background-color: var(--bsx-color3-50);
}

/* Challenge Items */
.challenge-item {
    transition: background-color 0.2s ease;
    border-radius: 8px;
}

.challenge-item:hover {
    background-color: #f8f9fa;  /* Bootstrap's light gray */
}

/* Add this class for rank scrollbar */
.rank-scroll-container {
    max-height: 300px;
    overflow-x: auto;  /* Change to horizontal scroll */
    overflow-y: hidden;  /* Hide vertical scroll */
    border: none;
    border-radius: 5px;
    white-space: nowrap;  /* Prevent wrapping */
}

.rank-scroll-container::-webkit-scrollbar {
    height: 6px;  /* Doubled from 3px to 6px */
}

.rank-scroll-container::-webkit-scrollbar-thumb {
    background-color: #adb5bd;
    border-radius: 3px;  /* Increased to match the new height and make ends more rounded */
}

.rank-scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: #6c757d;
}

/* History toggle button */
.bsx-history-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #dee2e6;
    color: #adb5bd;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 4px;  /* Square with slightly rounded corners */
}

.bsx-history-btn:hover {
    color: var(--bsx-gray-000);
    background-color: var(--bsx-color3-40);
    border-color: var(--bsx-color3-40);
}

/* Points History Animation */
.points-history-wrapper {
    overflow: hidden;
    transition: max-height 0.2s ease;  /* Match button rotation speed */
    max-height: 0;
}

.points-history-wrapper.expanded {
    max-height: 500px;  /* Large enough to fit content */
}

/* Skill Dropdown Animation */
.skill-dropdown-wrapper {
    overflow: hidden;
    transition: max-height 0.2s ease;
    max-height: 0;
    width: 100%;
    margin-top: 4px;
}

.skill-dropdown-wrapper.expanded {
    max-height: 300px;
}

/* Radio Button Styling */
.bsx-radio-group {
    display: flex;
    gap: 8px;
}

.bsx-radio-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 16px;
    height: 16px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--bsx-gray-000);
}

.bsx-radio-btn:checked {
    background-color: var(--bsx-color3-70);
}

.bsx-radio-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.bsx-radio-label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
}

/* Contest Entry Background */
.contest-entry-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;  /* Changed from 0 to -1 to ensure it stays behind all content */
    overflow: hidden;
}

.arc-background {
    position: absolute;
    bottom: -60%;  /* Arc height */
    left: 50%;
    transform: translateX(-50%);
    width: 103%;
    height: 100%;
    background-color: black;
    border-radius: 50% 50% 0 0;
}

/* Logo Text Styling */
.logo-text-primary {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 0.25rem;  /* Changed from -0.5rem to -0.25rem to add more space */
    margin-bottom: 0;
    line-height: 1;
    color: var(--bsx-gray-900);
}

.logo-text-secondary {
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 0.25rem;  /* Changed from -0.5rem to -0.25rem to add more space */
    color: var(--bsx-gray-999);
    line-height: 1;
}

/* Global Close Button */
.bsx-global-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--bsx-gray-500);
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    border-radius: 50%;
    z-index: 2;
}
.bsx-storylane-close {
    position: absolute;
    top: -0.1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--bsx-gray-700);
    font-size: 1.9rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    border-radius: 50%;
    z-index: 2;
}

/* Card header with relative positioning for close button */
.bsx-card-header-relative {
    position: relative;
}

/* Clean white card styling - no borders, white background */
.bsx-card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.bsx-card-header {
    background-color: white;
    border-bottom: none;
    padding-bottom: 0;
}

.bsx-card-footer {
    background-color: white;
    border-top: none;
}

.bsx-global-close:hover {
    color: var(--bsx-gray-700);
    background-color: var(--bsx-gray-100);
}

.bsx-global-close i {
    font-size: 1.5rem;
    line-height: 1;
}

/* Entry Card Text Styling */
.entry-card-text {
    color: var(--bsx-gray-900);
    text-align: left;
}

.entry-card-text h5 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.entry-card-text p {
    font-size: 0.9rem;
    margin: 0;
}


/* Challenge Entry Count Styling */
/* Note for Cursor AI: These classes are used in ChallengeItem.js for the entry count display.
   The count should be centered above the accept button with minimal spacing to maintain a compact layout.
   The count width should match the chevron button width (24px) for perfect alignment. */
.bsx-challenge-count {
    font-size: 0.75rem;
    color: #adb5bd;
    margin-top: 0.01rem;  /* Reduced top spacing */
    margin-bottom: 0.1rem;  /* Space between count and button */
}

.bsx-challenge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 24px;
    padding-bottom: 0.1rem;  /* Increased bottom spacing */
}

.bsx-entry-count {
    font-size: 0.75rem;
    color: #adb5bd;
    text-align: center;
    margin-bottom: 0.3rem;
    width: 24px; /* Match chevron button width */
}

.bsx-entry-count-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 24px; /* Match chevron button width */
}

.bsx-entry-count-spacer {
    height: 0.3rem;
}

.info-card {
    width: 100%;
    background: var(--bsx-gray-000);
    padding: 1.5rem;
    border-radius: 23px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    color: var(--bsx-gray-900); /* Ensure readable text on white background */
}

.info-text {
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem 0.5rem;
}

/* Scrollbar styling for info-text */
.info-text::-webkit-scrollbar {
    width: 6px;
}

.info-text::-webkit-scrollbar-track {
    background: var(--bsx-gray-100);
    border-radius: 3px;
}

.info-text::-webkit-scrollbar-thumb {
    background: var(--bsx-gray-400);
    border-radius: 3px;
}

.info-text::-webkit-scrollbar-thumb:hover {
    background: var(--bsx-gray-500);
}

.point-type-icon-container {
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.point-type-icon-container.selected {
    background-color: rgb(255, 255, 255,0.5);
}

.point-type-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.point-type-icon-placeholder {
    width: 100%;
    height: 100%;
}

.points-text {
    white-space: nowrap;
}



/* Points History Table Styles */
.points-history-table {
    border-collapse: collapse;
    width: 100%;
    margin: 0;
    padding: 0;
}

.points-history-row td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    vertical-align: top;
}

.points-date-cell {
    white-space: nowrap;
    padding: 0.35rem 0;
    padding-right: 6px; /* Small right padding to prevent text touching */
}

.points-description-cell {
    padding: 0.35rem 0;
    padding-left: 0;
    color: var(--bs-body-color);
    width: 100%; /* Make description take remaining space */
}

.points-value-cell {
    white-space: nowrap;
    text-align: right;
    padding: 0.35rem 0;
    padding-left: 0.25rem;
    color: var(--bs-text-muted);
}

/* Ensure the points and icon container stays top-aligned */
.points-value-cell .d-flex {
    align-items: flex-start;  /* Align flex items to the top */
}


/* Portfolio Styles */
.portfolio-container {
    display: flex;
    gap: 16px;
    margin: 16px;
}

.portfolio-column {
    flex: 1;
}

.portfolio-card {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.portfolio-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 0;
    width: 100%;
}

/* Logo Profile Menu Styles */
.logo-profile-container {
    position: relative;
    display: inline-block;
}

.profile-popup-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background-color: var(--bsx-gray-000);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    padding: 15px;
    margin-top: 10px;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-popup-menu:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 15px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--bsx-gray-000);
}

.profile-content {
    width: 100%;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bsx-gray-100);
}
.menu-divider {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--bsx-gray-100);
}

.profile-img-container {
    margin-right: 15px;
}

.profile-popup-menu .profile-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bsx-gray-200);
}

.profile-details {
    flex: 1;
}

.profile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Profile Menu Links */
.profile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Basic styling for buttons within profile-menu-links to match item-selector-sm */
.profile-menu-links button {
    text-align: left;
    border: none;
    width: 100%;
}

/* Page Selector Dropdown - Similar styling to profile-popup-menu */
.page-selector-dropdown-container {
    position: relative;
}

.page-selector-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background-color: var(--bsx-gray-000);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    padding: 15px;
    margin-top: 10px;
    animation: fadeIn 0.2s ease-in-out;
}

.page-selector-dropdown:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 15px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--bsx-gray-000);
}

.page-selector-dropdown-content {
    width: 100%;
}

.page-selector-menu-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.page-selector-menu-links .item-selector-sm {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.page-selector-menu-links .item-selector-sm.active {
    color: var(--bsx-color5-50);
    font-weight: 500;
}

/* Chevron rotation for dropdown */
.page-selector-chevron {
    display: inline-block;
    transition: transform 0.2s ease;
}

.page-selector-chevron.open {
    transform: rotate(180deg);
}

/* Card variations */
.wvy-card {
    background: var(--bsx-gray-000);
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Dashboard Card Base Style */
.dashboard-card {
    background-color: var(--bsx-gray-000);
    border: none;
    border-radius: 14px;
    box-shadow: none;
    padding: 1rem;
    margin: 0; /* Remove margin to prevent overlapping */
    height: 100%;
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    overflow: visible;
    min-width: fit-content;
    flex-shrink: 0;
}

/* Dashboard Row - Equal Height Cards with Wrap */
.dashboard-row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between; /* Distribute cards evenly on large viewports */
}

.dashboard-row .col-lg-4 {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-card-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 400px; /* Limit maximum width to prevent cards from being too wide when they wrap */
}

/* On large viewports (≥1200px / Bootstrap xl), allow cards to expand to fill full width horizontally */
@media (min-width: 1200px) {
    .dashboard-card-wrapper {
        max-width: none; /* Remove max-width constraint on large viewports */
        flex: 1 1 0; /* Allow equal distribution */
    }
    
    .dashboard-row {
        justify-content: space-between; /* Ensure cards fill the width */
    }
}

/* For viewports below 1200px (Bootstrap xl), stack cards vertically and center them */
@media (max-width: 1199px) {
    .dashboard-row {
        flex-direction: column;
        align-items: center; /* Center cards when stacked */
    }
    
    .dashboard-card {
        min-width: auto; /* Allow natural width */
        width: 100%; /* Make all cards same width */
        max-width: 400px; /* Consistent max width for all cards */
    }
    
    .dashboard-card-wrapper {
        max-width: 400px; /* Consistent width for all wrappers */
        width: 100%; /* Take full width of container */
    }
}

.dashboard-card .card-content {
    position: relative;
    margin-top: 0;
    padding-top: 0;
}

.dashboard-card .main-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-top: 0;
    padding-top: 0;
}

.dashboard-card .info-button {
    color: var(--bsx-gray-700);
    font-size: 1.2rem;
    padding: 0;
    text-decoration: none;
    line-height: 0.5;
    align-self: flex-start;
    margin-top: -0.2rem;
}

.dashboard-card .info-button:hover {
    color: var(--bsx-gray-700);
    text-decoration: none;
}

/* Rank Card Specific Styles */
.rank-badge-current {
    height: 75px;
    cursor: pointer;
}

.rank-label {
    color: var(--bsx-gray-500);
    font-size: 0.9rem;
    line-height: 1;
}

.rank-level {
    color: var(--bsx-gray-700);
    font-size: 2rem;
    line-height: 1;
}

.rank-detail-text {
    color: var(--bsx-gray-700);
    font-size: 0.8rem;
}

.rank-points {
    color: var(--bsx-color3-50);
}

/* Streak Card Specific Styles */
.streak-meter {
    width: 75px;
    height: 75px;
    position: relative;
}

.streak-label {
    color: var(--bsx-gray-500);
    font-size: 0.9rem;
    line-height: 1;
}

.streak-level {
    color: var(--bsx-gray-700);
    font-size: 2rem;
    line-height: 1;
}

.streak-value {
    color: var(--bsx-color3-50);
}

/* Points Card Specific Styles */
.points-icon-display {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: var(--bsx-gray-050);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.points-icon-display img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.points-label {
    color: var(--bsx-gray-500);
    font-size: 0.9rem;
    line-height: 1;
}

.points-level {
    color: var(--bsx-gray-700);
    font-size: 2rem;
    line-height: 1;
}

.points-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1px;
    max-width: 120px;
}

.points-transaction-detail {
    color: var(--bsx-gray-700);
    font-size: 0.8rem;
}

.points-transaction-points {
    color: var(--bsx-color3-50);
}

/* Card type-specific styling - now overridden for white background */
.points-card {
    background-color: var(--bsx-gray-000);
    box-shadow: none;
    color: var(--bsx-gray-700);
}

.streak-card {
    background-color: var(--bsx-gray-000);
    box-shadow: none;
    color: var(--bsx-gray-700);
}

.rank-card {
    background-color: var(--bsx-gray-000);
    box-shadow: none;
    color: var(--bsx-gray-700);
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
}

.rank-scroll-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.rank-scroll-container {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--bsx-gray-400) transparent;
    padding-bottom: 0.25rem;
}

.rank-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.rank-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--bsx-gray-400);
    border-radius: 999px;
}

.rank-scroll-container::-webkit-scrollbar-track {
    background-color: transparent;
}

.rank-scroll-container--fallback {
    max-width: 18.75rem;
    margin: 0 auto;
}

.challenge-card {
    background-color: var(--bsx-color3-50);
    box-shadow: none;
    color: var(--bsx-gray-000);
}

.bg-white-50 {
    background-color: rgba(255, 255, 255, 0.5);
}

.challenge-title-rect {
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-weight: 500;
    font-size: 1rem;
    min-width: 0;
    flex: 1;
    text-align: left;
    margin-right: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: var(--bsx-color3-50);
    color: var(--bsx-gray-000);
    border-radius: 5px;
}

.flex-min-width-0 {
  min-width: 0;
}

/* Perk Notification Styles */
.perk-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid var(--bsx-gray-000);
    z-index: 10;
}

.perk-notification-bell {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid var(--bsx-gray-000);
    z-index: 20;
    box-shadow: 0 0 2px #0002;
}

.perk-notification-bell i {
    font-size: 10px;
    line-height: 1;
}

/* Announcement Alert Bell Styles */
.announcement-alert-bell {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid var(--bsx-gray-000);
    box-shadow: 0 0 2px #0002;
    flex-shrink: 0;
}

.announcement-alert-bell i {
    font-size: 10px;
    line-height: 1;
}

.notification-count {
    background-color: #dc3545;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    margin-left: 8px;
    display: inline-block;
    line-height: 1.2;
}

/* Ensure My Perks link and count are flexed and fill the hover area */
.item-selector-sm.d-flex {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* AnnouncementBar - Bell icon in header */
.announcement-bar-outer {
    display: inline-flex;
    align-items: center;
    position: relative;
}

/* Announcement tray - slides down from top-center */
.announcement-tray {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    z-index: 1100;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--bsx-gray-050);
    border-radius: 0 0 12px 12px;
    padding: 18px 0px 0px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    max-width: min(90vw, 600px);
    border-left: 1px solid var(--bsx-gray-100);
    border-bottom: 1px solid var(--bsx-gray-100);
    border-right: 1px solid var(--bsx-gray-100);
    width: auto;
}

.announcement-tray:not(.slide-up) {
    transform: translateX(-50%) translateY(0);
}

.announcement-tray.slide-up {
    transform: translateX(-50%) translateY(-100%);
}

.announcement-tray-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: visible;
    padding-right: 12px;
}

.announcement-tray-content .announcement-alert-icon {
    margin-right: 8px;
    padding-right: 8px;
    position: relative;
}

.announcement-tray-content .announcement-bar-btn {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.announcement-bar-btn {
    white-space: nowrap;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.announcement-alert-icon {
    flex-shrink: 0;
    transition: color 0.3s;
}

/* Announcement badge styling */
.announcement-badge {
    background-color: var(--bsx-color1-50);
    color: white;
    font-size: 0.7em;
    min-width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-30%, -50%);
    border-radius: 50%;
    font-weight: 500;
    z-index: 10;
}

/* Popup Table Icons */
.popup-table-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: text-bottom;
}

.popup-table-cell {
    padding: 0.5rem;
}

.popup-table-cell-center {
    padding: 0.5rem;
    text-align: center;
}

.popup-table-cell-nowrap {
    padding: 0.5rem;
    white-space: nowrap;
}

.popup-table-min-width {
    min-width: 70px;
}

.popup-table-width-25 {
    width: 25%;
}

/* CKEditor5 Text Styling */
.ck-editor__editable {
    color: var(--bsx-gray-800) !important;
}

.ck-content {
    color: var(--bsx-gray-800) !important;
}

.ck-editor__editable_inline {
    color: var(--bsx-gray-800) !important;
}

/* Django admin form field styling for CKEditor */
.django-ckeditor-widget .ck-editor__editable,
.django-ckeditor-widget .ck-content {
    color: var(--bsx-gray-800) !important;
}

/* Leaderboard Dropdown Styling */
.leaderboard-dropdown {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 4px center !important;
    background-size: 12px !important;
    padding-right: 20px !important;
}

/* Share Notification Animation */
@keyframes fadeUpAndOut {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0px);
    }
    10% {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
}

/* Mini Dashboard Styles */
.mini-dashboard {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mini-dashboard-card {
    background-color: var(--bsx-gray-000);
    border: 1px solid var(--bsx-gray-200);
    border-radius: 10px;
    padding: 1px;
    min-width: 46px;
    min-height: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mini-dashboard-label {
    color: var(--bsx-gray-500);
    font-size: 0.516rem;
    line-height: 1;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-dashboard-value {
    color: var(--bsx-gray-700);
    font-size: 0.616rem;
    line-height: 1;
}

/* Dashboard Toggle Button */
.dashboard-toggle-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem .5rem;
    margin-left: 1px;
    margin-right: 1px;
    border: 1px solid var(--bsx-gray-300);
    background-color: var(--bsx-gray-000);
    color: var(--bsx-gray-700);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dashboard-toggle-btn:hover {
    background-color: var(--bsx-gray-100);
    border-color: var(--bsx-gray-400);
    color: var(--bsx-gray-800);
}

/* Full Dashboard Accordion Animation */
.full-dashboard-container {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.full-dashboard-container.expanded {
    max-height: 2000px;
    opacity: 1;
    margin-top: 1rem;
}

.full-dashboard-container.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}


/* Challenge Sort Dropdown - Compact Styling */
.challenge-sort-dropdown-container {
    display: inline-block;
}

.challenge-sort-button {
    font-size: 0.9rem !important;
    border-bottom: 2px solid transparent !important;
}

.challenge-sort-button:hover,
.challenge-sort-button.selected {
    border-bottom: 2px solid transparent !important;
}

.challenge-sort-dropdown {
    width: auto;
    min-width: fit-content;
    padding: 8px;
    margin-top: 5px;
}

.challenge-sort-dropdown:before {
    left: 10px;
    top: -8px;
    border-bottom-width: 8px;
    border-left-width: 8px;
    border-right-width: 8px;
}

.challenge-sort-menu-links {
    gap: 2px;
}

.challenge-sort-option {
    font-size: 0.85rem;
    padding: 4px 8px;
    margin: 0;
    border-bottom: none !important;
}

.challenge-sort-option:hover {
    border-bottom: none !important;
}

/* Challenge Four Pane Grid - Custom layout with 2px gaps */
.challenge-four-pane-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    width: 100%;
}

.challenge-pane-item {
    width: 100%;
    aspect-ratio: 1;
}

/* Challenge Tray - Toaster style slide up */
.challenge-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.challenge-item .entry-grid {
    position: relative;
}

.challenge-item > div {
    position: relative;
    overflow: hidden;
}

.challenge-tray {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.15s ease-out;
    z-index: 10;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 6px 6px;
    cursor: pointer;
    pointer-events: none;
}

.challenge-tray::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, var(--bsx-gray-200), var(--bsx-gray-700));
    opacity: 0.92;
    border-radius: 0 0 6px 6px;
    z-index: -1;
}

.challenge-tray.tray-open {
    transform: translateY(0);
    pointer-events: auto;
}

.challenge-tray.tray-open {
    transform: translateY(0);
    pointer-events: auto;
}

.challenge-tray-content {
    padding: 12px 8px;
}

.challenge-tray-title {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.challenge-tray-info-row {
    width: 100%;
}

.challenge-tray-info {
    flex: 1;
    min-width: 0;
}

.challenge-tray-info-line {
    color: white;
    font-size: 0.9rem;
    line-height: 1.4;
}

.challenge-tray-accept-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: white;
    border: 1px solid var(--bsx-gray-700);
    color: var(--bsx-gray-700);
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    text-decoration: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.challenge-tray-accept-btn i {
    font-weight: 900;
    -webkit-text-stroke: 0.5px var(--bsx-gray-700);
}

.challenge-tray-accept-btn i.bi-eye {
    font-size: 1.2rem;
}

/* Challenge Add Button - Minimalistic Plus */
.challenge-add-button {
    background: transparent;
    border: none;
    color: var(--bsx-gray-700);
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    padding: 0;
    width: auto;
    height: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.challenge-add-button:hover {
    color: var(--bsx-gray-900);
    background: transparent;
}

.challenge-add-button:focus {
    outline: none;
    box-shadow: none;
}

/* Responsive styles for Premium Hub header */
@media (max-width: 768px) {
    .dashboard-toggle-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
}





