/* --- CORE THEME VARIABLES (From HTML) --- */
:root {
    --gold-primary: #f0c75e;
    --gold-dim: #b89642;
    --bg-dark-overlay: rgba(15, 15, 15, 0.95);
    --bg-header: #0a0a0a;
    --text-main: #d1d1d1;
    --text-muted: #888;
    --border-gold: 1px solid rgba(184, 150, 66, 0.4);
    --border-dark: 1px solid #222;
    --radius-std: 8px; 
    --shadow-std: 0 10px 15px -3px rgba(0, 0, 0, 0.8), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
}
]
/* --- GLOBAL RESET --- */
* { box-sizing: border-box; }

body {
    background: #0f0f0f url(../../../images/uros/background.png) no-repeat center center fixed;
    background-size: cover;
    color: var(--text-main);
    font-family: 'Lato', 'Inter', sans-serif;
    font-size: 13px;
    margin: 0;
    padding: 0;
}

/* Blur Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 12, 16, 0.6); 
    z-index: -1;
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
}

a:link,
a:visited {
    color: var(--text-main);
    text-decoration: none;
    transition: 0.2s;
}
a:hover,
a:active {
    color: var(--gold-primary);
}

/* --- MAIN CONTAINER --- */
#container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 1200px;
    max-width: 95%;
    margin: 30px auto 0 auto;
    overflow: visible;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 140px); /* keeps footer near bottom */
}

#content {
    padding: 20px 0;
    background: transparent;
    flex: 1 0 auto;
}

/* --- HEADER AREA --- */
.header-logo-area {
    padding: 30px 0 20px 0;
    text-align: center;
    background: transparent;
    position: relative;
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to bottom, #fff5d6, #f0c75e, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    display: inline-block;
}
.logo-sub {
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    font-size: 1.1rem;
    letter-spacing: 4px;
    margin-top: -5px;
    text-transform: uppercase;
}

.logo-img {
    max-height: 150px; 
    width: auto;
    filter: drop-shadow(0 5px 25px #000);
}

/* --- NAVIGATION BAR --- */
.nav-bar {
    background: #111111;
    border-top: 1px solid #222;
    border-bottom: 2px solid #000;
    height: 55px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    max-width: 1180px;       /* match your main wrapper width */
    margin: 0 auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;                 /* global spacing instead of big margins */
    margin-left: 10px;        /* smaller left gap from nav-bar edge */
}
.nav-item {
    display: inline-block;
    padding: 0 15px;
    height: 55px;
    line-height: 55px;
    color: var(--gold-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: 3px solid transparent;
}

.nav-item i {
    margin-right: 6px;
    color: var(--gold-primary);
}

.nav-item a {
    color: var(--gold-primary);
    text-decoration: none;
}
.nav-item a:hover {
    color: #ffe9a3;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-bottom-color: var(--gold-primary);
}
.nav-item:hover i {
    color: var(--gold-primary);
}

/* --- USER PANEL --- */
.user-panel {
    display: flex;
    align-items: center;
    padding-right: 20px;
    gap: 15px;
    height: 100%;
    margin-left: auto;
}

/* STAFF SHIELD DROPDOWN */
.staff-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    cursor: pointer;
}
.staff-icon {
    color: #b91c1c;
    font-size: 18px;
    transition: 0.2s;
    text-shadow: 0 0 10px rgba(185, 28, 28, 0.5);
}
.staff-dropdown-container:hover .staff-icon {
    color: var(--gold-primary);
}

.staff-dropdown-content {
    display: none;
    position: absolute;
    top: 45px;
    right: -10px;
    background: #111;
    border: 1px solid var(--gold-dim);
    min-width: 150px;
    z-index: 200;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
    padding: 5px 0;
}
.staff-dropdown-container:hover .staff-dropdown-content {
    display: block;
}

.staff-dropdown-content a {
    display: block;
    padding: 8px 15px;
    color: #ccc;
    font-size: 11px;
    text-transform: uppercase;
    border-bottom: 1px solid #222;
}
.staff-dropdown-content a:last-child {
    border-bottom: none;
}
.staff-dropdown-content a:hover {
    background: #222;
    color: var(--gold-primary);
}

/* Avatar */
.user-avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #444;
    object-fit: cover;
}
.user-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    overflow: hidden;
    background: #000;
}
.user-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Icons */
.user-icon-btn {
    color: #888;
    font-size: 14px;
    transition: 0.2s;
    position: relative;
    padding: 5px;
}
.user-icon-btn:hover {
    color: var(--gold-primary);
}
.logout-btn:hover {
    color: #ff4d4d;
}
.msg-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--gold-primary);
    color: #000;
    font-size: 9px;
    font-weight: bold;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- UNIFIED BUTTON STYLING --- */
input.button,
button.button,
a.button,
.bitButton,
.new_reply_button,
.new_thread_button,
.btn-action,
input[type="submit"] {
    background: var(--gold-primary) !important;
    color: #000 !important;
    font-weight: bold;
    padding: 8px 15px;
    border: 1px solid var(--gold-dim) !important;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

input.button:hover,
button.button:hover,
a.button:hover,
.btn-action:hover {
    background: #fff5d6 !important;
    color: #000 !important;
    box-shadow: 0 0 10px var(--gold-dim);
}

/* Secondary buttons (Preview, Draft) */
input.button[name="preview"],
input.button[name="savedraft"] {
    background: transparent !important;
    border: 1px solid var(--gold-primary) !important;
    color: var(--gold-primary) !important;
}
input.button[name="preview"]:hover {
    background: var(--gold-primary) !important;
    color: #000 !important;
}

/* --- FORUMS LAYOUT (SOLID BAR) --- */
.tborder {
    background: transparent !important;
    border: none !important;
    width: 100%;
    margin-bottom: 20px;
    border-spacing: 0;
    border-collapse: collapse;
}

.thead {
    background: #111111;
    color: var(--gold-primary);
    padding: 12px 15px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    border-bottom: 1px solid var(--gold-dim);
    border-top: 1px solid #333;
}
.thead a {
    color: var(--gold-primary);
}

.cat-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cat-icon {
    color: var(--gold-primary);
    margin-right: 4px;
}

/* Collapse Button Right Side */
.expcolimage {
    float: right;
    margin-left: 10px;
    cursor: pointer;
}
.expcolimage img {
    opacity: 0.7;
}
.expcolimage img:hover {
    opacity: 1;
}

.tcat {
    background: #111;
    color: #777;
    padding: 8px 15px;
    font-size: 10px;
    text-transform: uppercase;
    border-bottom: 1px solid #222;
}

/* OPAQUE ROWS - SOLID */
.trow1,
.trow2 {
    background: rgba(22, 22, 22, 0.95);
    color: #ccc;
    padding: 14px 15px;
    border-bottom: 1px solid #222;
}
.trow1:hover,
.trow2:hover {
    background: #1c1c1c;
}
.trow1:last-child,
.trow2:last-child {
    border-bottom: none;
}

/* --- FORUM DISPLAY (THREAD LIST) --- */
.thread-list-container {
    border-radius: var(--radius-std);
    box-shadow: var(--shadow-std);
    overflow: hidden;
    border: 1px solid #222;
    background: rgba(15, 15, 15, 0.6);
}

.forum-title-bar {
    background: #0c0c0c;
    border-bottom: 1px solid var(--gold-dim);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.forum-header-text {
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    font-size: 1.2rem;
    text-transform: uppercase;
}

.forum-title-link {
    color: var(--gold-primary);
}
.forum-title-link:hover {
    color: #ffe9a3;
}

/* Row Style for Threads */
.thread-row {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid #1a1a1a;
    padding: 14px 15px;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.thread-row:last-child {
    border-bottom: none;
}
.thread-row:hover {
    background: rgba(35, 35, 35, 0.98);
}

.t-icon {
    width: 40px;
    text-align: center;
    font-size: 1.2rem;
}
.t-icon.pinned {
    color: var(--gold-primary);
}
.t-icon.normal {
    color: #555;
    font-size: 1rem;
}
.t-icon.closed {
    color: #333;
}

.t-info {
    flex: 1;
    padding-left: 10px;
}
.t-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ddd;
    display: block;
    margin-bottom: 3px;
}

/* Thread meta under title – don't override group colour */
.t-meta {
    font-size: 0.75rem;
    color: #777;
}
.t-meta a {
    color: inherit;
}

.t-tag {
    background: #333;
    color: #ccc;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 5px;
    vertical-align: middle;
}
.t-tag.imp {
    background: #c0392b;
    color: #fff;
}

.t-stats {
    width: 100px;
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    display: block;
}

/* Last post block on thread list */
.t-lastpost {
    width: 220px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    text-align: right;
}

/* Last post meta in thread list */
.t-lastpost-meta {
    font-size: 10px;
    line-height: 1.3;
    color: #aaaaaa;
}
.t-lastpost-meta div:last-child {
    color: #666666;
}

/* Let group colours come through if present */
.t-lastpost-meta a {
    color: inherit;
}

/* Last-post avatar circle */
.lp-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #333;
}

/* --- POSTBIT STYLING --- */
.post-container {
    margin-bottom: 30px;
    border: 1px solid #222;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-std);
    box-shadow: var(--shadow-std);
    overflow: hidden;
}

.post-head {
    background: #0c0c0c;
    border-bottom: 1px solid #222;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #666;
}
.post-number {
    color: var(--gold-dim);
    font-weight: bold;
}

.post-body {
    display: flex;
}

/* User Profile Left */
.post-user {
    width: 200px;
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-right: 1px solid #222;
    text-align: center;
    flex-shrink: 0;
}
.u-name {
    font-size: 1rem;
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    display: block;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px black;
}
.u-rank {
    font-size: 0.7rem;
    color: #fff;
    background: #c0392b;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
}
.u-avatar {
    width: 120px;
    height: 120px;
    border: 3px solid #222;
    margin: 0 auto 15px;
    object-fit: cover;
    border-radius: 6px;
}

.u-stats {
    text-align: left;
    font-size: 0.7rem;
    color: #777;
    line-height: 1.6;
    border-top: 1px solid #222;
    padding-top: 10px;
    margin-top: 10px;
}
.u-stats b {
    color: #999;
}

/* Message Right */
.post-content {
    padding: 25px;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
}
.post-content h1 {
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    font-size: 1.4rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.post-inlinecheck {
    margin-right: auto;
}

.post-foot {
    border-top: 1px solid #222;
    padding: 10px 20px;
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* --- SIDEBAR WIDGETS --- */
.widget {
    margin-bottom: 25px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid #222;
    border-radius: var(--radius-std);
    box-shadow: var(--shadow-std);
    overflow: hidden;
}
.widget-head {
    background: #111111;
    padding: 12px 15px;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--gold-primary);
    border: 1px solid #222;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.widget-body {
    padding: 15px;
    font-size: 0.85rem;
    color: #aaa;
}

/* Server IP */
.server-ip-box {
    background: #000;
    border: 1px solid #333;
    padding: 10px;
    text-align: center;
    margin-top: 10px;
    font-family: 'Press Start 2P', monospace;  /* pixel-like MC style */
    font-size: 11px;
    color: var(--gold-primary);
    cursor: pointer;
    border-radius: 4px;
    letter-spacing: 0;
}

.server-ip-box:hover {
    background: #111;
    border-color: var(--gold-dim);
}

/* Footer layout */
.footer {
    background: transparent;           /* no panel, let the world show through */
    padding: 25px 0 30px 0;
    text-align: center;
    font-size: 11px;
    color: #dddddd;                    /* lighter for readability */
    border-top: none;                  /* no hard line */
    margin-top: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* keeps text readable over the terrain */
}
.footer-links {
    margin-bottom: 6px;
}
.footer-links a {
    color: var(--gold-primary);
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}
.footer-divider {
    margin: 0 6px;
    color: #444;
}
.footer-copy a {
    color: var(--gold-primary);
}

/* --- UROS CUSTOM TWEAKS V23 --- */

/* Logo image in header */
.logo-image {
    max-width: 690px;
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Staff dropdown lists */
.staff-dropdown-content ul,
.staff-dropdown-content li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.staff-dropdown-content a {
    display: block;
    padding: 4px 10px;
    text-decoration: none;
}
.staff-dropdown-content a:hover {
    background: rgba(255,255,255,0.06);
}
.staff-dropdown-content a[href*="modcp.php"] {
    color: #4da3ff;
}
.staff-dropdown-content a[href*="admin"] {
    color: #ff6b6b;
}

/* Old lastpost wrapper (not used for new avatar layout but safe to keep) */
.lastpost-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.lastpost-wrap img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Minecraft server status widget */
.mc-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    background: #777;
}
#mc-status-text {
    font-size: 11px;
}
.mc-online {
    color: #2ecc71;
}
.mc-offline {
    color: #e74c3c;
}
.mc-online-dot {
    background: #2ecc71;
}
.mc-offline-dot {
    background: #e74c3c;
}
.mc-player-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.mc-player-bar {
    width: 100%;
    background: #222;
    height: 4px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}
#mc-player-bar-inner {
    background: #2ecc71;
    height: 100%;
    width: 0%;
}

/* Breadcrumb navigation styling */
.navigation {
    background: rgba(0, 0, 0, 0.45);
    padding: 8px 14px;
    border-radius: 4px;
    border-left: 3px solid var(--gold-primary);
    margin: 0 0 16px 0;
    font-size: 13px;
}
.navigation a {
    color: #dddddd;
    text-decoration: none;
}
.navigation a:hover {
    color: var(--gold-primary);
}
.navigation .active {
    color: #ffffff;
    font-weight: 600;
}

/* Forum list: last-post avatar + text */
.lastpost-with-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lastpost-with-avatar .lastpost-avatar img,
.lastpost-with-avatar .lastpost-avatar .avatarep_img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.lastpost-with-avatar .lastpost-text {
    line-height: 1.2;
}

/* Do not override group colours on last-post username */
.lastpost-with-avatar .smalltext a {
    color: inherit;
    text-decoration: none;
}

/* Latest activity widget (with avatars) */
.latest-activity-list {
    padding: 0;
}

.latest-activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
}

.latest-activity-item + .latest-activity-item {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.latest-activity-avatar {
    flex: 0 0 auto;
}

.latest-activity-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.latest-activity-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: block;
}

.latest-activity-main {
    flex: 1 1 auto;
    min-width: 0;
}

.latest-activity-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-activity-title:hover {
    color: var(--gold-primary);
}

.latest-activity-meta {
    font-size: 11px;
    opacity: 0.8;
}

.latest-activity-replies {
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 11px;
    color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 0 6px;
}

/* Moderation tools bar (thread tools & inline moderation) */
.mod-tools-bar {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid #222;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.mod-tools-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #aaaaaa;
    margin-right: 6px;
}

.mod-tools-select {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #333;
    color: #dddddd;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.mod-tools-bar .button {
    padding: 4px 10px;
    font-size: 10px;
}

/* Thread title + pinned badge */
.t-title-wrap {
    display: flex;
    flex-direction: column;   /* badge on top, title underneath */
    align-items: flex-start;
    gap: 4px;
}

/* Pinned badge – hidden by default */
.thread-pin-badge {
    display: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--gold-primary);
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(240, 199, 94, 0.5);
    background: rgba(0, 0, 0, 0.45);
}

/* Show badge + highlight row for sticky threads (sticky1 from template) */
.thread-row.sticky1 .thread-pin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.thread-row.sticky1 {
    background: rgba(30, 24, 10, 0.97);
    border-bottom: 1px solid rgba(240, 199, 94, 0.35);
}

/* Section headers for Pinned / Other Threads */
.trow_sep,
.thread-section-sep {
    background: #101010;
    padding: 6px 18px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f0c75e; /* gold text */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.7);
}

.thread-section-pinned {
    color: var(--gold-primary);
}

.thread-section-normal {
    color: #cccccc;
}

.thread-section-sep i {
    margin-right: 6px;
    font-size: 12px;
}

/* Thread moderation options dropdown */
#moderator_options select,
select[name="action"] {
    background: #050505;
    border: 1px solid #333;
    color: #ddd;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
}

#moderator_options span.smalltext {
    margin-right: 6px;
}

/* Inline subforum list under each forum on the index */
.subforums-inline {
    display: inline-flex;      /* sit on one line */
    flex-wrap: nowrap;
    align-items: center;
    font-size: 0;              /* hide commas / stray text */
}

/* Just in case any <br> slipped in somewhere, ignore them */
.subforums-inline br {
    display: none !important;
}

/* Each child forum link */
.subforums-inline a {
    font-size: 11px;           /* restore readable size */
    color: #c0c0c0;
    text-decoration: none;
}

/* Gold dot separator between forums */
.subforums-inline a::after {
    content: "  \2022  ";        /* space + • + space */
    color: var(--gold-primary);
}

/* No dot after the last one */
.subforums-inline a:last-of-type::after {
    content: "";
}

.subforums-inline a:hover {
    color: var(--gold-primary);
}


.forumdisplay-subforums-header {
    background: #101010;
    padding: 6px 18px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.7);
}
/* Limit TinyMCE dropdown height & allow scrolling */
.tox .tox-menu.tox-collection--list {
    max-height: 220px;      /* adjust if you want taller/shorter */
    overflow-y: auto;
}

/* Safety for grouped lists (fontselect uses these) */
.tox .tox-collection__group {
    max-height: 220px;
    overflow-y: auto;
}
/* === UROS NAV REFINEMENTS (OVERRIDES) === */

/* Keep the bar aligned with the main 1200px container */
.nav-bar {
    max-width: 1200px;          /* same as #container */
    margin: 0 auto;
    padding-left: 18px;
    padding-right: 18px;
    justify-content: space-between;
}

/* Main links row – less gap */
.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 18px;
}

/* Top-level items */
.nav-links .nav-item,
.nav-links .nav-parent-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 100%;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-primary);
    border-bottom: 2px solid transparent;
    white-space: nowrap;           /* prevent Rules & Guidelines from stacking */
}

/* Icon colours */
.nav-links .nav-item i,
.nav-links .nav-parent-link i {
    color: var(--gold-primary);
}

/* Hover / active highlight */
.nav-links .nav-item:hover,
.nav-links .nav-parent-link:hover,
.nav-item.nav-item-dropdown:hover > .nav-parent-link {
    background: rgba(255,255,255,0.03);
    color: #fff;
    border-bottom-color: var(--gold-primary);
}

/* Make the label text slightly brighter on hover */
.nav-links .nav-item:hover .nav-label,
.nav-links .nav-parent-link:hover .nav-label {
    color: #ffffff;
}

/* Right side – search + user controls */
.user-panel {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Quick search – a bit taller and centred vertically */
.nav-quick-search {
    display: flex;
    align-items: center;
    background: #050505;
    border-radius: 999px;
    border: 1px solid #333;
    padding: 0 8px;
    height: 30px;
}

.nav-search-button {
    border: none;
    background: transparent;
    padding: 0 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search-button i {
    color: var(--gold-primary);
    font-size: 12px;
}

.nav-search-input {
    background: transparent;
    border: none;
    color: #eee;
    padding: 0 6px;
    font-size: 11px;
    width: 180px;
}

.nav-search-input::placeholder {
    color: #777;
}

.nav-search-input:focus {
    outline: none;
}

/* === Dropdowns === */
.nav-item.nav-item-dropdown {
    position: relative;
}

.nav-item.nav-item-dropdown .nav-parent-link {
    padding-right: 18px;          /* space for caret */
}

.nav-caret {
    font-size: 9px;
    margin-left: 4px;
}

/* Dropdown container – same width as the button */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;                     /* make it follow parent width */
    min-width: 0;
    background: #111111;
    border-left: 1px solid var(--gold-primary);
    border-right: 1px solid var(--gold-primary);
    border-bottom: 1px solid var(--gold-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.7);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 4px 0;
    z-index: 150;
}

/* Show dropdown on hover */
.nav-item.nav-item-dropdown:hover .nav-dropdown-menu {
    display: flex;
}

/* Dropdown items – stacked, centred, no huge gaps */
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 6px;
    font-size: 11px;
    color: #ddd;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.nav-dropdown-menu a i {
    font-size: 11px;
    color: var(--gold-primary);
}

.nav-dropdown-menu a:hover {
    background: rgba(255,255,255,0.04);
    color: #fff;
}

/* Make every top nav label consistent */
.nav-label {
    display: inline-block;
}
/* Left nav links – pull closer to left edge a bit */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;                 /* global spacing instead of big margins */
    margin-left: 10px;        /* smaller left gap from nav-bar edge */
}

/* Main nav items */
.nav-links .nav-item {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gold-primary);
    white-space: nowrap;      /* prevents “Rules & Guides” from stacking */
}

/* remove big right margins if you still have them anywhere */
.nav-links .nav-item:not(.nav-parent-link) {
    margin-right: 0;
}
/* Parent for dropdowns */
.nav-item-dropdown {
    position: relative;
}

/* Parent link (the visible button) */
.nav-parent-link {
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    height: 40px;
}

/* Dropdown panel */
.nav-item-dropdown .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;                /* same width as parent button */
    background: #111;               /* same as nav bar */
    border-left: 1px solid #d4a850; /* gold outline */
    border-right: 1px solid #d4a850;
    border-bottom: 1px solid #d4a850;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    padding: 4px 0;
    display: none;
    z-index: 9900;
}

/* Show on hover */
.nav-item-dropdown:hover .nav-dropdown-menu {
    display: block;
}

/* Links inside dropdown – centered, neat spacing */
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 14px;
    font-size: 11px;
    color: #f5f5f5;
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown-menu a i {
    width: 14px;
    text-align: center;
}

.nav-dropdown-menu a span {
    flex: 1;
}

.nav-dropdown-menu a:hover {
    background: #1a1a1a;
    color: #ffd36b;
}
/* --- NAV BAR FIXES --- */

/* 1. Stop the bar from overflowing the page */
.nav-bar {
    width: 100% !important;
    max-width: 1200px !important; /* Forces it to match main container width */
    margin: 0 auto !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    box-sizing: border-box !important;
}

/* 2. Remove the gap between menu items */
.nav-links {
    gap: 0 !important;
}

/* 3. Make 'Rules' and 'Extras' (Dropdowns) behave like normal links */
/* This targets the DIV wrapper of the dropdown */
.nav-links div.nav-item {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* 4. Apply consistent spacing to the actual clickable text */
/* This targets 'Home', 'Forums', etc AND 'Rules & Guides', 'Extras' */
.nav-links .nav-item, 
.nav-links .nav-parent-link {
    padding: 0 15px !important; /* Even spacing for everyone */
    margin: 0 !important;
    font-size: 11px !important;
}
/* Deleted thread row theming */
tr.thread_deleted td {
  background: rgba(0,0,0,0.35) !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}

tr.thread_deleted .td-del-msg {
  color: rgba(255,255,255,0.75) !important;
  font-style: italic;
}

/* Hide the placeholder dash columns that look broken in custom layouts */
tr.thread_deleted .td-del-hide {
  display: none !important;
}

/* Keep the first two cells visible */
tr.thread_deleted .td-del-status,
tr.thread_deleted .td-del-check {
  display: table-cell !important;
}
/* Deleted thread row – stop the ugly dash columns and match theme */
tr.uros-thread-deleted td {
  background: rgba(0,0,0,0.35) !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}

tr.uros-thread-deleted .uros-td-title em {
  color: rgba(255,255,255,0.75) !important;
  font-style: italic;
}

tr.uros-thread-deleted .uros-td-hide {
  display: none !important;
}
.post_body img,
.post_content img,
.message img {
  max-width: 100%;
  height: auto;
}
/* Uros: darken SCEditor writing surface (safe override) */
.sceditor-container iframe,
.sceditor-container textarea {
  background: #111 !important;
}

/* Also darken the iframe document background */
.sceditor-container iframe html,
.sceditor-container iframe body {
  background: #111 !important;
}

/* =========================================================
   Uros Editor Patch v5 (cleaned / consolidated)
   Scope: posting pages + spoiler/post content display
   ========================================================= */

/* Force readable forum post content (prevents "blank" looking posts if inherited color breaks) */
.post_body,
.post_content,
.post_body .scaleimages,
.post_content .scaleimages {
  color: #e6dfcf;
  line-height: 1.65;
}
.post_body a,
.post_content a {
  color: #d9b55c;
}
.post_body a:hover,
.post_content a:hover {
  color: #f0cd79;
}

/* Themed spoiler rendering for custom [spoiler] MyCode output */
details.uros-spoiler {
  margin: 10px 0;
  border: 1px solid rgba(212,168,80,.24);
  border-radius: 8px;
  background: rgba(255,255,255,.02);
  overflow: hidden;
}
details.uros-spoiler > summary {
  cursor: pointer;
  list-style: none;
  padding: 8px 10px;
  color: #f0c75e;
  background: rgba(212,168,80,.07);
  font-weight: 700;
  font-family: Cinzel, serif;
  letter-spacing: .03em;
}
details.uros-spoiler > summary::-webkit-details-marker { display: none; }
details.uros-spoiler > .uros-spoiler-body { padding: 10px; }

/* Posting-page-only tweaks */
body.uros-posting-page .tborder {
  background: rgba(10,12,15,.93) !important;
  border: 1px solid #1f232b !important;
  border-radius: 12px !important;
  overflow: visible !important;
}
body.uros-posting-page .thead,
body.uros-posting-page .tcat {
  background: linear-gradient(to bottom, #121417, #0f1114) !important;
  border-bottom: 1px solid rgba(212,168,80,.14) !important;
}
body.uros-posting-page .trow1,
body.uros-posting-page .trow2 {
  background: rgba(10,12,15,.92) !important;
  border-bottom: 1px solid rgba(255,255,255,.04) !important;
}
body.uros-posting-page td.uros-editor-span-cell {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

/* Editor wrapper */
body.uros-posting-page .sceditor-container {
  position: relative !important;
  overflow: visible !important; /* fixes clipped dropdowns */
  border: 1px solid #353a43 !important;
  border-radius: 12px !important;
  background: #111316 !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.30) !important;
}
body.uros-posting-page .sceditor-container iframe {
  background: #e7e3da !important;
}
body.uros-posting-page .sceditor-container textarea {
  background: #e7e3da !important;
  color: #2a251f !important;
  min-height: 380px !important;
  font-family: Consolas, "Courier New", monospace !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}
body.uros-posting-page div.sceditor-toolbar {
  display: block !important;
  line-height: 0 !important;
  overflow: visible !important;
  background: linear-gradient(to bottom, #1b1d21, #16181c) !important;
  border-bottom: 1px solid rgba(212,168,80,.16) !important;
  padding: 9px 10px !important;
  border-radius: 12px 12px 0 0 !important;
}
body.uros-posting-page div.sceditor-group {
  display: inline-block !important;
  vertical-align: top !important;
  margin: 0 10px 4px 0 !important;
  padding: 0 10px 0 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  position: relative !important;
  overflow: visible !important;
}
body.uros-posting-page div.sceditor-group:after {
  content: "";
  position: absolute;
  top: 4px;
  right: 0;
  width: 1px;
  height: 24px;
  background: rgba(212,168,80,.10);
}
body.uros-posting-page div.sceditor-group:last-child:after { display: none; }

body.uros-posting-page .sceditor-button {
  width: 30px !important;
  height: 30px !important;
  margin: 0 2px !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
body.uros-posting-page .sceditor-button:hover {
  background: rgba(212,168,80,.08) !important;
  border-color: rgba(212,168,80,.16) !important;
}
body.uros-posting-page .sceditor-button.active,
body.uros-posting-page .sceditor-button:active {
  background: rgba(212,168,80,.12) !important;
  border-color: rgba(212,168,80,.28) !important;
  box-shadow: inset 0 0 0 1px rgba(212,168,80,.08) !important;
}

body.uros-posting-page .sceditor-button div {
  width: 16px !important;
  height: 16px !important;
  line-height: 16px !important;
  text-indent: 0 !important;
  overflow: visible !important;
  background: none !important;
  color: #ead9b1 !important;
  opacity: 1 !important;
  position: relative;
  font-size: 0 !important;
}
body.uros-posting-page .sceditor-button div:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 13px;
  line-height: 16px;
  color: #ead9b1;
  display: block;
  text-align: center;
  text-indent: 0;
}

/* Toolbar icon mappings */
body.uros-posting-page .sceditor-button-undo div:before { content: "\f2ea"; }
body.uros-posting-page .sceditor-button-redo div:before { content: "\f2f9"; }
body.uros-posting-page .sceditor-button-bold div:before { content: "\f032"; }
body.uros-posting-page .sceditor-button-italic div:before { content: "\f033"; }
body.uros-posting-page .sceditor-button-underline div:before { content: "\f0cd"; }
body.uros-posting-page .sceditor-button-strike div:before { content: "\f0cc"; }
body.uros-posting-page .sceditor-button-subscript div:before { content: "\f12c"; font-size: 12px; }
body.uros-posting-page .sceditor-button-superscript div:before { content: "\f12b"; font-size: 12px; }

body.uros-posting-page .sceditor-button-left div:before { content: "\f036"; }
body.uros-posting-page .sceditor-button-center div:before { content: "\f037"; }
body.uros-posting-page .sceditor-button-right div:before { content: "\f038"; }
body.uros-posting-page .sceditor-button-justify div:before { content: "\f039"; }

body.uros-posting-page .sceditor-button-font div:before { content: "F"; font-family: Inter, Arial, sans-serif; font-weight: 700; }
body.uros-posting-page .sceditor-button-size div:before { content: "T"; font-family: Inter, Arial, sans-serif; font-weight: 700; }
body.uros-posting-page .sceditor-button-color div:before { content: "\f53f"; }
body.uros-posting-page .sceditor-button-removeformat div:before { content: "\f12d"; }

body.uros-posting-page .sceditor-button-bulletlist div:before { content: "\f0ca"; }
body.uros-posting-page .sceditor-button-orderedlist div:before { content: "\f0cb"; }
body.uros-posting-page .sceditor-button-horizontalrule div:before { content: "\f068"; font-size: 11px; }

body.uros-posting-page .sceditor-button-image div:before { content: "\f03e"; }
body.uros-posting-page .sceditor-button-link div:before { content: "\f0c1"; }
body.uros-posting-page .sceditor-button-unlink div:before { content: "\f127"; }
body.uros-posting-page .sceditor-button-quote div:before { content: "\f10d"; }
body.uros-posting-page .sceditor-button-spoiler div:before { content: "\f070"; }
body.uros-posting-page .sceditor-button-maximize div:before { content: "\f065"; }

body.uros-posting-page .sceditor-button:hover div:before,
body.uros-posting-page .sceditor-button.active div:before {
  color: #fff3d3;
  text-shadow: 0 0 4px rgba(212,168,80,.12);
}

/* Dropdowns */
body.uros-posting-page .sceditor-dropdown {
  z-index: 10060 !important;
  background: #121315 !important;
  color: #eadfca !important;
  border: 1px solid rgba(212,168,80,.28) !important;
  border-radius: 10px !important;
  box-shadow: 0 18px 36px rgba(0,0,0,.42) !important;
  padding: 8px !important;
  margin-top: 6px !important;
  overflow: visible !important;
  max-width: min(92vw, 360px) !important;
}
body.uros-posting-page .sceditor-dropdown input,
body.uros-posting-page .sceditor-dropdown textarea,
body.uros-posting-page .sceditor-dropdown select {
  background: #0b0c0e !important;
  color: #eadfca !important;
  border: 1px solid #2f3238 !important;
  border-radius: 8px !important;
  padding: 6px 8px !important;
}
body.uros-posting-page .sceditor-dropdown label { color: #e1d4b7 !important; }
body.uros-posting-page .sceditor-dropdown .button {
  background: #d4a850 !important;
  border: 1px solid #9d7a26 !important;
  color: #121212 !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
}

/* Custom font dropdown */
body.uros-posting-page .uros-font-menu {
  min-width: 250px;
  max-height: 320px;
  overflow-y: auto;
}
body.uros-posting-page .uros-font-option {
  display: block;
  text-decoration: none;
  color: #eadfca !important;
  padding: 7px 8px;
  border-radius: 6px;
}
body.uros-posting-page .uros-font-option:hover {
  background: rgba(212,168,80,.08) !important;
  color: #fff2d2 !important;
}
body.uros-posting-page .uros-font-option-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Custom size dropdown */
body.uros-posting-page .uros-size-menu {
  min-width: 190px;
  max-height: 320px;
  overflow-y: auto;
}
body.uros-posting-page .uros-size-option {
  display: block;
  text-decoration: none;
  color: #eadfca !important;
  padding: 6px 8px;
  border-radius: 6px;
}
body.uros-posting-page .uros-size-option:hover {
  background: rgba(212,168,80,.08) !important;
  color: #fff2d2 !important;
}
body.uros-posting-page .uros-size-option-sample {
  display: block;
  color: inherit;
  line-height: 1.2;
}

/* Shared scrollbars for custom menus */
body.uros-posting-page .uros-font-menu::-webkit-scrollbar,
body.uros-posting-page .uros-size-menu::-webkit-scrollbar {
  width: 10px;
}
body.uros-posting-page .uros-font-menu::-webkit-scrollbar-track,
body.uros-posting-page .uros-size-menu::-webkit-scrollbar-track {
  background: #0e0f11;
  border-radius: 8px;
}
body.uros-posting-page .uros-font-menu::-webkit-scrollbar-thumb,
body.uros-posting-page .uros-size-menu::-webkit-scrollbar-thumb {
  background: rgba(212,168,80,.28);
  border-radius: 8px;
  border: 2px solid #0e0f11;
}

/* Custom colour picker */
body.uros-posting-page .uros-color-picker {
  width: min(340px, 90vw);
}
body.uros-posting-page .uros-color-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #e8dcc0;
  font-weight: 700;
  font-size: 13px;
}
body.uros-posting-page .uros-color-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
body.uros-posting-page .uros-color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.14);
  padding: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.10);
}
body.uros-posting-page .uros-color-swatch:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.28);
}
body.uros-posting-page .uros-color-swatch.is-active {
  box-shadow: 0 0 0 2px rgba(212,168,80,.28), inset 0 0 0 2px rgba(255,255,255,.65);
  border-color: rgba(212,168,80,.55);
}
body.uros-posting-page .uros-color-row {
  display: grid;
  grid-template-columns: 46px 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
body.uros-posting-page .uros-color-native {
  width: 46px;
  height: 36px;
  padding: 0;
  border: 1px solid #343842;
  border-radius: 8px;
  background: #0f1012;
}
body.uros-posting-page .uros-color-hex {
  height: 36px !important;
  text-transform: lowercase;
  min-width: 0;
}
body.uros-posting-page .uros-color-btn {
  height: 36px !important;
  border-radius: 8px !important;
  padding: 0 12px !important;
}
body.uros-posting-page .uros-color-clear {
  background: #262a31 !important;
  border-color: #383d48 !important;
  color: #e7dcc4 !important;
}
body.uros-posting-page .uros-color-rgb-row {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr;
  gap: 6px;
  align-items: center;
}
body.uros-posting-page .uros-color-rgb-label {
  color: #d8caa9;
  font-weight: 700;
  font-size: 11px;
}
body.uros-posting-page .uros-color-rgb {
  width: 100% !important;
  height: 32px !important;
  text-align: center;
  padding: 4px 6px !important;
}

/* Attachment local preview cards (PC image preview before upload) */
body.uros-posting-page .uros-attach-local-preview {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}
body.uros-posting-page .uros-attach-local-preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(212,168,80,.14);
  border-radius: 10px;
  padding: 8px;
}
body.uros-posting-page .uros-attach-local-preview-thumb,
body.uros-posting-page .uros-attach-local-preview-fileicon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid #323742;
  background: #111317;
}
body.uros-posting-page .uros-attach-local-preview-thumb { object-fit: cover; }
body.uros-posting-page .uros-attach-local-preview-fileicon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d9cfb8;
  font-size: 11px;
  font-weight: 700;
}
body.uros-posting-page .uros-attach-local-preview-name {
  color: #ece2cc;
  font-size: 12px;
  font-weight: 600;
  word-break: break-word;
}
body.uros-posting-page .uros-attach-local-preview-size {
  color: #b6aa93;
  font-size: 11px;
  margin-top: 2px;
}

/* Hide old smiley UI + post icons on posting pages */
body.uros-posting-page #smilieinsert,
body.uros-posting-page .smilie_insert,
body.uros-posting-page .smilie_list,
body.uros-posting-page .posticons,
body.uros-posting-page .posticons_row {
  display: none !important;
}
body.uros-posting-page #disablesmilies,
body.uros-posting-page label[for="disablesmilies"] {
  display: none !important;
}

/* Make fullscreen editor work above forum chrome */
.sceditor-maximize {
  z-index: 10020 !important;
}
/* =========================================================
   Uros Posting Theme Override (warm slate / gold / brown)
   Append to END of global.css
   ========================================================= */

body.uros-posting-page .tborder {
  background: rgba(10, 10, 10, 0.92) !important;
  border: 1px solid #232323 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.28) !important;
}

body.uros-posting-page .thead,
body.uros-posting-page .tcat {
  background: linear-gradient(to right, rgba(28,20,12,.92), rgba(14,14,14,.94)) !important;
  color: #f0c75e !important;
  border-bottom: 1px solid rgba(212,168,80,.18) !important;
}

body.uros-posting-page .trow1,
body.uros-posting-page .trow2 {
  background: rgba(12, 12, 12, 0.94) !important;
  border-bottom: 1px solid rgba(255,255,255,.04) !important;
}

body.uros-posting-page .trow1 strong,
body.uros-posting-page .trow2 strong,
body.uros-posting-page td strong {
  color: #f0c75e !important;
}

/* Left labels on posting form */
body.uros-posting-page td:first-child {
  color: #e1c06a !important;
  font-weight: 600;
}

/* Editor chrome (toolbar + frame) */
body.uros-posting-page .sceditor-container {
  background: #141210 !important;
  border: 1px solid #3a2d1b !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.25) !important;
}

body.uros-posting-page .sceditor-toolbar {
  background: linear-gradient(to bottom, #2a2218, #18140f) !important;
  border-bottom: 1px solid rgba(212,168,80,.28) !important;
  padding: 8px 10px !important;
}

/* Keep groups subtle and thematic */
body.uros-posting-page .sceditor-group {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-right: 10px !important;
  padding-right: 10px !important;
  position: relative !important;
}
body.uros-posting-page .sceditor-group:after {
  content: "";
  position: absolute;
  right: 0;
  top: 4px;
  width: 1px;
  height: 24px;
  background: rgba(212,168,80,.14);
}
body.uros-posting-page .sceditor-group:last-child:after {
  display: none;
}

/* Buttons */
body.uros-posting-page .sceditor-button {
  width: 30px !important;
  height: 30px !important;
  border-radius: 7px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
}

body.uros-posting-page .sceditor-button:hover {
  background: rgba(212,168,80,.10) !important;
  border-color: rgba(212,168,80,.24) !important;
}

body.uros-posting-page .sceditor-button.active,
body.uros-posting-page .sceditor-button:active {
  background: rgba(212,168,80,.16) !important;
  border-color: rgba(212,168,80,.35) !important;
  box-shadow: inset 0 0 0 1px rgba(212,168,80,.10) !important;
}

/* Icon glyphs (if you're using the custom icon CSS) */
body.uros-posting-page .sceditor-button div::before {
  color: #f2e2bd !important;
}
body.uros-posting-page .sceditor-button:hover div::before,
body.uros-posting-page .sceditor-button.active div::before {
  color: #ffd980 !important;
}

/* Dropdowns / pickers */
body.uros-posting-page .sceditor-dropdown {
  background: #151210 !important;
  border: 1px solid rgba(212,168,80,.40) !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 34px rgba(0,0,0,.52) !important;
  color: #e8dfca !important;
}

/* Font/size dropdown list items */
body.uros-posting-page .sceditor-font-option,
body.uros-posting-page .sceditor-fontsize-option {
  color: #eadfca !important;
}
body.uros-posting-page .sceditor-font-option:hover,
body.uros-posting-page .sceditor-fontsize-option:hover {
  background: rgba(212,168,80,.11) !important;
  color: #ffd980 !important;
}

/* Colour picker panel (themed, no blue chrome) */
body.uros-posting-page .uros-color-picker-wrap {
  width: 292px !important;
}
body.uros-posting-page .uros-color-picker-title {
  color: #f0c75e !important;
  margin-bottom: 8px !important;
}
body.uros-posting-page .uros-color-picker-grid {
  gap: 5px !important;
}
body.uros-posting-page .uros-color-swatch {
  border-radius: 5px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}
body.uros-posting-page .uros-color-swatch:hover {
  border-color: rgba(240,199,94,.65) !important;
  box-shadow: 0 0 0 2px rgba(240,199,94,.12) !important;
}

/* Inputs on posting page */
body.uros-posting-page input.text_input,
body.uros-posting-page textarea,
body.uros-posting-page select {
  background: #0d0d0d !important;
  color: #f2ead6 !important;
  border: 1px solid #38322a !important;
  border-radius: 8px !important;
}

body.uros-posting-page input.text_input:focus,
body.uros-posting-page textarea:focus,
body.uros-posting-page select:focus {
  border-color: rgba(212,168,80,.58) !important;
  box-shadow: 0 0 0 2px rgba(212,168,80,.14) !important;
  outline: none !important;
}

/* Attachments panel style */
body.uros-posting-page .attachments,
body.uros-posting-page #attachments_box,
body.uros-posting-page .attachment_upload_box {
  background: rgba(12,12,12,.92) !important;
  border-color: rgba(212,168,80,.12) !important;
}

/* Hide legacy bits you said you don't want */
body.uros-posting-page #disablesmilies,
body.uros-posting-page label[for="disablesmilies"],
body.uros-posting-page #smilieinsert,
body.uros-posting-page .smilie_insert,
body.uros-posting-page .posticons,
body.uros-posting-page .posticons_row {
  display: none !important;
}
/* Uros forum/editor fixes (append as a separate file and load after global.css) */

/* ---------- Guest nav / login-register fit (desktop + mobile) ---------- */
.nav-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.nav-links {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.user-panel {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.user-panel .nav-item {
  flex: 0 0 auto;
}

.user-panel .nav-item a,
.user-panel .nav-item span,
.user-panel a {
  white-space: nowrap;
}

.search-box,
.nav-search,
#search {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1100px) {
  .nav-bar {
    gap: 6px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links .nav-item a {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 11px !important;
  }

  .user-panel .nav-item a,
  .user-panel .nav-item span,
  .user-panel a {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 820px) {
  .nav-bar {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .nav-links {
    order: 1;
    flex: 1 1 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .user-panel {
    order: 2;
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .search-box,
  .nav-search,
  #search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 540px) {
  .user-panel .nav-item a,
  .user-panel .nav-item span,
  .user-panel a {
    font-size: 11px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}

/* ---------- Posting page theming ---------- */
body.uros-posting-page .tborder,
body.uros-posting-page .postbit,
body.uros-posting-page .quick_reply,
body.uros-posting-page #quickreply_e,
body.uros-posting-page .editor {
  background: linear-gradient(180deg, rgba(13,15,20,0.92), rgba(9,11,16,0.92)) !important;
  border: 1px solid rgba(214,171,74,0.14) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  overflow: visible;
}

body.uros-posting-page .thead,
body.uros-posting-page .tcat {
  background: linear-gradient(180deg, rgba(27,31,37,0.92), rgba(18,21,26,0.92)) !important;
  border-bottom: 1px solid rgba(214,171,74,0.18) !important;
  color: #efcc72 !important;
}

body.uros-posting-page .thead a,
body.uros-posting-page .tcat a {
  color: #efcc72 !important;
}

body.uros-posting-page .trow1,
body.uros-posting-page .trow2,
body.uros-posting-page .postbit .post_body,
body.uros-posting-page td {
  background-color: transparent !important;
  color: #e9e2d2 !important;
}

body.uros-posting-page tr + tr td {
  border-top: 1px solid rgba(214,171,74,0.07) !important;
}

body.uros-posting-page input[type="text"],
body.uros-posting-page input.text_input,
body.uros-posting-page textarea,
body.uros-posting-page select {
  background: rgba(7,9,12,0.95) !important;
  color: #f2ecd9 !important;
  border: 1px solid rgba(214,171,74,0.18) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

body.uros-posting-page input[type="text"]:focus,
body.uros-posting-page textarea:focus,
body.uros-posting-page select:focus {
  border-color: rgba(214,171,74,0.42) !important;
  box-shadow: 0 0 0 2px rgba(214,171,74,0.10), inset 0 1px 0 rgba(255,255,255,0.02) !important;
  outline: none !important;
}

/* Expand editor row once JS removes the left label cell */
body.uros-posting-page td.uros-td-hide {
  display: none !important;
}
body.uros-posting-page td.uros-editor-span-cell {
  width: 100% !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
}

/* Editor shell overrides on posting pages */
body.uros-posting-page .sceditor-container {
  background: linear-gradient(180deg, rgba(18,21,27,0.95), rgba(11,13,18,0.95)) !important;
  border: 1px solid rgba(214,171,74,0.18) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35) !important;
  overflow: visible !important;
}

body.uros-posting-page .sceditor-toolbar {
  background: linear-gradient(180deg, rgba(30,33,39,0.92), rgba(21,24,29,0.92)) !important;
  border-bottom: 1px solid rgba(214,171,74,0.20) !important;
  border-radius: 14px 14px 0 0 !important;
  overflow: visible !important;
}

body.uros-posting-page .sceditor-group {
  background: rgba(255,255,255,0.02) !important;
  border: 1px solid rgba(214,171,74,0.14) !important;
  border-radius: 10px !important;
  overflow: visible !important;
}

/* Editor dropdowns: aligned, unclipped, scrollable */
.sceditor-dropdown {
  z-index: 999999 !important;
  max-width: min(92vw, 360px) !important;
  max-height: min(70vh, 420px) !important;
  overflow: auto !important;
}

.sceditor-font-picker,
.sceditor-font-picker > div {
  max-height: 300px !important;
  overflow-y: auto !important;
}

/* Attachment local previews from uros_editor.js */
.uros-attach-local-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 12px 0 8px;
}
.uros-attach-local-preview-item {
  background: rgba(14,16,21,0.95);
  border: 1px solid rgba(214,171,74,0.16);
  border-radius: 10px;
  padding: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
.uros-attach-local-preview-thumb {
  height: 78px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(214,171,74,0.12);
  display: grid;
  place-items: center;
  color: #f0c75e;
  font-weight: 700;
  overflow: hidden;
}
.uros-attach-local-preview-fileicon {
  font-size: 11px;
  letter-spacing: .08em;
}
.uros-attach-local-preview-name {
  margin-top: 8px;
  font-size: 12px;
  color: #f1ead8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uros-attach-local-preview-size {
  font-size: 11px;
  color: #b7b0a1;
}

/* ---------- Spoiler post rendering (frontend) ---------- */
.post_body details.uros-spoiler,
.post_content details.uros-spoiler,
.quick_reply details.uros-spoiler,
.sceditor-container details.uros-spoiler {
  border: 1px solid rgba(214,171,74,0.20);
  border-radius: 10px;
  background: rgba(214,171,74,0.04);
  margin: 10px 0;
  overflow: hidden;
}

.post_body details.uros-spoiler > summary,
.post_content details.uros-spoiler > summary {
  cursor: pointer;
  padding: 10px 12px;
  color: #efc963;
  font-weight: 700;
  background: rgba(255,255,255,0.02);
  list-style: none;
}
.post_body details.uros-spoiler > summary::-webkit-details-marker,
.post_content details.uros-spoiler > summary::-webkit-details-marker {
  display: none;
}
.post_body .uros-spoiler-body,
.post_content .uros-spoiler-body {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(214,171,74,0.12);
}

/* Optional: hide any orphaned disabled-smilies labels if present */
body.uros-posting-page label[for*="disablesmilies"],
body.uros-posting-page input[name="disablesmilies"] {
  display: none !important;
}


/* ===== UROS Editor/Page final overrides v5 ===== */
body.uros-posting-page .thead,
body.uros-posting-page .tcat { background:#111111 !important; background-image:none !important; }
body.uros-posting-page .tborder { border-radius:16px !important; box-shadow:0 12px 26px rgba(0,0,0,.32) !important; overflow:hidden !important; }
body.uros-posting-page .sceditor-container { background:#111111 !important; border-radius:16px !important; }
body.uros-posting-page .sceditor-toolbar { background:#111111 !important; background-image:none !important; }

