/*
 * bs3-compat.css - Bootstrap 3 Compatibility Layer for WebEngine 1.2.4
 * Maps BS3 classes used by WE modules to work within BS5 + CordobaMU dark/gold theme
 */

/* === Grid: BS3 col-xs-* (removed in BS4+) === */
.col-xs-1  { flex: 0 0 auto; width: 8.333333%; }
.col-xs-2  { flex: 0 0 auto; width: 16.666667%; }
.col-xs-3  { flex: 0 0 auto; width: 25%; }
.col-xs-4  { flex: 0 0 auto; width: 33.333333%; }
.col-xs-5  { flex: 0 0 auto; width: 41.666667%; }
.col-xs-6  { flex: 0 0 auto; width: 50%; }
.col-xs-7  { flex: 0 0 auto; width: 58.333333%; }
.col-xs-8  { flex: 0 0 auto; width: 66.666667%; }
.col-xs-9  { flex: 0 0 auto; width: 75%; }
.col-xs-10 { flex: 0 0 auto; width: 83.333333%; }
.col-xs-11 { flex: 0 0 auto; width: 91.666667%; }
.col-xs-12 { flex: 0 0 auto; width: 100%; }

/* === Panel → Card (BS3 panels used by all WE modules) === */
.panel {
    background: rgba(30, 20, 15, 0.95);
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    color: #f5f0e8;
}
.panel-default { /* same as .panel */ }
.panel-heading {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(139, 105, 20, 0.15));
    padding: 14px 18px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.3);
}
.panel-title {
    color: #ffcc00;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    font-family: 'Chakra Petch', sans-serif;
}
.panel-body {
    padding: 18px;
    color: #f5f0e8;
}
.panel-footer {
    padding: 12px 18px;
    border-top: 1px solid rgba(201, 162, 39, 0.2);
    background: rgba(20, 14, 10, 0.5);
    color: #d4c8b8;
    font-size: 12px;
}
.panel-sidebar {
    background: rgba(30, 20, 15, 0.95);
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.panel-sidebar > .panel-heading {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.25), rgba(139, 105, 20, 0.2));
    border-bottom: 2px solid #c9a227;
}

/* === BS3 Button sizes (removed in BS4+) === */
.btn-xs {
    padding: 2px 8px;
    font-size: 11px;
    line-height: 1.5;
    border-radius: 4px;
}
.btn-default {
    background: rgba(60, 45, 30, 0.8);
    border: 1px solid rgba(201, 162, 39, 0.35);
    color: #d4c8b8;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.btn-default:hover {
    background: rgba(201, 162, 39, 0.2);
    border-color: #c9a227;
    color: #ffcc00;
}

/* === BS3 utilities (removed in BS4+) === */
.pull-right { float: right !important; }
.pull-left { float: left !important; }
.center-block { display: block; margin-left: auto; margin-right: auto; }
.hidden { display: none !important; }
.text-center { text-align: center; }

/* === Form controls → dark theme === */
.form-control {
    background: rgba(40, 30, 22, 0.9);
    border: 1px solid rgba(201, 162, 39, 0.35);
    color: #f5f0e8;
    border-radius: 6px;
    padding: 8px 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-control:focus {
    border-color: #c9a227;
    box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.2);
    background: rgba(40, 30, 22, 0.95);
    color: #f5f0e8;
    outline: none;
}
.form-control::placeholder {
    color: rgba(212, 200, 184, 0.5);
}

/* === Table styling → dark theme === */
.table,
.table > :not(caption) > * > * {
    color: #d4c8b8;
    background-color: transparent;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255,255,255,0.02);
    --bs-table-hover-bg: rgba(201, 162, 39, 0.05);
    border-color: rgba(255,255,255,0.05);
}
.table > thead > tr > th,
.table > thead > tr > td {
    border-bottom: 2px solid rgba(201, 162, 39, 0.3);
    color: #ffcc00;
    font-weight: 700;
    background: rgba(201, 162, 39, 0.1);
}
.table > tbody > tr > td,
.table > tbody > tr > th {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 10px;
    vertical-align: middle;
}
.table > tbody > tr:hover > td {
    background: rgba(201, 162, 39, 0.05);
}
.table-condensed > thead > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > th,
.table-condensed > tbody > tr > td {
    padding: 5px 8px;
}
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(255,255,255,0.02);
}

/* === Alerts → dark theme === */
.alert {
    border-radius: 8px;
    border: 1px solid;
    padding: 12px 18px;
}
.alert-success {
    background: rgba(17, 80, 20, 0.3);
    border-color: rgba(73, 253, 166, 0.3);
    color: #49fda6;
}
.alert-danger, .alert-error {
    background: rgba(255, 68, 68, 0.15);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff6b6b;
}
.alert-warning {
    background: rgba(201, 162, 39, 0.15);
    border-color: rgba(201, 162, 39, 0.3);
    color: #ffcc00;
}
.alert-info {
    background: rgba(100, 150, 255, 0.15);
    border-color: rgba(100, 150, 255, 0.3);
    color: #8ab4ff;
}

/* === Buttons → dark gold theme === */
.btn-primary {
    background: linear-gradient(135deg, #c9a227, #8b6914);
    border: 1px solid #c9a227;
    color: #fff;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: linear-gradient(135deg, #d4af37, #a07a1a);
    border-color: #ffcc00;
    color: #fff;
    box-shadow: 0 0 15px rgba(201, 162, 39, 0.3);
}
.btn-success {
    background: linear-gradient(135deg, rgba(17, 80, 20, 0.8), rgba(17, 80, 20, 0.6));
    border: 1px solid rgba(73, 253, 166, 0.3);
    color: #49fda6;
    border-radius: 6px;
}
.btn-success:hover {
    background: linear-gradient(135deg, rgba(17, 80, 20, 0.95), rgba(17, 80, 20, 0.8));
    border-color: #49fda6;
}
.btn-danger {
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid rgba(255, 68, 68, 0.4);
    color: #ff6b6b;
    border-radius: 6px;
}
.btn-danger:hover {
    background: rgba(255, 68, 68, 0.35);
    border-color: #ff4444;
}

/* === Well → dark panel (BS3 .well removed in BS4) === */
.well {
    background: rgba(30, 20, 15, 0.7);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 8px;
    padding: 18px;
    color: #d4c8b8;
}

/* === Label/Badge (BS3 used .label, BS5 uses .badge) === */
.label {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}
.label-default { background: rgba(60, 45, 30, 0.8); color: #d4c8b8; }
.label-primary { background: #c9a227; color: #fff; }
.label-success { background: rgba(17, 80, 20, 0.6); color: #49fda6; }
.label-danger  { background: rgba(255, 68, 68, 0.3); color: #ff6b6b; }
.label-warning { background: rgba(201, 162, 39, 0.3); color: #ffcc00; }
.label-info    { background: rgba(100, 150, 255, 0.2); color: #8ab4ff; }

/* === Input group (BS3 structure compatibility) === */
.input-group-addon {
    background: rgba(40, 30, 22, 0.9);
    border: 1px solid rgba(201, 162, 39, 0.35);
    color: #d4c8b8;
    padding: 6px 12px;
}

/* === Nav pills/tabs (used in rankings module) === */
.nav-pills > li > a {
    color: #d4c8b8;
    border-radius: 6px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}
.nav-pills > li > a:hover {
    background: rgba(201, 162, 39, 0.15);
    color: #ffcc00;
}
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover {
    background: linear-gradient(135deg, #c9a227, #8b6914);
    color: #fff;
}

/* === Page title (from WE default) === */
.page-title {
    color: #ffcc00;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Chakra Petch', sans-serif;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(201, 162, 39, 0.2);
}

/* ============================================
   RANKINGS PAGE - CordobaMU Old Design Restoration
   Matches the old site's dark/gold tabbed ranking layout
   ============================================ */

/* === Rankings page: enhanced page-title ===
   When page-title is directly followed by rankings_menu, style as module header.
   Uses :has() for modern browsers, with fallback via .rankings_menu margin. */
.page-title:has(+ .rankings_menu) {
    margin-bottom: 0;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(139, 105, 20, 0.15));
    border: 1px solid #c9a227;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 20px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-title:has(+ .rankings_menu)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffcc00, transparent);
}

/* === Rankings navigation menu (tab bar) === */
.rankings_menu {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    background: rgba(30, 20, 15, 0.95);
    border-left: 1px solid #c9a227;
    border-right: 1px solid #c9a227;
    padding: 15px 20px;
    margin-bottom: 0;
    justify-content: center;
}
.rankings_menu a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(201, 162, 39, 0.2);
    color: #a89880;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.rankings_menu a:hover {
    background: rgba(201, 162, 39, 0.1);
    color: #c9a227;
    border-color: rgba(201, 162, 39, 0.4);
}
.rankings_menu a.active {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.3), rgba(139, 105, 20, 0.3));
    border-color: #c9a227;
    color: #ffcc00;
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.15);
}

/* === Rankings table === */
.rankings-table {
    width: 100%;
    color: #d4c8b8;
    border-collapse: collapse;
    background: rgba(30, 20, 15, 0.95);
    border-left: 1px solid #c9a227;
    border-right: 1px solid #c9a227;
    border-bottom: 1px solid #c9a227;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

/* Header row */
.rankings-table tr:first-child td {
    color: #c9a227;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(201, 162, 39, 0.3);
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 16px;
    text-align: center;
}

/* Data rows */
.rankings-table tr td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    font-size: 13px;
    text-align: center;
    vertical-align: middle;
    transition: background 0.2s ease;
}
.rankings-table tr:not(:first-child):hover td {
    background: rgba(201, 162, 39, 0.08);
}

/* Top 3 row highlighting */
.rankings-table tr:nth-child(2) td {
    background: rgba(255, 215, 0, 0.08);
    border-left: 3px solid transparent;
}
.rankings-table tr:nth-child(2) td:first-child {
    border-left: 3px solid #ffd700;
}
.rankings-table tr:nth-child(3) td {
    background: rgba(192, 192, 192, 0.06);
}
.rankings-table tr:nth-child(3) td:first-child {
    border-left: 3px solid #c0c0c0;
}
.rankings-table tr:nth-child(4) td {
    background: rgba(205, 127, 50, 0.06);
}
.rankings-table tr:nth-child(4) td:first-child {
    border-left: 3px solid #cd7f32;
}

/* Place number styling */
.rankings-table-place {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    background: rgba(60, 60, 60, 0.5);
    color: #999;
}

/* Top 3 place badges */
.rankings-table tr:nth-child(2) .rankings-table-place {
    background: linear-gradient(135deg, #c9a227, #a08520);
    color: #000;
    font-size: 15px;
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.4);
}
.rankings-table tr:nth-child(3) .rankings-table-place {
    background: linear-gradient(135deg, #a8a8a8, #808080);
    color: #000;
    font-size: 15px;
    box-shadow: 0 0 8px rgba(168, 168, 168, 0.3);
}
.rankings-table tr:nth-child(4) .rankings-table-place {
    background: linear-gradient(135deg, #cd7f32, #a0622a);
    color: #000;
    font-size: 15px;
    box-shadow: 0 0 8px rgba(205, 127, 50, 0.3);
}

/* Player profile links in table */
.rankings-table a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.rankings-table a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Update time footer */
.rankings-update-time {
    font-size: 12px;
    color: rgba(212, 200, 184, 0.5);
    text-align: center;
    padding: 12px 20px;
    background: rgba(20, 14, 10, 0.8);
    border-left: 1px solid #c9a227;
    border-right: 1px solid #c9a227;
    border-bottom: 1px solid #c9a227;
    border-top: 1px solid rgba(201, 162, 39, 0.15);
    border-radius: 0 0 12px 12px;
    font-style: italic;
}
/* When update time follows the table, remove table's bottom radius */
.rankings-table:has(+ .rankings-update-time) {
    border-radius: 0;
    border-bottom: none;
}

/* === Class avatar images in rankings rows === */
.rankings-class-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(201, 162, 39, 0.4);
    box-shadow: 0 0 6px rgba(201, 162, 39, 0.3);
    vertical-align: middle;
    transition: all 0.3s ease;
}
.rankings-table tr:hover .rankings-class-image {
    border-color: #c9a227;
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

/* === Class filter bar === */
ul.rankings-class-filter,
.rankings-class-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 12px 20px;
    background: rgba(30, 20, 15, 0.95);
    border-left: 1px solid #c9a227;
    border-right: 1px solid #c9a227;
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}
.rankings-class-filter li {
    display: inline-block;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}
.rankings-class-filter li:hover {
    filter: none;
}
.rankings-class-filter-selection {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 72px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #a89880;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 4px;
    border-radius: 8px;
    border: 1px solid transparent;
}
.rankings-class-filter-selection:hover {
    color: #ffcc00;
    background: rgba(201, 162, 39, 0.1);
    border-color: rgba(201, 162, 39, 0.3);
}
.rankings-class-filter-selection img,
.rankings-class-filter-image {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(201, 162, 39, 0.3);
    margin-bottom: 4px;
    transition: all 0.3s ease;
    border: 2px solid rgba(201, 162, 39, 0.3);
}
.rankings-class-filter-selection:hover img,
.rankings-class-filter-selection:hover .rankings-class-filter-image {
    border-color: #c9a227;
    box-shadow: 0 0 12px rgba(201, 162, 39, 0.5);
    filter: brightness(120%);
}
.rankings-class-filter-grayscale {
    filter: grayscale(100%);
    opacity: 0.45;
}
.rankings-class-filter-grayscale:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* === DataTables integration for rankings === */
.rankings-table_wrapper,
.dataTables_wrapper {
    background: rgba(30, 20, 15, 0.95);
    border-left: 1px solid #c9a227;
    border-right: 1px solid #c9a227;
    border-bottom: 1px solid #c9a227;
    border-radius: 0 0 12px 12px;
    padding: 0 0 15px 0;
    overflow: hidden;
}
/* Remove double borders when DataTables wraps the table */
.dataTables_wrapper .rankings-table {
    border: none;
    border-radius: 0;
}

/* DataTables search bar */
.dataTables_wrapper .dataTables_filter {
    text-align: center !important;
    margin: 15px 0 10px 0 !important;
    float: none !important;
    padding: 0 20px;
}
.dataTables_wrapper .dataTables_filter label {
    color: #a89880;
    font-size: 13px;
    font-weight: 500;
}
.dataTables_wrapper .dataTables_filter input {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(201, 162, 39, 0.3) !important;
    color: #f5f0e8 !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
    margin-left: 8px;
    width: 200px;
    font-size: 13px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.dataTables_wrapper .dataTables_filter input:focus {
    outline: none !important;
    border-color: #c9a227 !important;
    box-shadow: 0 0 8px rgba(201, 162, 39, 0.25) !important;
}
.dataTables_wrapper .dataTables_filter input::placeholder {
    color: rgba(212, 200, 184, 0.4);
}

/* DataTables pagination */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 15px !important;
    text-align: center !important;
    padding: 0 20px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(201, 162, 39, 0.25) !important;
    color: #a89880 !important;
    padding: 6px 12px !important;
    margin: 0 3px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    font-size: 12px;
    font-weight: 500;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(201, 162, 39, 0.15) !important;
    border-color: #c9a227 !important;
    color: #ffcc00 !important;
    box-shadow: none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.4), rgba(139, 105, 20, 0.4)) !important;
    border-color: #c9a227 !important;
    color: #ffcc00 !important;
    font-weight: 700 !important;
    box-shadow: 0 0 8px rgba(201, 162, 39, 0.15) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    background: rgba(0, 0, 0, 0.2) !important;
}
/* Hide DataTables length selector (we use fixed pageLength) */
.dataTables_wrapper .dataTables_length {
    display: none !important;
}
/* Hide DataTables info text */
.dataTables_wrapper .dataTables_info {
    color: rgba(212, 200, 184, 0.4);
    font-size: 11px;
    text-align: center;
    padding: 8px 20px 0;
}

/* === Rankings responsive === */
@media (max-width: 768px) {
    .rankings_menu {
        padding: 10px 12px;
        gap: 4px;
    }
    .rankings_menu a {
        padding: 8px 14px;
        font-size: 11px;
    }
    .rankings-table tr td {
        padding: 8px 10px;
        font-size: 12px;
    }
    .rankings-table tr:first-child td {
        padding: 10px;
        font-size: 10px;
    }
    .rankings-class-image {
        width: 26px;
        height: 26px;
    }
    .rankings-class-filter {
        padding: 8px 10px;
    }
    .rankings-class-filter-selection {
        width: 56px;
        font-size: 9px;
    }
    .rankings-class-filter-selection img,
    .rankings-class-filter-image {
        width: 30px;
        height: 30px;
    }
    .rankings-table-place {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    .dataTables_wrapper .dataTables_filter input {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .rankings_menu a {
        padding: 6px 10px;
        font-size: 10px;
        letter-spacing: 0;
    }
    .rankings-class-filter-selection {
        width: 48px;
    }
    .rankings-class-filter-selection img,
    .rankings-class-filter-image {
        width: 24px;
        height: 24px;
    }
}

/* === My Account table (from WE default, themed) === */
.myaccount-table {
    background: rgba(30, 20, 15, 0.8);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 8px;
    overflow: hidden;
}
.myaccount-table tr td {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 12px 15px;
    color: #d4c8b8;
}
.myaccount-table tr td:first-child {
    color: #c9a227;
    font-weight: 600;
    width: 40%;
}
.myaccount-character-block {
    background: rgba(40, 30, 22, 0.9);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 8px;
    display: inline-block;
    margin: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.myaccount-character-block:hover {
    border-color: #c9a227;
    box-shadow: 0 0 15px rgba(201, 162, 39, 0.2);
}
.myaccount-character-block img {
    width: 100px;
    border-radius: 6px 6px 0 0;
}
.myaccount-character-block-level {
    background: rgba(0,0,0,0.7);
    color: #ffcc00;
    font-size: 10px;
    padding: 2px 6px;
    position: relative;
    margin-top: -20px;
}
.myaccount-character-name a {
    color: #f5f0e8;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
}
.myaccount-character-name a:hover {
    color: #ffcc00;
}

/* === Downloads panel (from WE default, themed) === */
.panel-downloads {
    background: rgba(30, 20, 15, 0.8);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 8px;
    padding: 18px;
    color: #d4c8b8;
}
.download-description {
    font-size: 12px;
    color: rgba(212, 200, 184, 0.6);
}

/* === General table UI (from WE default, themed) === */
.general-table-ui {
    background: rgba(30, 20, 15, 0.6);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 8px;
    padding: 10px;
    color: #d4c8b8;
}
.general-table-ui tr:first-child td {
    color: #ffcc00;
    font-weight: 700;
}
.general-table-ui tr:nth-child(2n+2) td {
    background: rgba(255,255,255,0.02);
}
.general-table-ui img {
    width: 50px;
    box-shadow: 0 0 5px rgba(201, 162, 39, 0.2);
    border-radius: 4px;
}

/* === Panel for add stats (from WE default, themed) === */
.panel-addstats {
    background: rgba(30, 20, 15, 0.8);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 8px;
    padding: 18px;
}
.panel-addstats .character-name {
    color: #ffcc00;
    font-size: 18px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* === General panel === */
.panel-general {
    background: rgba(30, 20, 15, 0.8);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 8px;
    color: #d4c8b8;
}

/* === Panel news (from WE default, themed) === */
.panel-news {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 30px;
    background: transparent;
}
.panel-news .panel-title {
    color: #ffcc00;
    font-size: 22px;
    font-weight: bold;
    font-family: 'Chakra Petch', sans-serif;
}
.panel-news .panel-body {
    color: #d4c8b8;
    padding: 15px 0;
}
.panel-news .panel-footer {
    background: transparent;
    border-top: 1px solid rgba(201, 162, 39, 0.15);
    font-style: italic;
    font-size: 11px;
    color: rgba(212, 200, 184, 0.5);
    padding: 8px 0;
}

/* === Online status indicators === */
.online-status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 5px;
}

/* === Castle Siege widget (from WE default, themed) === */
.castle-owner-widget {
    background: rgba(20, 14, 10, 0.95);
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.castle-owner-widget .panel-heading .panel-title {
    font-size: 22px;
    font-weight: bold;
}
.castle-owner-widget .panel-body span.alt {
    color: #cf7957;
    font-weight: bold;
}
.btn-castlewidget {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.3), rgba(139, 105, 20, 0.2));
    border: 1px solid #c9a227;
    color: #ffcc00;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    display: inline-block;
    transition: all 0.3s ease;
}
.btn-castlewidget:hover {
    background: rgba(201, 162, 39, 0.4);
    color: #fff;
}

/* === Castle Siege block (full page) === */
.castle-siege-block .castle-owner-panel {
    background: url('../img/castle_owner_bg.jpg') center center;
    background-size: cover;
    border-radius: 10px;
    padding: 30px;
    color: #fff;
}
.castle-siege-block .castle-owner-panel a {
    color: #ccc;
}
.castle-siege-block .castle-owner-panel a:hover {
    color: #fff;
}
.castle-siege-block .castle-owner-panel .castle-owner-name {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}
.castle-siege-block .castle-owner-panel h4 {
    color: #ffcc00;
}
.castle-siege-block #siegeTimer {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
}
.castle-siege-block #siegeTimer span {
    color: #aaa;
    font-size: 26px;
}

/* === Sidebar banners === */
.sidebar-banner {
    display: block;
    margin-bottom: 20px;
}
.sidebar-banner img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* === Online bar === */
.webengine-online-bar {
    width: 100%;
    height: 10px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.2);
}
.webengine-online-bar-progress {
    height: 100%;
    background: linear-gradient(90deg, #115014, #49fda6);
    border-radius: 5px;
    transition: width 2.5s ease-in-out;
}

/* === Language switcher === */
.webengine-language-switcher {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.webengine-language-switcher li a {
    color: #d4c8b8;
    font-size: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}
.webengine-language-switcher li a:hover {
    color: #ffcc00;
}

/* === Gens images === */
.rankings-gens-img {
    height: 30px;
}

/* === Module requirements text === */
.module-requirements {
    font-size: 12px;
    margin-top: 20px;
    color: rgba(212, 200, 184, 0.5);
}

/* === WebEngine powered link === */
.webengine-powered {
    color: rgba(212, 200, 184, 0.4);
    font-size: 11px;
}
.webengine-powered:hover {
    color: #c9a227;
}

/* === Profile cards (player + guild, from default themed) === */
.profiles_guild_card {
    background: #000 url('../img/profiles/guild.jpg') center center;
    background-size: cover;
    border-radius: 10px;
    padding: 40px;
    color: #fff;
}
.profiles_guild_card .guild_name {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 24px;
    color: #fff;
}
.profiles_guild_card .guild_members {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 24px;
    color: #fff;
}
.profiles_guild_card hr {
    border-top: 1px solid rgba(201, 162, 39, 0.3);
}
.profiles_player_card {
    border-radius: 10px;
    border: 1px solid rgba(201, 162, 39, 0.3);
    padding: 20px;
    background-size: cover;
    background-position: center;
    min-height: 250px;
}
.profiles_player_content {
    float: right;
    width: 50%;
    color: #fff;
}
.profiles_player_table .cname {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 24px;
    color: #fff;
    font-weight: bold;
}
.profiles_player_table .cclass {
    font-size: 11px;
    color: #eee;
}
.profiles_player_table .isoffline { color: #ff4444; }
.profiles_player_table .isonline { color: #49fda6; }

/* === Thumbnail === */
.thumbnail {
    background: rgba(30, 20, 15, 0.8);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 6px;
}
a.thumbnail:hover {
    border-color: #c9a227;
}

/* === Links global override === */
a {
    color: #c9a227;
    transition: color 0.3s ease;
}
a:hover, a:focus {
    color: #ffcc00;
    text-decoration: none;
}

/* === Generic text colors === */
.text-success { color: #49fda6 !important; }
.text-danger  { color: #ff6b6b !important; }
.text-warning { color: #ffcc00 !important; }
.text-info    { color: #8ab4ff !important; }
.text-muted   { color: rgba(212, 200, 184, 0.5) !important; }

/* === Pagination === */
.pagination > li > a {
    background: rgba(30, 20, 15, 0.8);
    border: 1px solid rgba(201, 162, 39, 0.25);
    color: #d4c8b8;
}
.pagination > li > a:hover {
    background: rgba(201, 162, 39, 0.15);
    border-color: #c9a227;
    color: #ffcc00;
}
.pagination > .active > a {
    background: linear-gradient(135deg, #c9a227, #8b6914);
    border-color: #c9a227;
    color: #fff;
}

/* === Modal → dark theme === */
.modal-content {
    background: rgba(30, 20, 15, 0.98);
    border: 1px solid rgba(201, 162, 39, 0.35);
    color: #f5f0e8;
}
.modal-header {
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}
.modal-header .modal-title {
    color: #ffcc00;
    font-family: 'Chakra Petch', sans-serif;
}
.modal-footer {
    border-top: 1px solid rgba(201, 162, 39, 0.2);
}
.modal-header .close,
.modal-header .btn-close {
    color: #d4c8b8;
    opacity: 0.7;
}

/* === HR → gold theme === */
hr {
    border-top: 1px solid rgba(201, 162, 39, 0.15);
}

/* === Selection color === */
::selection {
    background: rgba(201, 162, 39, 0.4);
    color: #fff;
}

/* === Scrollbar (WebKit) === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f0a08; }
::-webkit-scrollbar-thumb { background: #c9a227; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #d4af37; }

/* === UserCP panel (from default template, themed) === */
.panel-usercp {
    background: rgba(30, 20, 15, 0.95);
    background-size: cover;
    border-radius: 8px;
    overflow: hidden;
}
.panel-usercp ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.panel-usercp ul li {
    display: table;
    width: 100%;
    line-height: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.panel-usercp ul li a {
    color: #d4c8b8 !important;
    font-weight: 600;
    font-size: 13px;
    padding: 5px 10px;
    display: block;
    transition: all 0.3s ease;
}
.panel-usercp ul li a:hover {
    color: #ffcc00 !important;
    background: rgba(201, 162, 39, 0.1);
}
.panel-usercp ul li img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    opacity: 0.7;
}
