    :root {
        --bs-body-font-family: 'Verdana', Roboto, sans-serif;
    }
    body { 
        font-family: 'Verdana', Roboto, sans-serif;
        font-size: 12px;
        background-color: #212529;
        overflow-x: hidden;
        }
    .btn:focus,
    .btn:active,
    .form-control:focus,
    input:focus {
        outline: none !important;
        box-shadow: none !important;
    }
    select:focus {
        outline: none !important;
        box-shadow: none !important;
    }
    footer {
        min-height: 55px;
        text-align: center;
        font-size: 12px;
        border-top: 1px solid #ccc;
        padding: 10px;
    }
    /*.container {
        margin-top: 50%;
        margin-right: 50%;
    }*/
    /* Base styles for all screen sizes */
.container {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
}

/* Responsive Breakpoints */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

    .hidden-links {
        display: none;
    }
    .dropdown {
        position: relative;
        display: inline-block;
        float: right;
    }
    .icon-button {
        background-color: transparent;
        padding: 5px 5px;
        border: none;
        color: #FFF;
        cursor: pointer;
    }
    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #003747;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 9999;
        /*right: 0;*/
    }
    .dropdown-content a {
        color: #FFF;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }
    .dropdown-content a:hover {
        background-color: #065465;
        display: block;
        color: #FFF;
    }
    .dropdown:hover .dropdown-content {
        display: block;
    }
    .album_select {
        padding: 10px;
        width: 100%;
        border-bottom: 1px solid #495057;
    }
    .form-control {
        font-size: 12px;
    }

/* --- Utilities --- */
.x-small { font-size: 0.75rem; }
.cursor-pointer { cursor: pointer; }
.online-indicator {
    width: 10px;
    height: 10px;
    background-color: #28a745;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
}


.profile-container {
    position: relative;
    display: inline-block; /* Keeps container same size as image */
    width: 200px;
    height: 200px;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50px; /* Matching your original style */
    display: block;
}

.username-badge {
    position: absolute;
    bottom: 10px;    /* Adjust for vertical overlap amount */
    right: -10px;    /* Pulls it slightly off the edge to overlap */
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background for readability */
    color: white;
    padding: 4px 12px;
    border: 2px solid white; /* 2px white border */
    border-radius: 999px;    /* Creates the "pill" shape */
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;     /* Prevents name from wrapping */
}

.album-card { 
            transition: transform 0.2s ease, box-shadow 0.2s ease; 
            /*background-color: #1a1d20;*/
        }
        .album-card:hover { 
            transform: translateY(-5px); 
            box-shadow: 0 10px 20px rgba(0,0,0,0.5) !important;
        }
        .thumb-container { 
            height: 180px; 
            overflow: hidden; 
            background: #2b3035; 
        }
        .thumb-container img { object-fit: cover; height: 100%; width: 100%; }
        .thumb-placeholder { 
            font-size: 2.5rem; 
            color: #495057; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            height: 100%; 
        }
        .search-container {
            background: linear-gradient(180deg, #1a1d20 0%, #0b0c0d 100%);
            padding: 60px 0;
            margin-bottom: 30px;
            border-bottom: 1px solid #2d3238;
        }
        .media-previews img {
    border-radius: 8px !important;
    transition: transform 0.2s;
    cursor: pointer;
}
.media-previews img:hover {
    transform: scale(1.05);
}
/* Comment Card Base Styling */
.card.bg-body-tertiary {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(4px); /* Glassmorphism effect */
}

/* Modern Hover Elevation */
.card.bg-body-tertiary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(var(--bs-primary-rgb), 0.3) !important;
}

/* Media Preview Styling */
.media-previews img, 
.media-previews .position-relative {
    border-radius: 12px;
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.media-previews img:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
    border-color: var(--bs-primary);
}

/* Animations for Submission and Deletion */
.fade-in {
    animation: commentAppear 0.5s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes commentAppear {
    from { 
        opacity: 0; 
        transform: scale(0.95) translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}
        .hero-section {
            background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
            padding: 100px 0;
            border-bottom: 1px solid #333;
        }
        .feature-card {
            transition: transform 0.3s ease;
            background: #1e1e1e;
            border: 1px solid #333;
        }
        .feature-card:hover {
            transform: translateY(-10px);
            border-color: #0d6efd;
        }
         body { 
            background-color: #0d0d0d; 
            }
        .auth-card { 
            max-width: 450px; border: 1px solid #333; background: #1a1a1a; 
            }
        .form-control:focus { 
            box-shadow: none; 
            border-color: #0d6efd; 
            }
        .blur-content {
            filter: blur(15px) grayscale(50%); /* Intense blur to obscure content */
            transform: scale(1.1); /* Prevents white edges from the blur */
            pointer-events: none; /* Prevents dragging/saving image */
            user-select: none;
        }
        /* Intense Gaussian Blur + Grayscale to hide content details */
.blur-protected {
    filter: blur(25px) grayscale(100%) !important;
    transform: scale(1.2); /* Zoom in slightly to hide clean edges */
    opacity: 0.4; /* Fade out further */
    pointer-events: none;
}

/* Ensure the container hides the scaled-up blurred edges */
.locked-container {
    overflow: hidden;
    background-color: #000;
}

/* Sleek Dark Placeholder */
.album-placeholder {
    background: linear-gradient(145deg, #1a1d20, #212529);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: #495057; /* Muted grey */
    border: 1px dashed #343a40;
    transition: all 0.3s ease;
}

.album-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.album-placeholder span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Interaction effect */
.hover-zoom:hover .album-placeholder {
    background: #1d2124;
    color: #0d6efd; /* Turns primary blue on hover */
    border-color: #0d6efd;
}
    .blur-intense { filter: blur(30px) brightness(0.3); transform: scale(1.1); pointer-events: none; }
    .album-placeholder { background: #1a1d20; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: #495057; border: 1px dashed #343a40; }
    .animate-pulse { animation: pulse 2s infinite; }
    @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } }
    
    /* Sidebar Folder Styling */
.list-group-item-action.active.border-info {
    background-color: rgba(13, 202, 240, 0.2) !important; /* Muted teal for custom folders */
    border-left: 4px solid #0dcaf0 !important;
    color: #fff !important;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
    transform: scale(1.1);
    transition: 0.2s;
}

/* Ensure borders don't double up between items */
.list-group-item + .list-group-item {
    border-top-width: 0;
}

@keyframes chat-pulse {
    0% { background-color: #0d6efd; } /* Original Blue */
    50% { background-color: #dc3545; } /* Alert Red */
    100% { background-color: #0d6efd; }
}

.badge-group {
    background-color: #6610f2; /* Purple for groups */
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* System Message Style */
.system-msg {
    align-self: center;
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    font-size: 0.75rem;
    padding: 4px 15px;
    border-radius: 20px;
    margin: 10px 0;
    font-style: italic;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.uppercase-tracking {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.65rem;
}

.storage-container {
    transition: all 0.3s ease;
}

/* Make it pulse if they are near the limit */
.bg-danger.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite, pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.lazy-load {
        opacity: 0;
        transition: opacity 0.8s ease-in-out;
        background-color: #111; /* Shows a dark box while loading */
        min-height: 200px; /* Crucial so they aren't 0px tall! */
        display: block;
    }
    /* When this class is added by JS, the image fades in */
    .lazy-loaded {
        opacity: 1 !important;
    }
    
    /* Specific height for List View thumbnails */
.view-list .lazy-load {
    width: 60px;
    height: 60px;
    min-height: 60px; /* Crucial for Lazy Load! */
    object-fit: cover;
    border-radius: 4px;
}

   /* Specific height for search grid thumbnails */
    .view-grid .lazy-load { 
        min-height: 120px !important; /* Matches the roughly 1/6th column width */
    }
    
    /* Ensure the search clear button doesn't have a blue focus ring */
    #clearSearch:focus, #searchInput:focus {
        box-shadow: none !important;
        outline: none !important;
    }

/* Specific Fix for List View Thumbnails */
.file-item .hover-list img {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important; /* Prevents flexbox from shrinking it */
    min-height: 60px !important; /* Prevents lazy-load collapse */
    object-fit: cover !important; /* Crops it into a perfect square */
    flex-shrink: 0; /* Ensures the image doesn't crush if text is long */
}

/* Ensure the list item row has enough height for the thumb */
.file-item .hover-list {
    min-height: 76px; /* 60px thumb + 16px padding (p-2) */
    align-items: center;
    display: flex;
    margin-bottom: 0.5rem;
}

/* Prevent the thumbnail from collapsing or overlapping */
.file-item .hover-list .lazy-load {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    flex-shrink: 0; /* Prevents text from squishing the image */
    object-fit: cover;
}

/* Fix for the List View row */
.search-list-item {
    display: flex !important;
    align-items: center !important; /* Prevents vertical stretching */
    min-height: 60px;
    max-height: 80px; /* Caps the row height */
    overflow: hidden;
}

/* Fix for the thumbnail specifically */
.search-list-item .lazy-load {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    flex-shrink: 0; /* Keeps it a square */
    object-fit: cover !important;
    margin-right: 15px;
}

/* Ensure the modal has enough height for the cropper */
.modal-body {
    position: relative;
    min-height: 450px; /* Give it a solid base height */
    background-color: #000;
}

    /* 1. The Container MUST have a height and position relative */
    .img-container {
        width: 100%;
        height: 500px; /* Force a height for the cropper to live in */
        max-height: 70vh;
        background-color: #000;
        position: relative;
        overflow: hidden;
    }

    /* 2. Ensure the image doesn't try to be its own boss */
    #cropImagePreview {
        display: block;
        max-width: 100%;
        max-height: 100%;
    }

    /* 3. Force the cropper UI to stay INSIDE the modal */
/* Hide the raw preview image once cropper is active to prevent ghosting */

#cropContainer {
    width: 100%;
    height: 500px;
    background: #000;
    position: relative;
    overflow: hidden; /* This stops the 'left-side' bleed */
}
/* Force the Cropper Grid and Borders to be visible against dark images */
.cropper-line, .cropper-point {
    background-color: #0d6efd !important; /* Makes the handles Blue */
}
.cropper-view-box {
    outline: 2px solid #0d6efd !important; /* Outline of the crop area */
}
.cropper-grid .cropper-line-h, .cropper-grid .cropper-line-v {
    background-color: rgba(255, 255, 255, 0.5) !important; /* White dashed lines */
}
.cropper-hidden { display: none !important; }

.thumbnail-wrapper {
    transition: transform 0.2s;
    cursor: pointer;
}

.thumbnail-wrapper:hover {
    transform: scale(1.03);
}

.video-overlay i {
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5), 0 0 5px rgba(0, 0, 0, 0.8);
    transition: transform 0.2s ease-in-out;
}

/* Make it grow slightly when the user hovers over the card */
.thumbnail-wrapper:hover .video-overlay i {
    transform: scale(1.15);
    opacity: 1 !important;
}

/* Make buttons uniform squares */
.ms-auto .btn-sm {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px; /* Slightly rounded for a modern look */
}

/* Ensure icons are centered */
.ms-auto .btn-sm i {
    font-size: 1.1rem;
    line-height: 1;
}

/* Adjust the zip spinner to fit the small button */
#zip-spinner {
    width: 1rem;
    height: 1rem;
}

@keyframes pulse-animation {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}
.animate-pulse {
    animation: pulse-animation 2s infinite;
}
.blur-intense { filter: blur(15px); opacity: 0.6; }

footer a:hover {
        color: var(--bs-primary) !important;
        transition: color 0.2s ease-in-out;
    }
    .hover-primary:hover { color: #0d6efd !important; }
    .x-small { font-size: 0.7rem; }

.btn-xs {
    padding: 1px 5px;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 3px;
}
/* Makes the dashed border look cool on hover */
.btn-outline-danger:hover {
    border-style: solid !important;
}

/* ==========================================
   UPTASHARE UNIFIED CHAT CSS
   ========================================== */
#chat-system-container {
    z-index: 2000;
    pointer-events: none; /* Allows clicking page elements behind container gap */
}
#chat-system-container > div, .friend-dock-container {
    pointer-events: auto; /* Re-enable for the actual UI */
}
/* Responsive Desktop-Only Visibility */
@media (max-width: 991px) {
    #chat-system-container { display: none !important; }
}

/* Thumbnail Hover Effect */
.chat-window img:hover {
    filter: brightness(0.8);
    transition: 0.3s;
}

/* Chat Message Bubbles */
.chat-window .bg-primary {
    border-bottom-right-radius: 2px;
}
.chat-window .bg-secondary {
    border-bottom-left-radius: 2px;
}

/* Custom Scrollbar for Dark Theme */
.chat-window .card-body::-webkit-scrollbar {
    width: 6px;
}
.chat-window .card-body::-webkit-scrollbar-track {
    background: #111;
}
.chat-window .card-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}
.chat-window .card-header {
    transition: background-color 0.5s ease;
    cursor: pointer;
}
.chat-window .card-header button, 
.chat-window .card-header i.bi-trash-fill {
    position: relative;
    z-index: 10;
}
@keyframes bell-wiggle {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-15deg); }
  60% { transform: rotate(10deg); }
  80% { transform: rotate(-10deg); }
}

@keyframes badge-pop {
  0% { transform: translate(100%, -50%) scale(0.5); opacity: 0; }
  70% { transform: translate(100%, -50%) scale(1.2); }
  100% { transform: translate(100%, -50%) scale(1); opacity: 1; }
}

.wiggle {
  animation: bell-wiggle 0.5s ease-in-out;
}

.badge-new {
  animation: badge-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/* Update your CSS slightly */
.bi-bell-fill {
    display: inline-block !important; /* Forces the rotation to work */
}

/* Ensure the text inside the overlay input isn't too bulky */
.input-group-sm .form-control {
    padding: 0.25rem 0.5rem;
}

/* Optional: Only show the password bar when hovering over the card */
.card .position-absolute {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.card:hover .position-absolute {
    opacity: 1;
}
/* 1. Hide the buttons completely by default */
.gallery-card .btn-danger, 
.gallery-card .btn-info {
    opacity: 0 !important;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 2. Show them clearly when hovering over the card */
.gallery-card:hover .btn-danger, 
.gallery-card:hover .btn-info {
    opacity: 1 !important;
    visibility: visible;
}

/* 3. Extra touch: Make them grow slightly when hovered directly */
.gallery-card .btn:hover {
    transform: scale(1.1);
}
/* This targets the container holding the comment form in your modal */
#lb-comment-form-wrapper {
    position: relative;
    z-index: 1060; /* Higher than Bootstrap modals (1050) and your chat */
    transform: translateY(-50px); /* Adjust this number to sit perfectly above your chat */
    margin: 0 10px; /* Gives it some breathing room from the edges */
}

/* Optional: Make the input look "floating" above the chat */
#lb-comment-form-wrapper .input-group {
    box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
    border-radius: 25px;
    overflow: hidden;
}

/* Ensure Bootstrap rows don't overflow their parents */
.row {
    margin-right: 0;
    margin-left: 0;
}

.notif-fade-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Syncs the Select styling perfectly with Form Control */
.form-select {
    font-size: 0.9rem !important; /* Matches Bootstrap default input text size */
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

/* Fixes the "Large" appearance in dark mode */
select option {
    background: #000;
    color: #fff;
}

.no-caret::after {
    display: none !important;
}

#commentsContainer {
    position: relative;
}
/* Optional: Vertical line behind avatars */
#commentsContainer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px; /* Centers under a 45px avatar */
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
}
.d-flex.mb-4 {
    position: relative;
    z-index: 1; /* Keeps comments above the line */
}
.comment-img-attachment {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.2s;
}

.comment-img-attachment:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}
/* Big Checkboxes */
.bulk-check {
    width: 25px !important;
    height: 25px !important;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    transition: all 0.2s ease;
}

.bulk-check:checked {
    background-color: #0dcaf0 !important; /* Bootstrap 'info' color */
    border-color: #0dcaf0 !important;
    box-shadow: 0 0 8px rgba(13, 202, 240, 0.5);
}

/* Optional: Make the checkbox more visible on hover */
.gallery-card:hover .bulk-check {
    border-color: #fff !important;
}

/* Adjust the "Select All" checkbox too */
#selectAllFiles {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-top: 0;
}
/* Duration Badge Styling */
.duration-badge {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none; /* Let clicks go through to the video */
}

/* Optional: Hide the duration when hovering so it doesn't clutter the pop effect */
.gallery-card:hover .duration-badge {
    opacity: 0.8;
}
.play-icon-circle {
    width: 60px;  /* Slightly bigger circle */
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Make the actual triangle bigger */
.play-icon-circle i {
    font-size: 3rem !important; /* This is the key to making it big! */
    margin-left: 5px; /* Offset to perfectly center the triangle */
}

.gallery-card:hover .play-icon-circle {
    transform: scale(1.1);
    background: #0dcaf0;
    border-color: #fff;
}
.reaction-container {
    position: relative;
    display: inline-block;
    padding-top: 40px; /* Creates an invisible 'bridge' so hover doesn't break */
    margin-top: -40px; 
}

.reaction-box {
    display: none !important;
    bottom: 45px; /* Position it right above the button */
    left: 0;
    gap: 8px;
    z-index: 1100;
    padding: 5px 10px;
}

/* This is the secret: keep it open while mousing over the box itself */
.reaction-container:hover .reaction-box {
    display: flex !important;
}

.reaction-btn {
    font-size: 1.4rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.reaction-btn:hover {
    transform: scale(1.3) translateY(-5px);
}

/* Individual count badges next to the button */
.reaction-badge-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
}
/* Fullscreen Lightbox Tweaks */
#lightboxModal .modal-body {
    height: 100vh;
}

#lb-image-container img, #lb-image-container video {
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border-radius: 4px;
}

/* Allow reactions to overflow the sidebar containers */
.modal-body, 
.bg-dark.border-start, 
#lb-comments-list {
    overflow: visible !important;
}

#lightboxReactionArea .reaction-box {
    display: none !important;
    position: absolute;
    bottom: 40px; /* Distance from button */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999 !important;
    background: #111 !important;
    border: 1px solid #444;
    border-radius: 50px;
    padding: 5px 10px;
}

/* THE SECRET BRIDGE: This fills the gap so the hover doesn't break */
#lightboxReactionArea .reaction-box::before {
    content: '';
    position: absolute;
    bottom: -15px; /* Adjust this to cover the gap perfectly */
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent; /* Invisible but 'clickable' for the hover state */
}

#lightboxReactionArea .reaction-container:hover .reaction-box {
    display: flex !important;
}

/* Navigation Arrow Visibility */
.hover-opacity-100:hover {
    opacity: 1 !important;
    transition: opacity 0.2s;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}
#lb-next, #lb-prev {
    z-index: 2000 !important; /* Move them to the front */
    cursor: pointer;
    pointer-events: auto; /* Ensure they accept clicks */
    background: none;
    border: none;
    outline: none;
}
/* Enable the modern auto-grow feature */
.auto-grow-input {
    field-sizing: content; /* The magic property */
    min-height: 40px;
    max-height: 200px; /* Prevents it from taking over the whole screen */
    resize: none; /* Hide the manual resize handle */
    border-radius: 20px !important;
    padding-top: 8px;
    padding-bottom: 8px;
    line-height: 1.5;
}

/* Ensure the wrapper is tight to the bottom of the sidebar */
#lb-comment-form-wrapper {
    margin-top: auto; /* Pushes it to the bottom */
    width: 100%;
}

/* Optional: Make the scrollbar look better if it hits max-height */
.auto-grow-input::-webkit-scrollbar {
    width: 4px;
}

/* Target the ID specifically for higher priority */
#album-comment-form textarea.album-input-styled {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important; /* Force it to ignore the content width */
    flex-basis: 100%; 
    
    min-height: 52px !important;
    padding-left: 45px !important;
    padding-right: 45px !important;
    padding-bottom: 12px !important;
    padding-top: 12px !important;
    border-radius: 26px !important;
    background-color: #000 !important;
    border: 1px solid #333 !important;
    field-sizing: content;
}

/* Ensure the wrapper isn't restricting the width */
.album-comment-form-wrapper {
    display: block !important;
    width: 100% !important;
    clear: both;
}

/* Ensure the container doesn't collapse */
.album-comment-form-wrapper .position-relative {
    display: flex;
    align-items: flex-end;
}
