/**
 * 3AM Sheep Custom Dark Theme
 * Modern dark theme matching the Product Manager design
 */

/* ========== Hide Preview Buttons ========== */
button[name="preview"],
input[name="preview"] {
    display: none;
}

/* ========== Enhanced Subtle Gradients for Dark Theme ========== */

/* Body background with subtle gradient */
body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-attachment: fixed;
    color: #cbd5e1;
    font-size: 16px;
}

/* Enhanced header gradient */
.headerbar {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #0f172a 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Enhanced navbar gradient - Fixed on scroll */
.navbar {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.9) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 500;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Enhanced shadow when scrolled */
.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(51, 65, 85, 0.95) 100%);
}

/* Fixed navbar when scrolled past breadcrumbs - stays at top of viewport */
.navbar.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

/* Glass transparency effect when scrolled past breadcrumbs */
.navbar.navbar-glass {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.45) 0%,
            rgba(30, 41, 59, 0.35) 50%,
            rgba(15, 23, 42, 0.45) 100%);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 -1px 0 rgba(0, 0, 0, 0.2) inset;
}

/* Subtle glow accent on glass navbar */
.navbar.navbar-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.3) 20%,
            rgba(139, 92, 246, 0.4) 50%,
            rgba(59, 130, 246, 0.3) 80%,
            transparent 100%);
    opacity: 0.8;
}

/* Enhanced panel gradients */
.panel,
.post,
.forumbg {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced panel header gradients */
.panel h2,
.panel h3,
.post h3,
.forumbg .header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.12) 50%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    color: #fff;
    padding: 16px 20px;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.1);
}

/* Enhanced forum header gradients */
.forabg .header,
.forumbg .header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.18) 50%, rgba(59, 130, 246, 0.12) 100%);
    border-radius: 12px 12px 0 0;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

/* Enhanced card gradients */
.card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(15, 23, 42, 0.7) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Enhanced table gradients */
table.table1,
.tablebg {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

table.table1 thead th,
.tablebg thead th {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.15) 100%);
    color: #60a5fa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Enhanced topic list gradients */
.topiclist {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.01) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.topiclist li {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.005) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.005) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.topiclist li:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(59, 130, 246, 0.08) 50%, rgba(59, 130, 246, 0.03) 100%);
    transform: translateX(2px);
}

/* Enhanced stat block gradients */
.stat-block {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Enhanced breadcrumbs gradient */
.breadcrumbs {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 8px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0px;
}

/* Enhanced footer gradient */
.footer {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(51, 65, 85, 0.5) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    padding: 30px 20px;
    margin-top: 40px;
}

/* DEPRECATED: Product Manager styles moved to dashboard-elite.css
   These old gradient styles have been replaced with the elite SaaS theme.
   See: ext/cw/productmgr/assets/css/dashboard-elite.css */

/* ========== Global Styles ========== */
body {
    background: #0f172a;
    color: #cbd5e1;
}

/* ========== Header & Navigation ========== */
.headerbar {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.navbar {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 500;
}

.navbar a,
.linklist a {
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.navbar a:hover,
.linklist a:hover {
    color: #60a5fa;
}

/* ========== Panels & Content Boxes ========== */
.panel,
.post,
.forumbg {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.panel .inner,
.post .inner {
    background: transparent;
}

.panel h2,
.panel h3,
.post h3,
.forumbg .header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: #fff;
    padding: 16px 20px;
}

/* ========== Forms & Inputs ========== */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #cbd5e1;
    padding: 10px 14px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ========== Buttons ========== */
.button1,
.button2,
input[type="submit"],
input[type="button"],
button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button1:hover,
.button2:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Secondary buttons */
.button2 {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.button2:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ========== Tables ========== */
table.table1,
.tablebg {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

table.table1 thead th,
.tablebg thead th {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

table.table1 tbody td,
.tablebg tbody td {
    background: transparent;
    color: #cbd5e1;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

table.table1 tbody tr:hover,
.tablebg tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* Zebra striping */
.zebra-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.zebra-table tbody tr:nth-child(even) {
    background: transparent;
}

/* ========== Forum List ========== */
.forabg,
.forumbg {
    margin-bottom: 30px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.forabg .header,
.forumbg .header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-radius: 0;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.forabg .header dt,
.forumbg .header dt {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

/* Category header icon styling */
.forabg .header .icon,
.forumbg .header .icon {
    color: #60a5fa;
}

.forabg li,
.forumbg li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 20px;
    transition: background-color 0.2s ease;
}

.forabg li:hover,
.forumbg li:hover {
    background: rgba(59, 130, 246, 0.05);
}

.forabg li:last-child,
.forumbg li:last-child {
    border-bottom: none;
}

/* Forum links */
.forumbg .row a.forumtitle,
.forabg .row a.forumtitle {
    color: #60a5fa;
    font-weight: 600;
    font-size: 1.05rem;
}

.forumbg .row a.forumtitle:hover,
.forabg .row a.forumtitle:hover {
    color: #93c5fd;
}

/* Forum description */
.forumbg .row .forum-description,
.forabg .row .forum-description {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Forum stats (topics/posts count) */
.forumbg .row dd,
.forabg .row dd {
    color: #cbd5e1;
}

/* Last post info */
.forumbg .row .lastpost,
.forabg .row .lastpost {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Subforums list */
.forumbg .row .subforums,
.forabg .row .subforums {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

/* ========== Topics & Posts ========== */
.topiclist {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.topiclist li {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topiclist li:hover {
    background: rgba(59, 130, 246, 0.05);
}

.topiclist a.topictitle {
    color: #cbd5e1;
    font-weight: 500;
}

.topiclist a.topictitle:hover {
    color: #60a5fa;
}

/* Post content */
.postbody {
    color: #cbd5e1;
}

.postbody h3 a {
    color: #fff;
}

.postbody .content {
    color: #cbd5e1;
}

/* ========== Pagination ========== */
.pagination {
    margin: 20px 0;
}

.pagination li a,
.pagination li span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #cbd5e1;
    padding: 8px 14px;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.pagination li a:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #60a5fa;
}

.pagination li.active span {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: #fff;
}



.breadcrumbs a {
    color: #60a5fa;
}

.breadcrumbs a:hover {
    color: #93c5fd;
}

/* ========== User Profile ========== */
.postprofile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
}

.postprofile dt,
.postprofile dd {
    color: #cbd5e1;
}

.postprofile a {
    color: #60a5fa;
}

/* ========== Statistics & Info Boxes ========== */
.stat-block {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

/* ========== Alerts & Messages ========== */
.successbox,
.errorbox,
.warningbox,
.infobox {
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.successbox {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: #22c55e;
    color: #86efac;
}

.errorbox {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
    color: #fca5a5;
}

.warningbox {
    background: rgba(251, 191, 36, 0.1);
    border-left-color: #fbbf24;
    color: #fde047;
}

.infobox {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
    color: #93c5fd;
}

/* ========== Footer ========== */
.footer {
    background: rgba(30, 41, 59, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer a {
    color: #60a5fa;
}

/* ========== Misc Elements ========== */
.username,
.username-coloured {
    color: #60a5fa;
    font-weight: 600;
}

.rank-img {
    opacity: 0.9;
}

/* Links */
a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #93c5fd;
    text-decoration: none;
}

/* Code blocks */
.codebox,
code {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #cbd5e1;
    padding: 12px;
}

/* Quotes */
.quotebox,
blockquote {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #3b82f6;
    border-radius: 4px;
    color: #cbd5e1;
    padding: 12px 16px;
    margin: 12px 0;
}

/* ========== Scrollbars ========== */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* ========== COMPREHENSIVE RESPONSIVE DESIGN ========== */

/* Large Tablets and Small Desktops (1024px - 1200px) */
@media (max-width: 1200px) {
    body {
        font-size: 15px;
    }

    .headerbar,
    .navbar {
        padding: 1rem 1.5rem;
    }

    .panel,
    .post,
    .forumbg {
        margin-bottom: 1.5rem;
    }

    .topiclist li {
        padding: 1rem;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .headerbar {
        padding: 0.85rem 1.25rem;
    }

    .panel .inner {
        padding: 1.25rem;
    }

    .post {
        padding: 1.25rem;
    }

    .topiclist li {
        padding: 0.85rem;
    }

    /* Tables - add horizontal scroll */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table.table1 {
        min-width: 700px;
    }

    table.table1 th,
    table.table1 td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Mobile and Small Tablets (≤768px) - CONSOLIDATED */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .headerbar {
        padding: 0.75rem 1rem;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    /* Panels & Posts */
    .panel,
    .post,
    .forumbg {
        border-radius: 8px;
        margin-bottom: 1rem;
    }

    .panel .inner {
        padding: 1rem;
    }

    .post {
        padding: 16px 12px;
    }

    /* Tables - Stack on mobile */
    table.table1 {
        min-width: 600px;
    }

    table.table1 thead {
        display: none;
    }

    table.table1 tbody tr {
        display: block;
        margin-bottom: 16px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 16px;
    }

    table.table1 tbody td {
        display: block;
        padding: 8px 0;
        border: none;
    }

    /* Topic Lists */
    .topiclist li {
        padding: 0.75rem;
    }

    /* Forums */
    .forabg,
    .forumbg {
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .forabg .header,
    .forumbg .header {
        padding: 14px 16px;
    }

    .forabg .header dt,
    .forumbg .header dt {
        font-size: 1rem;
    }

    .forabg li,
    .forumbg li {
        padding: 12px 14px;
    }

    .forumbg .row a.forumtitle,
    .forabg .row a.forumtitle {
        font-size: 1rem;
    }

    /* Post Content - Readable text */
    .postbody .content {
        font-size: 1rem;
        line-height: 1.75;
        color: #e2e8f0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .postbody .content p {
        margin-bottom: 1em;
    }

    .postbody h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .postbody h3 a {
        color: #f1f5f9;
    }

    .author {
        font-size: 0.9rem;
        padding: 10px 0;
        margin-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Blockquotes */
    .postbody blockquote,
    .postbody .codebox {
        margin: 16px 0;
        padding: 14px;
        border-radius: 10px;
        font-size: 0.95rem;
        background: rgba(0, 0, 0, 0.25);
        border-left: 3px solid #3b82f6;
    }

    .postbody blockquote cite {
        display: block;
        margin-bottom: 10px;
        font-size: 0.85rem;
        color: #94a3b8;
    }

    /* Avatar */
    .postprofile .avatar-container img {
        max-width: 60px;
        height: auto;
    }

    /* Topic title */
    .topic-title {
        font-size: 1.3rem;
        line-height: 1.4;
        margin-bottom: 16px;
    }

    /* Buttons - Touch-friendly */
    .button1,
    .button2 {
        min-height: 44px;
        padding: 0.7rem 1.2rem;
    }
}

/* ========== Ultimate Points UCP Styles ========== */
.ultimatepoints-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 30px;
}

.ultimatepoints-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.ultimatepoints-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ultimatepoints-header h2 i {
    font-size: 32px;
    color: #60a5fa;
}

.ultimatepoints-header p {
    margin: 0;
    opacity: 0.8;
    color: #e2e8f0;
    font-size: 15px;
}

/* Panel Styling for Ultimate Points */
.panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
}

.panel .inner {
    padding: 0;
    background: transparent;
}

/* Table Styling for Ultimate Points */
.topiclist {
    border: none;
}

.topiclist li.header {
    background: rgba(59, 130, 246, 0.1);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topiclist li.header dl dt,
.topiclist li.header dl dd {
    color: #60a5fa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    padding: 16px 20px;
}

.topiclist.cplist li.row {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.topiclist.cplist li.row:hover {
    background: rgba(59, 130, 246, 0.05);
}

.topiclist.cplist li.row dl dt,
.topiclist.cplist li.row dl dd {
    padding: 14px 20px;
    color: #cbd5e1;
}

.notifications_title {
    color: #fff;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.notifications_time {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
}

.topiclist .extra {
    color: #60a5fa;
    font-weight: 600;
}

.topiclist .time {
    color: #94a3b8;
    font-size: 13px;
}

/* Empty State */
.notification_list {
    color: #94a3b8;
    padding: 20px;
}

/* Notification Dropdown Fixes */
.zn-dropdown-menu .dropdown-contents {
    overflow: visible;
}

/* Fix dropdown menu width issues - prevent w-0 or min-w-0 classes from breaking menus */
.zn-dropdown-menu.dropdown,
.zn-dropdown-menu,
.dropdown {
    width: auto !important;
    min-width: 280px !important;
    max-width: 400px !important;
}

/* Login Dropdown - Desktop: full width, Mobile: smaller */
#quick-login {
    width: 380px !important;
    min-width: 320px !important;
    max-width: 400px !important;
}

@media (max-width: 768px) {

    .zn-dropdown-menu.dropdown,
    .zn-dropdown-menu,
    .dropdown {
        min-width: 260px !important;
        max-width: min(360px, 90vw) !important;
    }

    /* Login Dropdown - Mobile: responsive width */
    #quick-login {
        width: auto !important;
        min-width: 280px !important;
        max-width: min(340px, 88vw) !important;
    }

    #quick-login .dropdown-content,
    #quick-login .dropdown-footer,
    #quick-login .dropdown-header {
        padding: 0.75rem !important;
    }

    #quick-login .inputbox {
        font-size: 16px !important;
        /* Prevent iOS zoom */
    }
}

#notification_list {
    overflow-x: visible;
    overflow-y: auto;
    /* Smooth scrolling */
    scroll-behavior: smooth;
}

#notification_list li {
    overflow: visible;
}

#notification_list .avatar-wrapper {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    overflow: hidden;
    border-radius: 50%;
}

#notification_list .avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#notification_list .notification-block {
    overflow: visible;
    display: block;
    width: 100%;
}

#notification_list .flex {
    overflow: visible;
}

/* Better notification item styling */
#notification_list .notification-title {
    color: #fff;
    font-weight: 600;
    line-height: 1.4;
}

#notification_list .notification-time {
    color: #94a3b8;
    font-size: 0.8125rem;
}

#notification_list .notification-reference,
#notification_list .notification-reason {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Hover effects for notification items */
#notification_list li .block:hover {
    background: rgba(56, 189, 248, 0.08) !important;
}

/* Zebra striping - override */
.bg1,
.bg2 {
    background: transparent;
}

/* Section Headers */
h2 {
    color: #fff;
    font-size: 24px;
    margin: 30px 0 20px 0;
    align-items: center;
    gap: 12px;
}

h2 i {
    color: #60a5fa;
    font-size: 28px;
}

/* ========== UCP Tailwind Class Overrides ========== */

/* Background colors */
.bg-slate-50 {
    background: rgba(255, 255, 255, 0.05);
}

.bg-gray-50 {
    background: rgba(255, 255, 255, 0.05);
}

.bg-red-50 {
    background: rgba(239, 68, 68, 0.1);
}

.bg-white {
    background: rgba(15, 23, 42, 0.6);
}

/* Text colors */
.text-secondary {
    color: #94a3b8;
}

.text-red-700 {
    color: #fca5a5;
}

/* Border colors */
.border-gray-200 {
    border-color: rgba(255, 255, 255, 0.1);
}

.border-red-300 {
    border-color: rgba(239, 68, 68, 0.3);
}

/* File input styling */
.file\:bg-gray-50 {
    background: rgba(255, 255, 255, 0.05);
}

.file\:border-0 {
    border: none;
}

/* Hover states */
.hover\:text-color:hover {
    color: #60a5fa;
}

.hover\:bg-primary\/\[0\.08\]:hover {
    background: rgba(59, 130, 246, 0.08);
}

/* Specific UCP elements */
.cp-mini {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.agreement {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 16px;
    border-radius: 8px;
}

.agreement-text {
    color: #cbd5e1;
}

/* Table headers in UCP */
thead.bg-slate-50 {
    background: rgba(59, 130, 246, 0.1);
}

/* Zebra striping overrides for UCP */
.bg1 {
    background: transparent;
}

.bg2 {
    background: rgba(255, 255, 255, 0.02);
}

.max-lg\:bg-gray-50 {
    background: rgba(255, 255, 255, 0.02);
}

/* Button overrides for UCP */
.btn-primary-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
}

.btn-primary-outline:hover {
    background: rgb(68, 198, 250);
    border-color: #0099ff;
    color: #e6e6e6;
}

/* ========== Product Manager UCP Styles ========== */
/* DEPRECATED: These styles have been replaced by dashboard-elite.css
   Located at: ext/cw/productmgr/assets/css/dashboard-elite.css
   The elite styles provide a modern SaaS look with glassmorphic effects.
   Keeping this comment for reference only. */


/* ========== Iconify Icon Styling ========== */
/* Icons are styled by their parent containers - no global override needed */
/* The white background was causing issues with elite theme icons */

.agreement-scroll {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
    display: block;
}

.agreement-scroll::-webkit-scrollbar {
    width: 8px;
}

.agreement-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.agreement-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.agreement-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.attention-grab {
    animation: pulse 2s infinite, colorChange 4s infinite;
}

/* Define the pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
        color: #000;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
        color: #f00;
        /* Change to red */
    }

    100% {
        transform: scale(1);
        opacity: 1;
        color: #000;
    }
}

/* Optional: Changing background or border color */
@keyframes colorChange {
    0% {
        background-color: transparent;
    }

    50% {
        background-color: #ffeb3b;
        /* Yellow background */
    }

    100% {
        background-color: transparent;
    }
}

/* Note: .card styling is handled by dark-theme.css core styles */

/* ========== Hide Robbery from UCP Menu ========== */
/* Hide the Robbery link in Ultimate Points UCP navigation */
a[href*="mode=robbery"],
.ucp-menu a[href*="robbery"],
#navigation a[href*="robbery"],
li:has(> a[href*="mode=robbery"]) {
    display: none !important;
}

/* Code blocks */
.postbody .codebox pre,
.postbody code {
    font-size: 0.85rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Images in posts - responsive */
.postbody .content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Links - easier to tap */
.postbody .content a {
    color: #60a5fa;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Lists */
.postbody .content ul,
.postbody .content ol {
    padding-left: 20px;
    margin: 12px 0;
}

.postbody .content li {
    margin-bottom: 6px;
    line-height: 1.6;
}

/* Post actions/buttons */
.post-buttons {
    padding: 12px 0;
    gap: 8px;
}

.post-buttons .button,
.post-buttons a {
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* Signature */
.signature {
    margin-top: 20px;
    padding-top: 16px;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

/* User profile in post sidebar - stack on mobile */
.postprofile {
    padding: 12px;
    margin-bottom: 12px;
}

.postprofile .avatar-container img {
    max-width: 60px;
    height: auto;
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .headerbar {
        padding: 0.65rem 0.85rem;
    }

    .panel .inner {
        padding: 0.85rem;
    }

    .post {
        padding: 12px 10px;
    }

    .postbody .content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .postbody h3 {
        font-size: 1rem;
    }

    .postbody blockquote,
    .postbody .codebox {
        padding: 10px;
        margin: 12px -10px;
        border-radius: 0;
        font-size: 0.9rem;
    }

    .topic-title {
        font-size: 1.2rem;
    }

    .topiclist li {
        padding: 0.65rem;
    }

    .button1,
    .button2 {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    table.table1 {
        min-width: 500px;
    }
}

/* Very Small Mobile (≤360px) */
@media (max-width: 360px) {
    .headerbar {
        padding: 0.5rem 0.65rem;
    }

    .panel .inner {
        padding: 0.65rem;
    }

    .post {
        padding: 10px 8px;
    }

    .postbody .content {
        font-size: 0.9rem;
    }

    .topic-title {
        font-size: 1.1rem;
    }
}

/* Landscape Orientation (Mobile) */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .headerbar {
        padding: 0.5rem 1rem;
    }

    .post {
        padding: 0.85rem;
    }

    .panel .inner {
        padding: 0.85rem;
    }
}

/* Touch-Friendly Improvements */
@media (hover: none) and (pointer: coarse) {

    /* Minimum 44px touch targets */
    .button1,
    .button2,
    button,
    a.button,
    .topiclist li a {
        min-height: 44px;
    }

    /* Touch highlights */
    .button1,
    .button2 {
        -webkit-tap-highlight-color: rgba(59, 130, 246, 0.3);
    }

    .topiclist li {
        -webkit-tap-highlight-color: rgba(59, 130, 246, 0.15);
    }

    a {
        -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
    }

    /* Prevent text selection on UI elements */
    .headerbar,
    .navbar,
    .topiclist {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    /* Allow text selection in content */
    .postbody .content,
    input,
    textarea {
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .topiclist li:hover {
        transform: none;
    }
}

/* ========== Forum Category Separation ========== */
/* Main forum container */
#page-body .forumbg+.forumbg,
#page-body .forabg+.forabg,
#page-body .forumbg+.forabg,
#page-body .forabg+.forumbg {
    margin-top: 24px;
}

/* Category containers - clearer separation */
.forums {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Forum row improvements */
.topiclist.forums>li {
    background: rgba(30, 41, 59, 0.4);
    transition: all 0.2s ease;
}

.topiclist.forums>li:hover {
    background: rgba(59, 130, 246, 0.08);
    transform: translateX(2px);
}

/* Forum icon container */
.topiclist.forums>li .forum-icon {
    color: #60a5fa;
}

/* Alternating row colors for better readability */
.topiclist.forums>li:nth-child(odd) {
    background: rgba(30, 41, 59, 0.3);
}

.topiclist.forums>li:nth-child(even) {
    background: rgba(15, 23, 42, 0.4);
}
