/* Collection links in profile grid */
.collection-link {
    background: none;
    border: none;
    border-radius: 0;
    color: var(--accent-color, #e74c3c);
    transition: color 0.15s;
    padding-left: 0;
    padding-right: 0;
}
.collection-link:hover, .collection-link:focus {
    color: var(--accent-color, #e74c3c);
    text-decoration: underline;
    background: none;
    border: none;
}
/* Footer responsive columns */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em 2em;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    flex: 1 1 120px;
    text-align: center;
}
@media (max-width: 600px) {
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.5em 1.5em;
    }
    .footer-links li {
        flex: 1 1 120px;
        max-width: 180px;
        min-width: 100px;
        text-align: center;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');

.card
{
    border-radius: 0 !important;
    border: none !important;
}
/* Only add border if .border class is present */
.card.border {
    border: 1px solid var(--border-color) !important;
}

/* Mobile notifications button styled like profile/settings */
.mobile-notifications-btn {
    display: flex;
    align-items: center;
    gap: 12px;
        margin: 8px 0;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    width: 100%;
    font-size: 1rem;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
}
.mobile-notifications-btn:hover {
    background: var(--bg-primary);
    color: var(--accent-color);
    border-color: var(--accent-color);
}
.mobile-notifications-btn i {
    font-size: 1.2em;
    margin-right: 6px;
}
.mobile-notifications-btn .notification-badge {
    background: var(--accent-color);
    color: var(--text-primary);
    font-size: 0.85em;
    font-weight: bold;
    padding: 2px 8px;
    margin-left: 8px;
    display: none;
    min-width: 24px;
    text-align: center;
    position: absolute;
    right: 16px;
    top: 8px;
    z-index: 1;
}
/* Mobile settings button styled like profile and nav items */
/* Match mobile-profile-btn exactly for settings/notifications */
.mobile-settings-btn,
.mobile-notifications-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 24px;
    background: transparent;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
    width: calc(100% - 48px);
}
.mobile-settings-btn:hover,
.mobile-notifications-btn:hover {
    background: var(--bg-primary);
}
.mobile-settings-btn i {
    font-size: 1.2em;
    margin-right: 6px;
}
/* Theme file size/help text (Bootstrap .form-text) */
.form-text {
    color: var(--text-secondary) !important;
    font-size: 0.95em;
}

/* Global text field style: square edges, no border */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea
{
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
input[type="text"]:active,
input[type="search"]:active,
input[type="email"]:active,
input[type="password"]:active,
input[type="url"]:active,
input[type="tel"]:active,
input[type="number"]:active,
textarea:active
{
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Global select/dropdown style: square edges, no border */
select,
.form-select
{
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

select:focus,
.form-select:focus,
select:active,
.form-select:active
{
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Global custom select component */
.custom-select
{
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select.w-auto
{
    width: auto;
}

.custom-select-native
{
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.custom-select-trigger
{
    width: 100%;
    min-height: 38px;
    padding: 6px 12px;
    border: none;
    border-radius: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
}

.custom-select-trigger:focus,
.custom-select-trigger:active
{
    outline: none;
    box-shadow: none;
}

.custom-select-trigger:disabled
{
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-select-label
{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-arrow
{
    color: var(--text-secondary);
    flex-shrink: 0;
    font-size: 0.85rem;
}

.custom-select-menu
{
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 1200;
    max-height: 260px;
    overflow-y: auto;
    background: var(--bg-secondary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.custom-select.is-open .custom-select-menu
{
    display: block;
}

.custom-select-option
{
    width: 100%;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-primary);
    padding: 9px 12px;
    text-align: left;
    cursor: pointer;
}

.custom-select-option:hover,
.custom-select-option.is-active,
.custom-select-option.is-selected
{
    background: var(--accent-color);
    color: var(--text-primary);
}

.custom-select-option.is-disabled
{
    opacity: 0.45;
    cursor: not-allowed;
}

.custom-select-sm .custom-select-trigger
{
    min-height: 31px;
    padding: 4px 10px;
    font-size: 0.875rem;
}

/* Custom Scrollbar Styles - Applies to all pages */
::-webkit-scrollbar {
    width: 12px;
    background: var(--panel-bg, #23232a);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-color, #d8665f) 60%, var(--bg-secondary, #23232a) 100%);
    border-radius: 8px;
    border: 2px solid var(--panel-bg, #23232a);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-color, #e07a5f) 60%, var(--bg-secondary, #23232a) 100%);
}
::-webkit-scrollbar-corner {
    background: var(--panel-bg, #23232a);
}

/* Firefox scrollbar support */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color, #d8665f) var(--panel-bg, #23232a);
}
/* Theme panel for followers/following/notifications */
.panel-theme {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color, #444);
    transition: background 0.2s, border-color 0.2s;
}
/* pageheader-panel page panel uses theme background */
.pageheader-panel {
    background: var(--bg-secondary);
    transition: background 0.2s, border-color 0.2s;
}
@media (max-width: 768px) {
    .navbar-links.d-md-flex,
    .navbar-actions.d-md-flex {
        display: none !important;
    }
}

/* Hamburger SVG styles */
.mobile-menu-toggle .hamburger-svg {
    display: block;
    width: 40px;
    height: 24px;
    margin: -12px auto;
}

/* Closed: tightly stacked */
.mobile-menu-toggle .bun-top,
.mobile-menu-toggle .bun-bottom {
    transform: translateY(0) scaleX(1) rotate(0deg);
    opacity: 1;
    transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu-toggle .patty {
    transform: scaleX(1) rotate(0deg);
    opacity: 1;
    transition: transform 0.3s, opacity 0.3s;
}

/* Open: buns explode outward */
.mobile-menu-toggle.active .bun-top {
    transform: translateY(-24px) scaleX(1.1) rotate(8deg);
    opacity: 0.95;
}
.mobile-menu-toggle.active .patty {
    transform: scaleX(1.15) rotate(4deg);
    opacity: 0.95;
}
.mobile-menu-toggle.active .bun-bottom {
    transform: translateY(24px) scaleX(1.1) rotate(-8deg);
    opacity: 0.95;
}

.mobile-menu-toggle .hamburger-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}
.mobile-menu-toggle .bun-top svg path {
    fill: #f5d68a;
}
.mobile-menu-toggle .patty svg path {
    fill: #d8665f;
}
.mobile-menu-toggle .bun-bottom svg path {
    fill: #f5d68a;
}

/* Example animation classes (add/remove .active on .mobile-menu-toggle) */
.mobile-menu-toggle.active .bun-top {
    transform: translateY(-8px) scaleX(1.1) rotate(8deg);
    opacity: 0.95;
}
.mobile-menu-toggle.active .patty {
    transform: scaleX(1.15) rotate(4deg);
    opacity: 0.95;
}
.mobile-menu-toggle.active .bun-bottom {
    transform: translateY(8px) scaleX(1.1) rotate(-8deg);
    opacity: 0.95;
}

/* Always-visible outline-accent buttons for admin modal */
.btn-outline-accent {
    border: 2px solid var(--accent-color) !important;
    color: var(--accent-color) !important;
    background: var(--panel-bg, var(--bg-secondary)) !important;
    opacity: 1 !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-outline-accent:hover, .btn-outline-accent:focus {
    background: var(--accent-color) !important;
    color: var(--text-primary) !important;
    border-color: var(--accent-color) !important;
    opacity: 1 !important;
}
.btn-accent {
    background-color: var(--accent-color) !important;
    color: var(--text-primary) !important;
    border: 2px solid var(--accent-color) !important;
    opacity: 1 !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-accent:hover, .btn-accent:focus {
    background-color: transparent !important;
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    opacity: 1 !important;
}
.navbar-search-li
{
    display: list-item !important;
}

/* Navbar search bar inline with nav links */
.navbar-links
{
    display: flex;
    align-items: center;
}

.navbar-search-li
{
    min-width: 200px;
    max-width: 400px;
    margin-left: 12px;
}

.navbar-search
{
    width: 100%;
}

.navbar-search input[type="text"]
{
    width: 100%;
    background: var(--bg-primary);
    color: var(--text-primary) !important;
    padding: 6px 12px;
    font-size: 1rem;
}

.navbar-search input[type="text"]::placeholder
{
    color: var(--text-secondary);
    opacity: 1;
}

:root
{
    --bg-primary: #191919;
    --bg-secondary: #333333;
    --accent-color: #E97775;
    --accent-color-secondary: #715DAF;
    --text-primary: #E8E8E8;
    --text-secondary: #998282;
    --border-color: #555555;
}

    /* --- Standardized Reusable Classes --- */
    /* Box Shadows */
    .shadow-sm {
        box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
    }
    .shadow-md {
        box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    }
    .shadow-lg {
        box-shadow: 0 4px 16px rgba(0,0,0,0.18) !important;
    }

    /* Borders */

    /* Borders (visible only) */
    .border-primary {
        border-color: var(--border-color) !important;
    }
    .border-accent {
        border-color: var(--accent-color) !important;
    }
    .border-accent-secondary {
        border-color: var(--accent-color-secondary) !important;
    }
    .border-white {
        border-color: #fff !important;
    }
    .border {
        border: 1px solid var(--border-color);
    }
    .border-accent {
        border: 1px solid var(--accent-color);
    }

    /* Utility: Remove border */
    .border-none {
        border: none !important;
    }

html
{
    height: 100%;
    overflow-y: scroll;
}

body
{
    min-height: 100vh;
    font-family: 'Atkinson Hyperlegible', sans-serif;
    background: var(--bg-primary);
    margin: 0;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

main
{
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Custom theme overrides for Bootstrap components */
.card
{
    background-color: var(--bg-secondary) !important;
    /* Remove border override so .border and .shadow-* classes work */
}

.home-ad-row
{
    width: 100%;
}

.ad-slot
{
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: color-mix(in srgb, var(--bg-secondary) 82%, black);
}

.ad-slot-link
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ad-slot-image
{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ad-slot-banner .ad-slot-image,
.home-banner-ad .ad-slot-image
{
    object-fit: cover;
    object-position: center;
}

.home-banner-ad,
.ad-slot-banner
{
    width: 100%;
    aspect-ratio: 998 / 128;
}

.ad-slot-square
{
    width: 100%;
    aspect-ratio: 1 / 1;
}

.ad-slot-skyscraper
{
    width: 100%;
    aspect-ratio: 1 / 5;
}

@media (max-width: 768px)
{
    .home-banner-ad,
    .ad-slot-banner
    {
        width: 100%;
        aspect-ratio: 998 / 128;
    }

    .ad-slot-square
    {
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .ad-slot-skyscraper
    {
        width: 100%;
        aspect-ratio: 1 / 5;
    }
}

/* Main heading styling */
h1
{
    color: var(--text-primary) !important;
    font-weight: 600;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem !important;
}

@media (max-width: 768px)
{
    h1
    {
        font-size: 2rem;
    }
}

.nav-tabs
{
    border-bottom: none;
}

.nav-tabs .nav-link
{
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: none;
    margin-right: 8px;
    padding: 10px 32px;
    transition: all 0.2s;
}

.nav-tabs .nav-link.active
{
    background: var(--accent-color) !important;
    color: var(--text-primary) !important;
    font-weight: bold;
    border: none;
}

.nav-tabs .nav-link:hover
{
    background: var(--accent-color);
    color: var(--text-primary);
}

/* Story card styling - now works with Bootstrap columns */
.work-card
{
    background: var(--bg-primary);
    padding: 16px;
    display: flex;
    flex-direction: row;
    gap: 16px;
    transition: transform 0.2s;
    cursor: pointer;
    overflow: hidden;
    height: 250px;
    width: 100%;
}

.work-card:hover
{
    transform: translateY(-2px);
}

.cover-image
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cover-placeholder
{
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border: 2px dashed rgba(233, 119, 117, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.work-card:hover .cover-image
{
    transform: scale(1.05);
}

.work-card:hover .cover-placeholder
{
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(233, 119, 117, 0.05);
}

.work-info
{
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    min-width: 0;
    /* Allows text to wrap properly */
}

.work-meta
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(233, 119, 117, 0.1);
}

.work-date
{
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.work-header
{
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.work-cover
{
    flex-shrink: 0;
    width: 60px;
    height: 80px;
    overflow: hidden;
}

.work-cover img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-placeholder
{
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px dashed var(--accent-color);
}

.work-content
{
    flex: 1;
    min-width: 0;
}

.page-title
{
    text-align: left;
}

.work-title
{
    margin: 0 0 4px 0;
    font-size: 1.15rem;
    color: var(--accent-color);
    font-weight: 600;
    line-height: 1.3;
    overflow: visible;
    display: block;
    -webkit-box-orient: unset;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.work-author
{
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.work-stats
{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.work-description
{
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.work-tags
{
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.work-tag
{
    background: rgba(233, 119, 117, 0.2);
    color: var(--accent-color);
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Enhanced story card styles for Firebase integration */
.story-header
{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.story-title
{
    margin: 0 !important;
    font-size: 1.15rem !important;
    color: var(--accent-color) !important;
    flex: 1;
    margin-right: 8px !important;
}

.content-rating
{
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.content-rating.general {
    background: #4CAF50;
    color: var(--text-primary);
}
.content-rating.suggestive {
    background: #FF9800;
    color: var(--text-primary);
}
.content-rating.explicit {
    background: #9C27B0;
    color: var(--text-primary);
}


.story-author
{
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.author-avatar
{
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder
{
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--text-primary);
}

.story-stats
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--bg-secondary);
}

.story-meta
{
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.word-count
{
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Loading and error states */
.loading-spinner
{
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.no-stories,
.error-state
{
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

.no-stories h3,
.error-state h3
{
    color: var(--accent-color);
    margin-bottom: 16px;
}

.no-stories p,
.error-state p
{
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.btn
{
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

/* Mobile responsive adjustments for custom components */
@media (max-width: 768px)
{
    .nav-tabs .nav-link
    {
        padding: 8px 20px;
        font-size: 0.9rem;
        margin-right: 4px;
    }
}

@media (max-width: 600px)
{
    .story-header
    {
        flex-direction: column;
        gap: 8px;
    }

    .content-rating
    {
        align-self: flex-start;
    }

    .story-stats
    {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    /* Mobile work card adjustments */
    .work-card
    {
        height: 180px;
        padding: 12px;
        gap: 12px;
    }

    .work-cover
    {
        width: 80px;
        height: 120px;
    }

    .work-info
    {
        gap: 6px;
    }

    .work-title
    {
        font-size: 1rem;
        line-height: 1.2;
        overflow: visible;
        display: block;
        -webkit-box-orient: unset;
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }

    .work-description
    {
        -webkit-line-clamp: 2;
        /* Show less description on mobile */
        line-clamp: 2;
        font-size: 0.8rem;
    }

    .work-tag
    {
        font-size: 0.65rem;
        padding: 1px 4px;
    }

    .cover-placeholder
    {
        font-size: 1.2rem;
    }
}

/* Navbar Styles */
.navbar
{
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 0 32px;
    height: 60px;
    color: var(--text-primary);
    box-sizing: border-box;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
}

.navbar-logo
{
    margin-right: 32px;
}

.navbar-links
{
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

.navbar-actions
{
    margin-left: auto;
}

.navbar-logo .logo-text
{
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    letter-spacing: 1px;
    text-decoration: none;
}

.logo-img
{
    height: 40px;
}

.navbar-logo a
{
    text-decoration: none;
}

.navbar-links
{
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.navbar-links li a
{
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.navbar-links li a:hover
{
    color: var(--accent-color);
}

.navbar-actions
{
    display: flex;
    gap: 12px;
}

.navbar-btn
{
    background: var(--accent-color);
    color: var(--text-primary);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.navbar-btn:hover
{
    background: transparent;
    color: var(--accent-color);
}

.profile-btn
{
    background: transparent;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    padding: 3px;
    cursor: pointer;
    transition: border-color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-btn:hover
{
    border-color: var(--text-primary);
}

.profile-img
{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Notifications Button Styles */
.notifications-btn
{
    background: transparent;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-right: 12px;
}

.notifications-btn:hover
{
    border-color: var(--text-primary);
    background: rgba(233, 119, 117, 0.1);
}

.notifications-btn i
{
    color: var(--accent-color);
    font-size: 16px;
    transition: color 0.2s;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
}

.notifications-btn:hover i
{
    color: var(--text-primary);
}

.notification-badge
{
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--accent-color);
    color: var(--text-primary);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    text-align: center;
}

/* Mobile Navigation Styles */
.mobile-menu-toggle
{
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 3px;
    position: absolute;
    left: 16px;
    z-index: 1001;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px)
{
    .mobile-menu-toggle
    {
        display: flex !important;
    }
}

.hamburger-line
{
    width: 30px !important;
    min-height: 3px !important;
    height: 3px !important;
    transition: all 0.3s ease;
    transform-origin: center;
    display: block;
    border-radius: 0 !important;
    background-clip: padding-box !important;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1)
{
    transform: translateY(-8px) scaleX(1.2) rotate(8deg);
    background: #f5d68a;
    z-index: 2;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2)
{
    transform: translateY(-4px) scaleX(1.3) rotate(4deg);
    background: #4CAF50;
    z-index: 2;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3)
{
    transform: translateY(4px) scaleX(1.3) rotate(-4deg);
    background: #d8665f;
    z-index: 2;
}
.mobile-menu-toggle.active .hamburger-line.bun-bottom
{
    transform: translateY(12px) scaleX(1.2) rotate(-8deg);
    background: #f5d68a;
    z-index: 2;
}

.mobile-nav-dropdown
{
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    visibility: hidden;
}

.mobile-nav-dropdown.show
{
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.mobile-nav-content
{
    padding: 16px 0;
}

.mobile-nav-item
{
    display: block;
    padding: 12px 24px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.mobile-nav-item:hover
{
    background: var(--bg-primary);
    color: var(--accent-color);
}

.mobile-nav-divider
{
    height: 1px;
    background: var(--border-color);
    margin: 8px 24px;
}

.mobile-nav-btn
{
    display: block;
    margin: 8px 24px;
    background: var(--accent-color);
    color: var(--text-primary);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    width: calc(100% - 48px);
}

.mobile-nav-btn:hover
{
    background: transparent;
    color: var(--accent-color);
}

.mobile-profile-btn
{
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 24px;
    background: transparent;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
    width: calc(100% - 48px);
}

.mobile-profile-btn:hover
{
    background: var(--bg-primary);
}

.mobile-profile-img
{
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Mobile responsive styles */
@media (max-width: 768px)
{
    .mobile-menu-toggle
    {
        display: flex !important;
    }

    .navbar
    {
        justify-content: center;
        position: relative;
        padding: 0 16px;
        height: 56px;
        overflow-y: visible;
    }

    .navbar-logo
    {
        margin: 0;
        order: 2;
    }

    .mobile-menu-toggle
    {
        order: 1;
    }

    .mobile-nav-dropdown
    {
        /* Keep dropdown non-interactive when hidden on mobile */
        pointer-events: none;
        visibility: hidden;
    }

    .mobile-nav-dropdown.show
    {
        /* Only make dropdown visible and interactive when explicitly shown */
        display: block;
        pointer-events: auto;
        visibility: visible;
    }

    .mobile-nav-dropdown
    {
        display: block;
    }
}

/* Bootstrap-style display utilities for mobile navigation */
.d-none
{
    display: none !important;
}

.d-md-flex
{
    display: flex !important;
}

.d-md-none
{
    display: block !important;
}

@media (min-width: 768px)
{
    .d-md-flex
    {
        display: flex !important;
    }

    .d-md-none
    {
        display: none !important;
    }
}

/* Profile Dropdown Styles */
.profile-dropdown
{
    background: var(--bg-secondary);
    min-width: 240px;
    z-index: 1000;
    overflow: hidden;
}

.profile-dropdown-header
{
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.dropdown-avatar
{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-user-info
{
    flex: 1;
}

.dropdown-name
{
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.dropdown-email
{
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.dropdown-divider
{
    border: none;
    height: 1px;
    background: var(--text-secondary);
    margin: 0;
}

.dropdown-item
{
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.dropdown-item:hover
{
    background: var(--bg-primary);
}

.dropdown-item.logout-btn
{
    color: var(--accent-color);
}

.dropdown-item.logout-btn:hover
{
    background: var(--accent-color);
    color: var(--text-primary);
}

.dropdown-item i
{
    width: 16px;
    text-align: center;
}

/* Notifications Popup Styles */
.notifications-popup
{
    width: 360px;
    max-width: calc(100vw - 16px);
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    z-index: 1001;
}

.notifications-popup .popup-footer
{
    width: 100%;
}

.notifications-popup .notifications-view-all-btn
{
    display: block;
    width: 100%;
}

/* Notifications Dropdown Styles */
.notifications-dropdown
{
    background: var(--bg-secondary);
    width: 400px;
    max-width: 400px;
    max-height: 400px;
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notifications-dropdown-header
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--text-secondary);
}

.notifications-dropdown-header h4
{
    color: var(--text-primary);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.mark-all-read
{
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.mark-all-read:hover
{
    color: var(--text-primary);
}

.notifications-list
{
    flex: 1;
    overflow-y: auto;
}

.notification-item
{
    display: flex;
    align-items: flex-start;
    min-height: 60px;
    position: relative;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.notification-item--clickable
{
    cursor: pointer;
}

.notification-item:hover
{
    background: var(--bg-primary);
}

.notification-item.notification-item--clickable:hover
{
    background: rgba(233, 119, 117, 0.1);
    opacity: 0.9;
}

.notification-item[style*="cursor: pointer"]:hover
{
    background: rgba(233, 119, 117, 0.1);
    opacity: 0.9;
}

.notification-item:last-child
{
    border-bottom: none;
}

.notification-item.unread
{
    background: rgba(233, 119, 117, 0.05);
}

.notification-content
{
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-icon
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-top: 2px;
    padding: 1rem;
}

.notification-icon i
{
    font-size: 20px;
}

.notification-body
{
    flex: 1;
    min-width: 0;
}

.notification-text
{
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 4px;
}

.notification-time
{
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.notification-badge.unread
{
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    margin-left: 8px;
    margin-top: 6px;
    flex-shrink: 0;
    display: block;
    min-width: 0;
    padding: 0;
}

.notification-empty
{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
    color: var(--text-secondary);
    text-align: center;
}

.notification-empty i
{
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.5;
}

.notification-empty p
{
    margin: 0;
    font-size: 0.9rem;
}

.notifications-footer
{
    border-top: 1px solid var(--text-secondary);
    padding: 12px;
}

.view-all-btn
{
    width: 100%;
    background: none;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.view-all-btn:hover
{
    background: var(--accent-color);
    color: var(--text-primary);
}

/* Notifications Page Styles */
.notifications-page-list
{
    min-height: 400px;
}

.notifications-page-item
{
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(153, 130, 130, 0.2);
    position: relative;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.notifications-page-item:hover
{
    background: rgba(233, 119, 117, 0.05);
}

.notifications-page-item:last-child
{
    border-bottom: none;
}

.notifications-page-item.unread
{
    background: rgba(233, 119, 117, 0.08);
    border-left: 3px solid var(--accent-color);
}

.notifications-tabs .btn-group .btn
{
    border-radius: 0;
    color: var(--text-secondary);
    padding: 8px 16px;
}

.notifications-tabs .btn-group .btn:first-child
{
    border-radius: 8px 0 0 8px;
}

.notifications-tabs .btn-group .btn:last-child
{
    border-radius: 0 8px 8px 0;
}

.notifications-tabs .btn-group .btn.active,
.notifications-tabs .btn-group .btn:hover
{
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-primary);
}

/* Footer Styles */
.footer
{
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 32px 0 0 0;
    margin-top: auto;
}

.footer-main
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-logo .logo-text
{
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.footer-links
{
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
}

.footer-links li a
{
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.footer-links li a:hover
{
    color: var(--accent-color);
}

.footer-logout a
{
    color: var(--accent-color) !important;
    font-weight: 500;
}

.footer-logout a:hover
{
    color: var(--text-primary) !important;
}

.footer-social
{
    display: flex;
    gap: 14px;
}

.footer-social img
{
    filter: brightness(0) invert(1);
    transition: filter 0.2s;
}

.footer-social img:hover
{
    filter: brightness(0.8) invert(0.8);
}

.footer-bottom
{
    text-align: center;
    padding: 18px 0 8px 0;
    font-size: 0.98rem;
    color: var(--text-secondary);
}

/* Bite icon styling using CSS filters */
.bite-icon
{
    /* Filter to convert black to --text-primary (#E8E8E8) */
    filter: invert(91%) sepia(8%) saturate(298%) hue-rotate(316deg) brightness(95%) contrast(92%);
    transition: filter 0.2s ease;
}

.bite-icon-secondary
{
    /* Filter to convert black to --text-secondary (#998282) */
    filter: invert(57%) sepia(12%) saturate(859%) hue-rotate(316deg) brightness(89%) contrast(88%);
    transition: filter 0.2s ease;
}

.bite-icon-accent
{
    /* Filter to convert black to --accent-color (#E97775) */
    filter: invert(69%) sepia(35%) saturate(1064%) hue-rotate(313deg) brightness(97%) contrast(91%);
    transition: filter 0.2s ease;
}


/* --- Bootstrap Utility Overrides for Fattpad Theme Colors --- */
/* These override Bootstrap's color utility classes to use Fattpad's theme variables. */
.btn-primary {
    background-color: var(--accent-color) !important;
    color: var(--text-primary) !important;
    border: 2px solid var(--accent-color) !important;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: transparent !important;
    color: var(--accent-color) !important;
    border: 2px solid var(--accent-color) !important;
}
.btn-secondary {
    background-color: var(--bg-primary) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--text-secondary) !important;
}
.btn-secondary:hover, .btn-secondary:focus {
    color: var(--text-primary) !important;
    border-color: var(--text-primary) !important;
}
.btn-danger {
    background-color: var(--accent-color) !important;
    color: var(--text-primary) !important;
    border: 2px solid var(--accent-color) !important;
}
.btn-danger:hover, .btn-danger:focus {
    background-color: transparent !important;
    color: var(--accent-color) !important;
    border: 2px solid var(--accent-color) !important;
}
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-secondary) !important; }
.fw-bold, .text-bold { font-weight: 700 !important; }

.bg-secondary {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

/* === Reusable Three Dot Button and Menu === */
.three-dot-btn {
    background: transparent !important;
    color: var(--text-primary) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.three-dot-btn:hover,
.three-dot-btn:focus {
    background: var(--accent-color) !important;
    color: var(--text-primary) !important;
    border: none !important;
}
.three-dot-btn i {
    color: var(--text-primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 1.2rem !important;
}

.three-dot-menu {
    min-width: 180px;
    border-radius: 8px;
    background: var(--bg-secondary);
    border-color: rgba(0, 0, 0, 0) !important;
    padding: 8px 0;
    margin-top: 8px;
    z-index: 1000;
}

.three-dot-menu .dropdown-item {
    color: var(--text-primary);
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    background: none;
    transition: background 0.2s, color 0.2s;
}

.three-dot-menu .dropdown-item:hover,
.three-dot-menu .dropdown-item:focus {
    background: rgba(233, 119, 117, 0.08);
    color: var(--accent-color);
}

.three-dot-menu .dropdown-item.text-danger {
    color: var(--accent-color);
}