html{
    height: 100%;
}

body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Match page background to nav blue so grey/blue clash is gone (same color family as #0f1f39) */
[data-bs-theme="dark"] body {
    background-color: #131d32;
}

/* ========== Auth forms (login, signup, reset) – match nav theme ========== */
.signup-wrapper .auth-form-card.card {
    background-color: #0f1f39;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}
.signup-wrapper .auth-form-card .card-body {
    padding: 2rem 2rem 2rem;
    color: rgba(255, 255, 255, 0.95);
}
.signup-wrapper .auth-form-card .auth-form-logo {
    width: 120px;
    height: auto;
    margin-bottom: 0.75rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.signup-wrapper .auth-form-card h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}
.signup-wrapper .auth-form-card .form-control {
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
}
.signup-wrapper .auth-form-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
.signup-wrapper .auth-form-card .form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #14b5fe;
    box-shadow: 0 0 0 3px rgba(20, 181, 254, 0.2);
    color: #fff;
}
/* Yellow focus ring around icon + input when focused */
.signup-wrapper .auth-form-card .input-group:focus-within {
    border-radius: 8px;
    box-shadow: 0 0 0 3px rgba(255, 254, 36, 0.5);
}
.signup-wrapper .auth-form-card .input-group:focus-within .input-group-text,
.signup-wrapper .auth-form-card .input-group:focus-within .form-control {
    border-color: #fffe24;
}
.signup-wrapper .auth-form-card .input-group:focus-within .form-control {
    box-shadow: none;
}
.signup-wrapper .auth-form-card .input-group-text {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px 0 0 8px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}
.signup-wrapper .auth-form-card .input-group-prepend {
    flex-shrink: 0;
}
.signup-wrapper .auth-form-card .input-group-text .bi {
    font-size: 1.25rem;
    line-height: 1;
}
.signup-wrapper .auth-form-card .input-group .form-control {
    min-height: 44px;
    box-sizing: border-box;
    border-radius: 0 8px 8px 0;
    border-left: 0;
}
.signup-wrapper .auth-form-card .input-group:not(.has-validation) > .input-group-text {
    border-right: 0;
}
/* Input-groups with only a form-control (no icon, e.g. upload form) get full radius */
.signup-wrapper .auth-form-card .input-group > .form-control:first-child:last-child {
    border-radius: 8px;
}
.signup-wrapper .auth-form-card select.form-control {
    appearance: auto;
    cursor: pointer;
}
.signup-wrapper .auth-form-card select.form-control option {
    background: #0f1f39;
    color: #fff;
}
.signup-wrapper .auth-form-card textarea.form-control {
    min-height: 100px;
}
.signup-wrapper .auth-form-card input[type="file"].form-control {
    color: rgba(255, 255, 255, 0.85);
}
.signup-wrapper .auth-form-card .auth-form-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
}
.signup-wrapper .auth-form-card .auth-form-label-block {
    display: block;
    margin-bottom: 0.35rem;
}
.signup-wrapper .auth-form-card .auth-form-section-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    margin-top: 0;
}
.signup-wrapper .auth-form-card .auth-form-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    display: block;
    margin-top: 0.25rem;
}
.signup-wrapper .auth-form-card .btn-secondary {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    border-radius: 8px;
}
.signup-wrapper .auth-form-card .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}
.signup-wrapper .auth-form-card .profile-picture-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    border-radius: 8px;
}
.signup-wrapper .auth-form-card .profile-picture-thumbnail:hover {
    transform: scale(1.08);
    border-color: rgba(20, 181, 254, 0.5);
}
.signup-wrapper .auth-form-card input[type="radio"]:checked + label .profile-picture-thumbnail {
    border-color: #14b5fe;
    border-width: 3px;
    box-shadow: 0 0 12px rgba(20, 181, 254, 0.4);
}
.upload-form-width {
    width: 100%;
    max-width: 34em;
}
/* Upload page: prevent fixed height from .signup-wrapper so form doesn’t overlay footer */
.signup-wrapper.signup-wrapper-upload {
    height: auto;
    min-height: auto;
    margin-bottom: 0;
    padding-bottom: 1rem;
}
.signup-wrapper.signup-wrapper-upload .upload-form-width {
    margin-bottom: 1rem;
}
.signup-wrapper.signup-wrapper-settings {
    height: auto;
    min-height: auto;
    padding-bottom: 2rem;
}
.signup-wrapper .auth-form-card .file-drop-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 1.25rem;
    background-color: rgba(255, 255, 255, 0.07);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.signup-wrapper .auth-form-card .file-drop-zone:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
}
.signup-wrapper .auth-form-card .file-drop-zone.file-drop-zone-dragover {
    background-color: rgba(20, 181, 254, 0.15);
    border-color: #14b5fe;
    color: #fff;
}
.signup-wrapper .auth-form-card .file-drop-zone-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}
.signup-wrapper .auth-form-card .file-drop-zone-text {
    display: block;
    text-align: center;
    pointer-events: none;
}
.signup-wrapper .auth-form-card .file-drop-zone-filename {
    display: none;
    color: #14b5fe;
    font-weight: 600;
    word-break: break-all;
    text-align: center;
}
.signup-wrapper .auth-form-card .btn-primary {
    background-color: #14b5fe !important;
    border-color: #14b5fe !important;
    color: #0f1f39 !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    transition: background-color 0.2s ease, transform 0.15s ease;
}
.signup-wrapper .auth-form-card .btn-primary:hover {
    background-color: #0d9de8 !important;
    border-color: #0d9de8 !important;
    color: #0f1f39 !important;
    transform: translateY(-1px);
}
.signup-wrapper .auth-form-card a {
    color: #14b5fe;
    font-weight: 500;
    text-decoration: none;
}
.signup-wrapper .auth-form-card a:hover {
    color: #3dc4ff;
    text-decoration: underline;
}
.signup-wrapper .auth-form-card .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}
.signup-wrapper .auth-form-card hr {
    border-color: rgba(255, 255, 255, 0.1);
}
.signup-wrapper .auth-form-card .auth-or-divider {
    position: relative;
    margin: 1.25rem 0;
    text-align: center;
}
.signup-wrapper .auth-form-card .auth-or-divider span {
    position: relative;
    z-index: 1;
    background-color: #0f1f39;
    padding: 0 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
}
.signup-wrapper .auth-form-card .auth-or-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}
.signup-wrapper .auth-form-card .google-signin-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: #1f1f1f !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    width: 100%;
    transition: background-color 0.2s, box-shadow 0.2s;
}
.signup-wrapper .auth-form-card .google-signin-btn:hover {
    background: #f0f0f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.signup-wrapper .auth-form-card .google-signin-btn:focus {
    outline: 2px solid #14b5fe;
    outline-offset: 2px;
}
.signup-wrapper .auth-form-card p[style*="color: #fc3535"],
.signup-wrapper .auth-form-card p[style*="color: #04e404"],
.signup-wrapper .auth-form-card p[style*="color: red"] {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

footer{
    margin-top: auto;
    padding-top: 0.75em;
    padding-bottom: 10em;
}

/* Footer Styles */
/* Override existing footer styles */
footer.footer-container {
    margin-top: 5em;
    padding: 3rem 1rem 2rem !important;
    padding-bottom: 2rem !important;
    border-top: 1px solid var(--bs-border-color);
    background-color: var(--bs-body-bg);
}

[data-bs-theme="dark"] footer.footer-container {
    background-color: #0f1f39;
    border-top-color: rgba(255, 255, 255, 0.06);
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section-center {
    text-align: center;
}

.footer-section-center .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--bs-body-color);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
    margin-bottom: 1rem;
}

.app-store-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.app-store-link {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
}

.app-store-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.app-store-badge {
    height: 40px;
    width: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #14b5fe;
    text-decoration: none;
}

.social-links {
    margin-bottom: 0;
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0.5rem 0;
}

.social-link:hover {
    color: #14b5fe;
    text-decoration: none;
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.4rem;
}

.social-link:hover i {
    transform: scale(1.2);
    opacity: 0.8;
}

.footer-copyright {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bs-border-color);
    text-align: center;
}

.copyright-text {
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
    margin: 0;
}

/* Footer Responsive adjustments */
@media (min-width: 768px) {
    .app-store-links {
        flex-direction: row;
        gap: 1rem;
        align-items: flex-start;
    }

    .app-store-badge {
        height: 45px;
    }

    .footer-section {
        margin-bottom: 0;
    }
}

@media (min-width: 992px) {
    footer.footer-container {
        padding: 4rem 1rem 2.5rem !important;
    }

    .app-store-badge {
        height: 50px;
    }

    .footer-section-center {
        text-align: center;
    }
    
    .footer-section-center .footer-nav {
        align-items: center;
    }

    .footer-section-right {
        text-align: right;
    }

    .footer-section-right .social-links {
        justify-content: flex-end;
    }
}

@media (max-width: 767.98px) {
    footer.footer-container {
        padding: 2rem 1rem 1.5rem !important;
    }

    .footer-section {
        text-align: center;
    }

    .app-store-links {
        align-items: center;
    }

    .footer-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        display: flex;
        justify-content: center;
    }
}

.nav-logo{
    width: 4.5em;
    margin-right: .5em;
    flex-shrink: 0;
}

.nav-title{
    font-weight: 500;
}

.nav-margin-top{
    margin-top: 6em;
}

/* ========== SoundboardGuys nav – custom theme (0f1f39, 14b5fe, fffe24) ========== */
.sb-nav {
    background-color: #0f1f39 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.sb-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.sb-nav .nav-link:hover,
.sb-nav .nav-link:focus {
    color: #14b5fe !important;
    background-color: rgba(20, 181, 254, 0.08);
}
.sb-nav .nav-link.text-secondary {
    color: #14b5fe !important;
}
.sb-nav .dropdown-menu {
    background-color: #0f1f39;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.35rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.sb-nav .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.sb-nav .dropdown-item:hover,
.sb-nav .dropdown-item:focus {
    background-color: rgba(20, 181, 254, 0.12);
    color: #14b5fe;
}
.sb-nav .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.08);
}
.sb-nav .nav-search-bar-wrapper.input-group {
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    transition: all 0.2s ease;
}
.sb-nav .nav-search-bar-wrapper.input-group:focus-within {
    border-color: #fffe24;
    box-shadow: 0 0 0 1px #fffe24;
    background-color: rgba(255, 255, 255, 0.1);
}
.sb-nav .nav-search-bar-wrapper .form-control {
    background-color: transparent !important;
    border: none !important;
    color: #fff;
    box-shadow: none !important;
    outline: none !important;
}
.sb-nav .nav-search-bar-wrapper .form-control::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
.sb-nav .nav-search-bar-wrapper .input-group-text {
    background-color: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.6);
}
.sb-nav .nav-search-bar-wrapper.input-group.rounded {
    border-radius: 8px;
    overflow: hidden;
}
.sb-nav .btn-primary {
    background-color: #14b5fe !important;
    border-color: #14b5fe !important;
    color: #0f1f39 !important;
    font-weight: 700;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}
.sb-nav .btn-primary:hover {
    background-color: #0d9de8 !important;
    border-color: #0d9de8 !important;
    color: #0f1f39 !important;
    transform: translateY(-1px);
}
.sb-nav .btn-outline-light {
    border: 2px solid #fffe24;
    color: #fffe24 !important;
    font-weight: 700;
    border-radius: 8px;
    background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.sb-nav .btn-outline-light:hover {
    background-color: #fffe24 !important;
    color: #0f1f39 !important;
    border-color: #fffe24 !important;
    transform: translateY(-1px);
}
.sb-nav .nav-profile-picture {
    border: 2px solid rgba(20, 181, 254, 0.4) !important;
}
.sb-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.25) !important;
}
.sb-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(20, 181, 254, 0.3);
}
@media (max-width: 991.98px) {
    .sb-nav .mobile-nav-menu .nav-link.text-secondary {
        color: #14b5fe !important;
    }
    .sb-nav .mobile-nav-buttons .btn-primary {
        background-color: #14b5fe !important;
        border-color: #14b5fe !important;
        color: #0f1f39 !important;
        font-weight: 700;
        border-radius: 8px;
    }
    .sb-nav .mobile-nav-buttons .btn-outline-light {
        border: 2px solid #fffe24;
        color: #fffe24 !important;
        border-radius: 8px;
    }
}

/* Base nav bar improvements */
header {
    overflow-x: visible;
    position: relative;
    padding: 0.5rem 0.5rem !important;
}

header .container {
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

/* Override Bootstrap container max-widths - mobile/tablet stay 100%, desktop gets 85% */
@media (min-width: 1200px) {
    header .container {
        max-width: 85% !important;
    }
}

header .container .d-flex {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem;
}

/* Nav links - prevent wrapping on desktop */
header .nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.15rem;
    min-width: 0;
    flex-shrink: 1;
}

header .nav li {
    flex-shrink: 0;
    min-width: 0;
    display: flex;
    align-items: center;
}

header .nav .nav-link {
    white-space: nowrap;
    padding: 0.4rem 0.4rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.5;
    vertical-align: middle;
}

/* Dropdown menu improvements - fix vertical alignment */
header .nav-item.dropdown {
    display: flex;
    align-items: center;
}

header .nav-item.dropdown .dropdown-toggle {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    line-height: 1.5;
    vertical-align: middle;
}

header .dropdown-menu {
    max-width: 90vw;
    overflow-x: hidden;
}

header .dropdown-item {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Search bar fixed width - consistent across all sizes */
.nav-search-bar-wrapper {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    flex-shrink: 0;
}

/* Ensure search input matches button height */
.nav-search-bar-wrapper .form-control {
    height: 38px;
    box-sizing: border-box;
}

.nav-search-bar-wrapper .input-group-text {
    height: 38px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button improvements for longer text - match search box height and consistent width */
header .btn {
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 0.4rem 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    flex-shrink: 0;
    height: 38px;
    min-width: 85px;
    box-sizing: border-box;
}

header .btn i {
    flex-shrink: 0;
}

/* Make buttons more compact on all screens */
header .text-end {
    display: flex;
    align-items: center;
    gap: 0.75rem !important;
    flex-wrap: nowrap;
}

/* Ensure even spacing between buttons - use gap, remove margins */
header .text-end .btn,
header .text-end > * {
    margin: 0 !important;
}

/* Always show button text - override any hiding */
header .btn .btn-text {
    display: inline !important;
    visibility: visible !important;
}

/* Override Bootstrap margin classes - consolidated */
header .text-end .btn.me-2,
header .text-end .btn.me-3,
header form.me-lg-3 {
    margin-right: 0 !important;
}

header .nav.me-lg-auto {
    margin-right: 0.25rem !important;
}

/* Desktop/Laptop base (992px+) */
@media (min-width: 992px) {
    /* Hide hamburger menu on desktop */
    .navbar-toggler,
    #mobileNavMenu {
        display: none !important;
    }
    
    /* Show regular nav and buttons on desktop */
    header .container .d-flex .nav,
    header .container .d-flex .text-end {
        display: flex !important;
    }
    
    header .nav,
    header .text-end {
        flex-wrap: nowrap !important;
    }
    
    header .nav .nav-link.px-2 {
        padding-left: 0.3rem !important;
        padding-right: 0.3rem !important;
    }
}

/* Desktop - Large screens (1200px+) */
@media (min-width: 1200px) {
    header {
        padding: 0.5rem 1rem !important;
    }
    
    header .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 85% !important;
    }
    
    header .container .d-flex {
        justify-content: space-between !important;
    }
    
    header .container .d-flex .nav {
        margin-right: auto;
        gap: 0.5rem;
    }
    
    header .container .d-flex form {
        margin-left: auto;
        margin-right: 1rem;
    }
    
    header .nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    .nav-search-bar-wrapper {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    header .btn {
        padding: 0.5rem 0.85rem;
        min-width: 95px;
    }
    
    header .text-end {
        gap: 0.75rem !important;
    }
}

/* Desktop - Extra large screens (1400px+) */
@media (min-width: 1400px) {
    header {
        padding: 0.5rem 1.5rem !important;
    }
    
    header .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        max-width: 85% !important;
    }
    
    header .nav .nav-link {
        padding: 0.5rem 0.85rem;
        font-size: 1.05rem;
    }
    
    .nav-search-bar-wrapper {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }
    
    header .btn {
        font-size: 1rem;
        padding: 0.55rem 1rem;
        height: 38px;
        min-width: 100px;
    }
    
    header .text-end {
        gap: 1rem !important;
    }
    
    header .container .d-flex form {
        margin-right: 1.5rem;
    }
}

/* Laptop - Medium screens (992px - 1099px) */
@media (min-width: 992px) and (max-width: 1099.98px) {
    header .container .d-flex {
        justify-content: flex-start !important;
        gap: 0.3rem;
    }
    
    .nav-logo {
        width: 3.5em;
    }
    
    header .container .d-flex .nav {
        margin-right: 0 !important;
        gap: 0.1rem;
    }
    
    header .container .d-flex .nav .nav-link {
        padding: 0.35rem 0.3rem;
    }
    
    header .container .d-flex form {
        margin-left: auto !important;
        margin-right: 0.3rem !important;
    }
    
    
    header .container .d-flex .btn {
        padding: 0.35rem 0.55rem;
        min-width: 75px;
    }
    
    header .container .d-flex .text-end {
        gap: 0.5rem !important;
    }
    
    /* Very tight screens (992px - 1050px) */
    @media (min-width: 992px) and (max-width: 1050px) {
        header .container .d-flex .nav .nav-link {
            padding: 0.3rem 0.25rem;
        }
        
        header .container .d-flex .text-end {
            gap: 0.4rem;
        }
    }
}

/* Laptop - Medium-large screens (1100px - 1199px) - Center container */
@media (min-width: 1100px) and (max-width: 1199.98px) {
    header .container {
        max-width: 95% !important;
        margin-left: auto;
        margin-right: auto;
    }
    
    header .container .d-flex {
        justify-content: space-between !important;
    }
    
    .nav-logo {
        width: 3.5em;
    }
    
    header .container .d-flex .nav {
        margin-right: auto !important;
    }
    
    header .container .d-flex form {
        margin-left: auto !important;
        margin-right: 0.5rem !important;
    }
    
}

/* Tablet/Mobile - Medium screens (up to 991px) */
@media (max-width: 991.98px) {
    header {
        padding: 0.5rem 0.75rem !important;
    }
    
    header .container .d-flex {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    header .container .d-flex > a:first-child {
        flex: 0 0 auto;
        margin-bottom: 0 !important;
        margin-right: 0.5rem;
    }
    
    /* Override Bootstrap mb-2 class on logo for all mobile/tablet sizes */
    header .container .d-flex > a.mb-2 {
        margin-bottom: 0 !important;
    }
    
    /* Hide regular nav links on mobile/tablet */
    header .container .d-flex .nav {
        display: none !important;
    }
    
    /* Hide regular buttons on mobile/tablet */
    header .container .d-flex .text-end {
        display: none !important;
    }
    
    /* Show search bar */
    header .container .d-flex form {
        flex: 1 1 auto;
        margin: 0 !important;
        margin-left: auto;
        margin-right: 0.5rem;
        width: auto;
        max-width: none;
        display: flex;
        justify-content: flex-end;
    }
    
    header .container .d-flex form .input-group {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
        margin: 0;
    }
    
    .nav-search-bar-wrapper {
        width: 200px !important;
        min-width: 200px !important;
        max-width: 200px !important;
        margin: 0;
    }
    
    /* Style hamburger button */
    .navbar-toggler {
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        padding: 0.25rem 0.5rem;
        background-color: transparent;
        flex-shrink: 0;
        order: 3;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 1.5em;
        height: 1.5em;
    }
    
    /* Mobile menu styles */
    #mobileNavMenu {
        width: 100%;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-nav-menu {
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style: none;
        width: 100%;
    }
    
    .mobile-nav-menu .nav-item {
        width: 100%;
        margin-bottom: 0;
    }
    
    .mobile-nav-menu .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        color: white !important;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure dropdown toggle also has full width border */
    .mobile-nav-menu .nav-item.dropdown {
        width: 100%;
    }
    
    .mobile-nav-menu .nav-item.dropdown .nav-link {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-nav-menu .nav-link:hover,
    .mobile-nav-menu .nav-link:focus {
        background-color: rgba(255, 255, 255, 0.1);
        color: white !important;
    }
    
    .mobile-nav-menu .nav-link.text-secondary {
        color: #6c757d !important;
    }
    
    /* Ensure dropdown arrow doesn't break the border */
    .mobile-nav-menu .nav-item.dropdown .nav-link::after {
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .mobile-nav-buttons {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 0.5rem;
    }
    
    .mobile-nav-buttons .btn {
        width: 100%;
        height: 38px;
        font-size: 0.95rem;
        margin: 0;
    }
    
    .mobile-nav-buttons a {
        width: 100%;
        display: block;
    }
}

/* Extra small mobile layout (iPhone SE, etc.) */
@media (max-width: 420px) {
    header {
        padding: 0.5rem 0.25rem !important;
    }
    
    header .container .d-flex {
        gap: 0.25rem;
    }
    
    .nav-logo {
        width: 3.25em; /* Smaller logo */
    }
    
    header .container .d-flex > a:first-child {
        margin-right: 0.25rem;
    }
    
    header .container .d-flex form {
        margin-right: 0.25rem;
    }
    
    header .container .d-flex form .input-group,
    .nav-search-bar-wrapper {
        width: 170px !important;
        min-width: 170px !important;
        max-width: 170px !important;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.35rem;
    }
}

/* Fix margin-bottom for mobile/tablet stacked layout */
@media (min-width: 576px) and (max-width: 991.98px) {
    header .container .d-flex .nav.mb-2,
    header .container .d-flex .nav.mb-md-0,
    header .container .d-flex form.mb-3,
    header .container .d-flex form#sound-search-form.mb-lg-0 {
        margin-bottom: 0.5rem !important;
    }
    
    header .container .d-flex > a.mb-2,
    header .container .d-flex > a.mb-lg-0 {
        margin-bottom: 0 !important;
    }
}

.home-page-header-component{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.home-page-header-component h1{
    max-width: 25em;
    align-self: center;
}

.home-page-header-component p{
    max-width: 45em;
    align-self: center;
}

.search-bar-wrapper{
    width: 20em;
}

.breadcrumb-link {
    color: white;
    text-underline-offset: 2px;
}

.breadcrumb-link:hover{
    color: #868686;
}

/* Breadcrumb container fixes for mobile */
.breadcrumb {
    flex-wrap: wrap;
    justify-content: center;
    padding-left: 0;
    margin-bottom: 0;
}

.breadcrumb-item {
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.breadcrumb-item.active {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Mobile breadcrumb fixes */
@media all and (max-width: 767.98px) {
    /* Ensure breadcrumb container has padding and stays centered */
    nav[aria-label="breadcrumb"] {
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    .breadcrumb {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0.5rem 0;
        margin: 0;
        width: 100%;
    }
    
    .breadcrumb-item {
        display: inline-flex;
        align-items: center;
        text-align: center;
        max-width: 100%;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        flex-shrink: 1;
    }
    
    .breadcrumb-item a,
    .breadcrumb-item.active {
        text-align: center;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        display: inline-block;
        max-width: 100%;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        display: inline-block;
        padding: 0 0.5rem;
        flex-shrink: 0;
    }
}

/* Toggle Filter Buttons (Home Page) */
.filter-toggles {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-filter-btn {
    border: 2px solid transparent;
    padding: 0.4rem 1.2rem;
    font-weight: 600;
    min-width: 100px;
    color: rgba(255, 255, 255, 0.7);
    background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.toggle-filter-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.toggle-filter-btn.active {
    background-color: transparent !important; 
    border-color: #fffe24 !important;
    color: #fffe24 !important;
    box-shadow: 0 4px 12px rgba(255, 254, 36, 0.15) !important;
}

.toggle-filter-btn:focus-visible {
    outline: 2px solid #fffe24;
    outline-offset: 2px;
}

/* Category Component Styles - Grid Layout */
.categories-section {
    width: 60em;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.categories-grid-wrapper {
    position: relative;
    width: 100%;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2.5rem 1rem;
    justify-items: center;
}

.category-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-circle-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.category-circle-image-wrapper {
    display: block;
    width: 115px;
    height: 115px;
    min-width: 115px;
    border-radius: 50%;
    border: 3px solid transparent;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.category-circle-item:hover .category-circle-image-wrapper {
    transform: scale(1.05);
    border-color: #f5e642;
    box-shadow: 0 8px 24px rgba(245, 230, 66, 0.25);
}

.category-circle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-circle-label {
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    transition: color 0.2s ease;
}

.category-circle-item:hover .category-circle-label {
    color: #f5e642 !important;
}

/* Tablet Layout */
@media all and (min-width: 768px) and (max-width: 991.98px) {
    .category-circle-image-wrapper {
        width: 86px;
        height: 86px;
        min-width: 86px;
    }
    
    .category-circle-label {
        font-size: 0.9rem;
    }
}

/* Small screens - switch to 4 buttons per row */
@media all and (max-width: 767.98px) {
    .categories-grid-wrapper {
        position: relative;
    }
    
    .categories-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1.25rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
        padding-right: 1rem;
        scroll-behavior: smooth;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        cursor: grab;
        user-select: none;
        -webkit-user-select: none;
    }
    
    .categories-grid:active {
        cursor: grabbing;
    }
    
    .categories-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .category-circle-item {
        flex-shrink: 0;
    }

    .category-circle-image-wrapper {
        width: 86px;
        height: 86px;
        min-width: 86px;
    }
    
    .category-circle-label {
        font-size: 0.85rem;
    }
}

/* Modern Category Page Grid (for categories-page.php) */
.categories-page-grid {
    display: grid;
    /* Cap at 4 columns for desktop to evenly fit 12 categories in 3 rows */
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.category-page-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    background-color: #0f1f39;
    border: 2px solid transparent;
}

.category-page-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(15, 31, 57, 0.95) 0%, rgba(15, 31, 57, 0.4) 45%, transparent 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.category-page-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(20, 181, 254, 0.25);
    border-color: rgba(20, 181, 254, 0.4);
}

.category-page-card:hover::after {
    opacity: 0.85;
}

.category-page-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: 0;
}

.category-page-card:hover .category-page-card-img {
    transform: scale(1.1);
}

.category-page-card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem 1rem;
    width: 100%;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.category-page-card-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    transition: color 0.3s ease;
}

.category-page-card:hover .category-page-card-title {
    color: #fffe24;
}

/* Tablet Layout for Categories Grid */
@media all and (min-width: 768px) and (max-width: 991px) {
    .categories-page-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* Mobile Layout for Categories Grid */
@media all and (max-width: 767.98px) {
    .categories-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .category-page-card-title {
        font-size: 1.1rem;
    }
    
    .category-page-card-content {
        padding: 1rem 0.5rem;
    }
}

.button-collection{
    display: flex;
    justify-content: center;   
}

.button-collection-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   
    width: 60em;
    max-width: 100%;
}

/* Sidebar ad unit styling */
#pw_sidebar_holder {
    position: absolute;
    left: -320px;
    top: 0;
    width: 300px;
    min-height: 100vh;
    background: transparent;
    z-index: 1;
    margin-left: 20px;
    padding: 20px 0;
}

/* Main wrapper for content with sidebar */
.main-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hide sidebar on smaller screens */
@media all and (max-width: 1580px) {
    #pw_sidebar_holder {
        display: none;
    }
}

/* Extra aggressive mobile reset for very small screens */
@media all and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .main-wrapper,
    .main-content,
    #pw_sidebar_holder {
        position: static !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        margin: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    #pw_sidebar_holder {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* Additional mobile adjustments */
@media all and (max-width: 991px) {
    .main-wrapper {
        padding: 0 10px;
        position: static !important;
        max-width: 100% !important;
        margin: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }
    
    /* Ensure sidebar is completely hidden on mobile */
    #pw_sidebar_holder {
        display: none !important;
        visibility: hidden !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        width: auto !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }
    
    /* Ensure main content is properly centered */
    .main-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        position: static !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }
}

.button-component{
    text-align: center;
    width: 10em;
}

.button-component img{
    width: 8em;
    /* margin-bottom: -2em; */
}

.sound-title{
    font-size: 1rem;
    color: white;
    text-decoration: underline;
    text-underline-offset: 6px;
    line-height: 1.5em;
    min-height: 3em;
}

.sound-title:hover {
    color: rgb(162, 162, 162);
}

.sound-title-page-link{
    text-decoration: none;
}

.big-sound-title{
    color: white;
    text-decoration: underline;
    text-underline-offset: 12px;
    line-height: 1.5em;
    margin-bottom: 0.5em;
}

.load-more-sounds-btn{
display: flex;
justify-content: center;
}

.load-more-sounds-btn p{
    text-align: center;
    border: 2px solid white;
    border-radius: 25px;
    padding: .5em .8em .5em .8em;
    font-weight: 500;
}

.load-more-sounds-btn a{
    text-decoration: none;
    color: white;
}

.load-more-sounds-btn p:hover{
    cursor: pointer;
    background-color: white;
    color: #212529;
}


.big-sound-button-container{
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    margin-top: 4em;
}

.big-sound-button-container img{
    /* margin-bottom: -5em; */
    width: 25em;
}

.sound-button-description{
    font-style: italic;
}

.download-btn-container{
    display: flex;
    justify-content: center;
    margin-top: 1em;
}

.download-btn{
    background-color:rgb(1, 137, 178);
    padding: 1em 2em 1em 2em;
    border-radius: 25px;
    color: white;
    cursor: pointer;
}

#search-addon{
    cursor: pointer;
}

.signup-wrapper{
    height: 52em;
}

.signup-signin-wrapper{
    width: 75%;
}

.sound-tag-upload-form-container{
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.sound-tag-container{
    display: inline-flex;
    align-items: center;
    background-color: rgba(20, 181, 254, 0.15);
    border: 1px solid rgba(20, 181, 254, 0.3);
    color: #fff;
    border-radius: 20px;
    padding: 0.35em 0.85em;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sound-tag-container:hover{
    background-color: rgba(20, 181, 254, 0.25);
    border-color: rgba(20, 181, 254, 0.5);
}

.sound-tag-remove{
    margin-left: 0.4em;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.sound-tag-remove:hover{
    opacity: 1;
    color: #fffe24;
}

.sound-button-color-selector-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
    padding: 0.5rem;
}

.sound-button-color-selector{
    margin: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.sound-button-color-selector:hover{
    cursor: pointer;
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.sound-button-color-active{
    border-color: #14b5fe;
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(20, 181, 254, 0.5);
}

.sound-btn{
    cursor: pointer;
}

.like-sound-btn{
    cursor: pointer;
}

.copy-sound-btn{
    cursor: pointer;
}

/* User soundboard profile – stats with label on top, number below */
/* Settings button: outside profile block, top-right of container, no layout impact */
.user-soundboard-container {
    position: relative;
}
/* Reserve space so stats (e.g. PENDING) don’t sit under the Settings button */
.profile-settings-btn {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background-color: #14b5fe;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(20, 181, 254, 0.35);
}
.profile-settings-btn:hover {
    background-color: #0ea0e0;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 181, 254, 0.45);
}
.profile-settings-btn:focus {
    outline: 2px solid #fffe24;
    outline-offset: 2px;
}

.user-soundboard-stats {
    gap: 1rem;
}

.user-soundboard-profile .profile-stat {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 4.5rem;
}

.user-soundboard-profile .profile-stat-label {
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.user-soundboard-profile .profile-stat-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #138bc3;
    line-height: 1.2;
}

.user-soundboard-profile .profile-stat--pending {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.35);
}

.user-soundboard-profile .profile-stat--pending .profile-stat-value {
    color: #e0a800;
}

.user-soundboard-profile .profile-stat--pending .profile-stat-label {
    color: rgba(255, 255, 255, 0.85);
}

.user-soundboard-info {
    min-height: 100px;
}

.user-soundboard-name-block {
    margin-top: 0.5rem;
}

.user-soundboard-bio-social {
    min-height: 2rem;
}

/* 3-column profile header: left = picture+name, middle = bio+social, right = stats+settings */
.user-soundboard-cols {
    flex-wrap: wrap;
}
.user-soundboard-col-middle {
    min-height: 2rem;
}
@media (min-width: 768px) {
    .user-soundboard-cols {
        justify-content: space-between;
    }
    .user-soundboard-col-middle {
        flex: 1 1 auto;
        min-width: 120px;
    }
}

/* User soundboard tabs – pill-style buttons using theme colors */
.user-soundboard-tabs {
    border-bottom: none;
    display: inline-flex;
    gap: 0.75rem;
    justify-content: center;
}

.user-soundboard-tabs .nav-item {
    margin-bottom: 0;
}

.user-soundboard-tab {
    border-radius: 999px;
    padding: 0.4rem 1.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3) !important;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.user-soundboard-tab:hover {
    background-color: rgba(20, 181, 254, 0.15) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.user-soundboard-tab.active {
    background-color: #14b5fe !important;
    color: #0f1f39 !important;
    box-shadow: 0 0 0 1px rgba(20, 181, 254, 0.7), 0 0.35rem 0.9rem rgba(0, 0, 0, 0.4) !important;
}

.user-soundboard-tab:focus-visible {
    outline: 2px solid #fffe24;
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .user-soundboard-tabs {
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .user-soundboard-tab {
        padding-inline: 0.9rem;
    }
}

.blog-feature-image{
    width: 50%;
}

/* Tablet breakpoint for iPad and similar devices */
@media all and (min-width: 768px) and (max-width: 991px) {
    .button-component img{
        max-width: 8.5em;
    }
    
    .sound-title{
        font-size: 1.1rem;
        line-height: 1.5em;
    }
    
    .sound-title-page-link {
        min-height: 3.8em;
        max-height: 3.8em;
    }
    
    .button-component{
        min-height: 200px;
        /* Fit 6 buttons per row in this breakpoint instead of 5 */
        width: calc(16.666% - 0.5rem);
        flex: 0 0 calc(16.666% - 0.5rem);
        margin: 0.25rem;
    }
    
    .button-collection-container {
        gap: 0.5rem;
        justify-content: center;
    }
}

/* @media all and (max-width: 1024px) { */
@media all and (max-width: 991px) {
    .home-page-header-component{
        margin-top: 2em;
    }
    .home-page-header-text{
        width: 10em;
        margin-bottom: 1em;
    }    

    .home-page-header-component h1{
        width: 40em;
        max-width: 90%;
    }

    .home-page-header-component p{
        width: 40em;
        max-width: 90%;
    }

    .nav-margin-top{
        margin-top: 6em;
    }

    .button-component{
        /* Default to 6 buttons per row for tablet screens */
        width: calc(16.666% - 0.25rem);
        flex: 0 0 calc(16.666% - 0.25rem);
        margin: 0;
        display: flex;
        flex-direction: column;
        min-height: 180px;
        padding-bottom: 0.5rem;
        box-sizing: border-box;
    }

    .button-component img{
        width: 100%;
        max-width: 6.5em;
        margin: 0 auto;
        display: block;
        flex-shrink: 0;
        margin-bottom: 0.75em;
    }

    .sound-title-page-link {
        text-decoration: none !important;
        flex-shrink: 0;
        margin-top: 0;
        min-height: 3.5em;
        max-height: 3.5em;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
        margin-bottom: 0.75em;
        padding: 0 0.25rem;
    }

    .sound-title{
        padding: 0;
        max-width: 100%;
        line-height: 1.5em;
        font-size: 1rem;
        margin: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        text-decoration: underline;
        text-decoration-skip-ink: none;
        text-underline-offset: 3px;
        text-decoration-thickness: 1px;
        word-break: break-word;
        text-align: center;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
        position: relative;
    }
    
    .sound-title-page-link .sound-title {
        text-decoration: underline;
        text-decoration-skip-ink: none;
    }

    .nav-search-bar-wrapper{
        width: 200px !important;
        min-width: 200px !important;
        max-width: 200px !important;
    }

    .button-collection-container{
        width: 100%;
        max-width: 100%;
        padding: 0 0.5rem;
        gap: 0.1rem;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .button-component .d-flex {
        margin-top: 0;
        margin-bottom: 0.5rem;
        flex-shrink: 0;
    }
    
    .button-component .d-flex i {
        font-size: 0.9rem;
    }

    .big-sound-button-container{
        margin-top: 1em;
    }

    .big-sound-button-container img{
        width: 20em;
        /* margin-bottom: -2em; */
    }

    .signup-wrapper{
        height: 42em;
    }

    .signup-signin-wrapper{
        width: 80%;
    }

    .blog-feature-image{
        width: 100%;
    }
}

/* Small screens - switch to 4 buttons per row */
@media all and (max-width: 767px) {
    .button-component{
        width: calc(25% - 0.25rem);
        flex: 0 0 calc(25% - 0.25rem);
        min-height: 170px;
        margin: 0;
        padding-bottom: 0.5rem;
        box-sizing: border-box;
    }
    
    .button-component img{
        max-width: 6em;
        margin-bottom: 0.75em;
    }
    
    .sound-title{
        font-size: 0.95rem;
        text-decoration: underline;
        text-decoration-skip-ink: none;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        line-height: 1.5em;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
    }
    
    .sound-title-page-link {
        min-height: 3.5em;
        max-height: 3.5em;
        margin-bottom: 0.75em;
        padding: 0 0.15rem;
    }
    
    .button-collection-container{
        padding: 0 0.5rem;
        gap: 0.25rem;
        box-sizing: border-box;
        justify-content: center;
    }
}

/* Audio Player Component Styles */
.audio-player-component {
    position: fixed;
    bottom: 100px; /* Moved up to accommodate fixed ad banner at bottom */
    left: 50%;
    transform: translateX(-50%);
    background-color: #0f1f39;
    border: 2px solid #fffe24;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 15px rgba(20, 181, 254, 0.15);
    z-index: 1050;
    width: 420px;
    max-width: 90%;
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.audio-player-component.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.audio-player-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.audio-player-image-container {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-player-info {
    flex: 1;
    min-width: 0;
}

.audio-player-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.audio-player-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
}

.audio-player-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.audio-player-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.audio-player-btn:hover {
    background-color: rgba(20, 181, 254, 0.15);
    border-color: #14b5fe;
    color: #14b5fe;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(20, 181, 254, 0.2);
}

.audio-player-btn:active {
    transform: scale(0.95);
}

.audio-player-btn i {
    font-size: 1.1rem;
}

.audio-player-pause-btn {
    background-color: #14b5fe;
    border-color: #14b5fe;
    color: #0f1f39;
}

.audio-player-pause-btn:hover {
    background-color: #0d9de8;
    border-color: #0d9de8;
    color: #0f1f39;
    box-shadow: 0 0 12px rgba(20, 181, 254, 0.4);
}

.audio-player-pause-btn i {
    font-size: 1.2rem;
}

/* Mobile responsive styles for audio player */
@media all and (max-width: 767.98px) {
    .audio-player-component {
        bottom: 90px; /* Moved up to accommodate fixed ad banner at bottom */
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(20px);
        width: calc(100% - 20px);
        min-width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        padding: 0.875rem 1rem;
    }
    
    .audio-player-component.show {
        transform: translateX(-50%) translateY(0);
    }

    .audio-player-content {
        gap: 0.75rem;
    }
    
    .audio-player-image-container {
        width: 40px;
        height: 40px;
    }

    .audio-player-title {
        font-size: 0.95rem;
    }

    .audio-player-time {
        font-size: 0.8rem;
    }

    .audio-player-btn {
        width: 36px;
        height: 36px;
    }

    .audio-player-btn i {
        font-size: 1rem;
    }

    .audio-player-pause-btn i {
        font-size: 1.1rem;
    }
}

/* Header slot container style */
.header-slot-wrapper {
    min-height: 100px;
    background-color: rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: center;
    align-items: center;
    /* border-radius: 8px; */
    position: relative;
    width: 100%;
    max-width: 970px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

/* Label for ad area */
.header-slot-wrapper::before {
    content: 'Advertisement';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* Ensure ad sits on top of label */
.header-slot-wrapper > div {
    z-index: 1;
    position: relative;
}

/* Homepage in-feed ad anchors (empty until provider fills) */
.home-ad-slot {
    width: 100%;
    max-width: 970px;
    margin: 1.25rem auto;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* Override global styles for this specific layout */
.sound-page-layout-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.big-sound-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3em;
    text-underline-offset: 8px;
}

.big-sound-btn-image {
    width: 100% !important;
    max-width: 340px !important;
    height: auto;
    object-fit: contain;
    margin-top: 0.5rem;
}

.sound-tag-badge {
    color: #4da3ff;
    background-color: rgba(77, 163, 255, 0.1);
    border: 1px solid rgba(77, 163, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sound-tag-badge:hover {
    background-color: rgba(77, 163, 255, 0.2);
    color: #7abfff;
}

.sound-stats-wrapper {
    padding: 8px 0px;
}

.uploader-link:hover {
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

.sound-stat-accent {
    color: #fffe24 !important;
}

.stat-item .like-sound-btn:hover {
    transform: scale(1.15);
}

.sound-actions-container {
    flex-wrap: wrap;
    gap: 12px;
}

.sound-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background-color: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    padding: 10px 20px;
}

.sound-page-btn p {
    margin: 0;
    color: #e0e0e0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sound-page-btn:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 767.98px) {
    .big-sound-title {
        font-size: 1.75rem;
    }

    .big-sound-btn-image {
        max-width: 260px !important;
        margin-top: 0;
    }

    .sound-actions-container {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1rem;
    }

    .sound-page-btn {
        width: 100%;
        margin: 0;
    }
}

/* ===== Soundboard app icons (profile soundboards tab) ===== */

.sbg-icon-item {
    text-align: center;
    width: 10em;
    padding: 0.35rem;
    box-sizing: border-box;
}

.sbg-icon-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.sbg-icon-img-wrapper {
    position: relative;
    width: 7.5em;
    height: 7.5em;
    flex-shrink: 0;
}

.sbg-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22%;
    display: block;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sbg-icon-link:hover .sbg-icon-img {
    transform: scale(1.07);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

.sbg-icon-title {
    color: white;
    font-size: 1rem;
    text-decoration: underline;
    text-underline-offset: 6px;
    line-height: 1.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em;
    padding-bottom: 6px;
    word-break: break-word;
}

.sbg-icon-link:hover .sbg-icon-title {
    color: rgb(162, 162, 162);
}

/* Private / Unlisted indicator dot on icon */
.sbg-icon-vis-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.68);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Responsive — mirror .button-component breakpoints */
@media all and (max-width: 991px) {
    .sbg-icon-item {
        width: calc(16.666% - 0.25rem);
        flex: 0 0 calc(16.666% - 0.25rem);
        margin: 0;
    }
    .sbg-icon-img-wrapper {
        width: 100%;
        padding-bottom: 0;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

@media all and (max-width: 767px) {
    .sbg-icon-item {
        width: calc(25% - 0.25rem);
        flex: 0 0 calc(25% - 0.25rem);
    }
}

/* ===== Add-to-soundboard modal ===== */

.atsb-modal-content {
    background-color: #0f1f39;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.atsb-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.25rem;
}

.atsb-modal-header .modal-title {
    color: #fff;
    font-weight: 700;
}

.atsb-modal-body {
    padding: 1.25rem;
}

#addToSbContext {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.85rem;
}

#addToSbContext strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Board list */
.atsb-boards-list {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.atsb-boards-list .board-toggle {
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    padding: 0.65rem 0.9rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.atsb-boards-list .board-toggle:last-child {
    border-bottom: none;
}

.atsb-boards-list .board-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.atsb-boards-list .board-toggle.active {
    background: rgba(20, 181, 254, 0.12) !important;
    color: #14b5fe !important;
}

.atsb-boards-list .board-count {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    font-size: 0.75rem;
}

/* Divider */
.atsb-divider {
    border-color: rgba(255, 255, 255, 0.08);
}

/* New soundboard trigger button */
.atsb-new-btn {
    background-color: #14b5fe;
    border-color: #14b5fe;
    color: #0f1f39;
    font-weight: 700;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.atsb-new-btn:hover {
    background-color: #0d9de8;
    border-color: #0d9de8;
    color: #0f1f39;
    transform: translateY(-1px);
}

/* Create form input */
.atsb-input {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
}

.atsb-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.atsb-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #14b5fe !important;
    box-shadow: 0 0 0 3px rgba(20, 181, 254, 0.2) !important;
    color: #fff !important;
}

.atsb-submit-btn {
    background: #14b5fe !important;
    border-color: #14b5fe !important;
    color: #0f1f39 !important;
    font-weight: 700;
}

.atsb-submit-btn:hover {
    background: #0d9de8 !important;
    border-color: #0d9de8 !important;
}

.atsb-cancel-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.atsb-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* Error */
.atsb-error {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f8a0aa;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
}

/* New soundboard button + inline create form */
#show-new-board-btn {
    background-color: #14b5fe;
    border-color: #14b5fe;
    color: #0f1f39;
    font-weight: 700;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}
#show-new-board-btn:hover:not(:disabled) {
    background-color: #0d9de8;
    border-color: #0d9de8;
    color: #0f1f39;
    transform: translateY(-1px);
}
#show-new-board-btn:disabled {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.35);
    cursor: not-allowed;
    opacity: 1;
}
/* Treat the whole input-group as one rounded pill */
#new-board-form .input-group {
    background: rgba(255, 254, 36, 0.06);
    border: 1px solid #fffe24;
    border-radius: 50px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}
#new-board-form .input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 254, 36, 0.18);
    background: rgba(255, 254, 36, 0.09);
}
#new-board-form .form-control {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    box-shadow: none !important;
    padding-left: 1.1rem;
}
#new-board-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
#new-board-form .form-control:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
}
#new-board-submit {
    background: #fffe24 !important;
    border: none !important;
    color: #0f1f39 !important;
    font-weight: 700;
    border-radius: 50px !important;
    margin: 3px;
    padding-left: 1rem;
    padding-right: 1rem;
}
#new-board-submit:hover {
    background: #e6e520 !important;
}
#new-board-cancel {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.55) !important;
    padding-right: .85rem;
    transition: color 0.15s ease;
}
#new-board-cancel:hover {
    color: #fff !important;
}
#new-board-error {
    background: rgba(220, 53, 69, 0.12) !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
    color: #f8a0aa !important;
    border-radius: 8px;
}

/* ===== Soundboard page header layout ===== */

.sbg-board-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.sbg-title-input-group {
    max-width: 480px;
    margin: 0 auto;
}

/* ===== Soundboard owner edit chrome ===== */

/* Edit / Done toggle button */
#sbg-edit-toggle {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
                box-shadow 0.2s ease, transform 0.15s ease;
}
#sbg-edit-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-1px);
}
/* Active "Done" state — yellow accent matches .toggle-filter-btn.active */
#sbg-edit-toggle[aria-pressed="true"] {
    background: transparent !important;
    border-color: #fffe24 !important;
    color: #fffe24 !important;
    box-shadow: 0 4px 12px rgba(255, 254, 36, 0.15) !important;
}
#sbg-edit-toggle[aria-pressed="true"]:hover {
    background: rgba(255, 254, 36, 0.07) !important;
    transform: translateY(-1px);
}

/* Title pencil icon button */
#edit-title-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    padding: 0.2rem 0.42rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
#edit-title-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.9);
}

/* Visibility badge (view mode) */
.sbg-vis-badge {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.3em 0.7em;
    border-radius: 6px;
}
.sbg-vis-badge.sbg-vis-private {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.62) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.sbg-vis-badge.sbg-vis-unlisted {
    background: rgba(20, 181, 254, 0.12) !important;
    color: #14b5fe !important;
    border: 1px solid rgba(20, 181, 254, 0.28);
}
.sbg-vis-badge.sbg-vis-public {
    background: rgba(74, 222, 128, 0.1) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(74, 222, 128, 0.22);
}

/* Visibility segmented control (edit mode) — pill container matches .filter-toggles */
.sbg-vis-group {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 3px;
    gap: 2px;
}
.sbg-vis-btn {
    border: 2px solid transparent !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.28rem 0.9rem;
    border-radius: 50px !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    box-shadow: none !important;
}
.sbg-vis-btn:hover,
.sbg-vis-btn:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    box-shadow: none !important;
}
.btn-check:checked + .sbg-vis-btn {
    background: transparent !important;
    border-color: #fffe24 !important;
    color: #fffe24 !important;
    box-shadow: 0 4px 12px rgba(255, 254, 36, 0.15) !important;
}
.btn-check:focus + .sbg-vis-btn {
    outline: none;
    box-shadow: none !important;
}

/* Visibility description text */
#sbg-vis-description {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    font-style: italic;
}

/* Title rename inline form */
#edit-title-form .form-control {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
}
#edit-title-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
#edit-title-form .form-control:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #14b5fe !important;
    box-shadow: 0 0 0 3px rgba(20, 181, 254, 0.2) !important;
    color: #fff !important;
}
#edit-title-form button[type="submit"] {
    background: #14b5fe !important;
    border-color: #14b5fe !important;
    color: #0f1f39 !important;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.15s ease;
}
#edit-title-form button[type="submit"]:hover {
    background: #0d9de8 !important;
    border-color: #0d9de8 !important;
    transform: translateY(-1px);
}
#cancel-title-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: background 0.2s ease, color 0.2s ease;
}
#cancel-title-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* Rename error alert */
#title-edit-error {
    background: rgba(220, 53, 69, 0.12) !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
    color: #f8a0aa !important;
    border-radius: 8px;
}

/* Delete soundboard strip */
.sbg-delete-strip {
    display: flex;
    justify-content: flex-end;
    margin-bottom: .5rem;
}
.sbg-delete-show-btn {
    background: transparent;
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: rgba(220, 53, 69, 0.6);
    border-radius: 6px;
    font-size: .8rem;
    transition: background .15s, border-color .15s, color .15s;
}
.sbg-delete-show-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.6);
    color: #f8a0aa;
}
.sbg-delete-confirm-text {
    font-size: .85rem;
    color: rgba(255, 255, 255, .6);
}
.sbg-delete-confirm-btn {
    background: rgba(220, 53, 69, 0.85);
    border: 1px solid #dc3545;
    color: #fff;
    border-radius: 6px;
    font-size: .8rem;
}
.sbg-delete-confirm-btn:hover {
    background: #dc3545;
    color: #fff;
}
.sbg-delete-cancel-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, .7);
    border-radius: 6px;
    font-size: .8rem;
}
.sbg-delete-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Change image button (in soundboard header edit mode) */
.sbg-board-img-wrapper {
    display: block;
}
.sbg-img-change-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    font-size: .8rem;
    padding: .25rem .9rem;
    transition: background .15s, color .15s, border-color .15s;
}
.sbg-img-change-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* Image picker modal */
.sbg-imgpicker-content {
    background: #0f1f39;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}
.sbg-imgpicker-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: .85rem 1rem;
}
.sbg-imgpicker-body {
    padding: 1rem;
}
.sbg-imgpicker-search-group {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.sbg-imgpicker-search-group:focus-within {
    border-color: #fffe24;
    box-shadow: 0 0 0 2px rgba(255, 254, 36, 0.18);
}
.sbg-imgpicker-search-group .input-group-text {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
}
.sbg-imgpicker-search-group .form-control {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    box-shadow: none !important;
}
.sbg-imgpicker-search-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.sbg-imgpicker-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .45rem;
}
@media (max-width: 576px) {
    .sbg-imgpicker-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.sbg-imgpicker-tile {
    aspect-ratio: 1;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.sbg-imgpicker-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.sbg-imgpicker-tile:hover {
    border-color: #14b5fe;
    transform: scale(1.05);
}
.sbg-imgpicker-tile.selected {
    border-color: #fffe24;
    box-shadow: 0 0 0 2px rgba(255, 254, 36, 0.3);
}
