/* ======================================================
   LEGACY CLEAN - GameCP global component polish
   Styles the legacy phpBB-style table classes (thead, alt1,
   alt2, tborder, spacer, header) used by most pages so they
   match the modern light-clean theme. Loaded after
   light-clean.css so it wins the cascade.
   ====================================================== */

/* ---------- .tborder tables (legacy wrapped tables) ---------- */
table.tborder {
    width: 100%;
    background: #ffffff !important;
    border: 1px solid #e3e8ef !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 4px rgba(20, 40, 80, 0.06) !important;
    border-spacing: 0 !important;
    border-collapse: separate !important;
    margin-bottom: 1rem !important;
}

/* ---------- Header cells (.thead / th) ---------- */
td.thead,
th.thead,
thead td.thead,
tr td.thead,
tr th.thead,
.table thead td.thead,
.table > thead > tr > td.thead,
.table > thead > tr > th.thead {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    background-image: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    background-color: #1e293b !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35) !important;
    padding: 10px 12px !important;
    border: none !important;
    vertical-align: middle !important;
}
td.thead a,
th.thead a,
td.thead b,
th.thead b,
td.thead strong {
    color: #ffffff !important;
    font-weight: 700 !important;
}
td.thead a:hover { color: #eaf1ff !important; text-decoration: underline !important; }

/* ---------- Alternative row cells (form label/value pairs) ---------- */
td.alt1,
th.alt1,
.table > tbody > tr > td.alt1 {
    background-color: #f7f9fc !important;
    color: #2c3e50 !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #eef1f5 !important;
    vertical-align: top !important;
    font-size: 14px !important;
}
td.alt1 strong,
th.alt1 strong,
td.alt1 b,
th.alt1 b {
    color: #1f2d3d !important;
}
td.alt1 small {
    color: #7f8c9b !important;
    font-weight: 500 !important;
}

td.alt2,
th.alt2,
.table > tbody > tr > td.alt2 {
    background-color: #ffffff !important;
    color: #2c3e50 !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #eef1f5 !important;
    vertical-align: top !important;
    font-size: 14px !important;
}
td.alt2 strong,
th.alt2 strong,
td.alt2 b,
th.alt2 b {
    color: #1f2d3d !important;
}

/* Alternate rows when used in a data table (not label/value) */
table.tborder tr:nth-child(odd) td.alt2,
.table > tbody > tr:nth-child(odd) > td.alt2 {
    background-color: #fafbfd !important;
}
tr:hover > td.alt1,
tr:hover > td.alt2 {
    background-color: #f0f4ff !important;
}

/* ---------- .header row (rare) ---------- */
tr.header td {
    background: #eaf1ff !important;
    color: #1f2d3d !important;
    font-weight: 700 !important;
    padding: 8px 12px !important;
    border-bottom: 2px solid #d3e1ff !important;
}

/* ---------- .spacer row ---------- */
tr.spacer td {
    background: transparent !important;
    border: none !important;
    padding: 4px !important;
    height: 8px !important;
    font-size: 1px !important;
    line-height: 1px !important;
}

/* ---------- Links inside legacy cells ---------- */
td.alt1 a,
td.alt2 a,
td.thead a {
    font-weight: 600 !important;
}

/* ---------- Ensure legacy cells don't fight the table ---------- */
td.alt1, td.alt2, td.thead, td.spacer { text-align: left !important; }
td[align="center"], td[align=center] { text-align: center !important; }
td[align="right"], td[align=right] { text-align: right !important; }
