/* ──────────────────────────────────────────────
   Variant - Panel CSS
   Dark theme, stile gaming/minecraft
────────────────────────────────────────────── */

:root {
    --bg:        #0f1117;
    --bg2:       #161b27;
    --bg3:       #1e2535;
    --border:    #2a3148;
    --accent:    #5b8dee;
    --accent2:   #7c5cbf;
    --text:      #c9d1e0;
    --text-dim:  #6b7a99;
    --red:       #e05c6b;
    --green:     #50c878;
    --yellow:    #f0c040;
    --orange:    #e08040;
    --teal:      #40c0b0;
    --font:      'Courier New', Courier, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAVBAR ── */
.navbar {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: .6rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-brand {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent);
    white-space: nowrap;
}
.nav-links { display: flex; gap: 1rem; flex: 1; }
.nav-links a {
    color: var(--text-dim);
    padding: .3rem .6rem;
    border-radius: 4px;
    transition: background .15s;
}
.nav-links a:hover,
.nav-links a.active {
    background: var(--bg3);
    color: var(--text);
    text-decoration: none;
}
.nav-user { display: flex; align-items: center; gap: .7rem; }
.username  { color: var(--text-dim); }
.btn-logout {
    background: var(--bg3);
    color: var(--red);
    padding: .3rem .7rem;
    border-radius: 4px;
    font-size: .85rem;
}
.btn-logout:hover { background: var(--red); color: #fff; text-decoration: none; }

/* ── CONTAINER ── */
.container { max-width: 1300px; margin: 0 auto; padding: 1.5rem; }

/* ── PAGE HEADER ── */
.page-header { margin-bottom: 1.5rem; }
.page-header h2 { font-size: 1.4rem; color: var(--text); }
.page-sub { color: var(--text-dim); margin-top: .3rem; font-size: .9rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin: 1.5rem 0 .8rem; }
.section-header h3 { font-size: 1rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; }

/* ── ALERTS ── */
.alert {
    padding: .7rem 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: .9rem;
}
.alert-success { background: rgba(80,200,120,.15); border: 1px solid var(--green); color: var(--green); }
.alert-error   { background: rgba(224,92,107,.15);  border: 1px solid var(--red);   color: var(--red); }

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    padding: .4rem .9rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--bg3);
    color: var(--text);
    cursor: pointer;
    font-family: var(--font);
    font-size: .85rem;
    transition: background .15s;
}
.btn:hover { background: var(--border); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #4070cc; }
.btn-danger  { background: var(--red);    border-color: var(--red);   color: #fff; }
.btn-danger:hover { background: #c0404f; }
.btn-sm { padding: .25rem .6rem; font-size: .8rem; }
.btn-full { width: 100%; padding: .6rem; }

/* ── BADGES ── */
.badge {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 3px;
    font-size: .75rem;
    font-weight: bold;
    letter-spacing: .05em;
}
.badge-builder{ background: rgba(180,120,255,.2);  color: #b47aff; }
.badge-helper { background: rgba(80,200,120,.2);  color: var(--green); }
.badge-mod    { background: rgba(91,141,238,.2);  color: var(--accent); }
.badge-admin  { background: rgba(224,128,64,.2);  color: var(--orange); }
.badge-owner  { background: rgba(224,92,107,.2);  color: var(--red); }

.badge-type {
    display: inline-block;
    padding: .1rem .45rem;
    border-radius: 3px;
    font-size: .75rem;
    font-weight: bold;
    white-space: nowrap;
}
.type-block-break     { background: rgba(224,92,107,.2); color: var(--red); }
.type-block-place     { background: rgba(80,200,120,.2); color: var(--green); }
.type-player-join     { background: rgba(80,192,176,.2); color: var(--teal); }
.type-player-leave    { background: rgba(107,122,153,.2); color: var(--text-dim); }
.type-player-death    { background: rgba(160,80,160,.2); color: #c060c0; }
.type-chat            { background: rgba(91,141,238,.2); color: var(--accent); }
.type-command         { background: rgba(240,192,64,.2); color: var(--yellow); }
.type-inventory       { background: rgba(224,128,64,.2); color: var(--orange); }
.type-private-message { background: rgba(224,92,107,.3); color: var(--red); border: 1px solid var(--red); }

/* ── STATS GRID ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    transition: border-color .15s, transform .1s;
    color: var(--text);
    text-decoration: none;
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.stat-icon { font-size: 1.8rem; }
.stat-count { font-size: 1.5rem; font-weight: bold; color: var(--text); }
.stat-label { font-size: .8rem; color: var(--text-dim); }

/* ── TABLES ── */
.log-table-wrap { overflow-x: auto; }
.log-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.log-table th {
    background: var(--bg3);
    padding: .6rem .9rem;
    text-align: left;
    color: var(--text-dim);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 1px solid var(--border);
}
.log-table td {
    padding: .5rem .9rem;
    border-bottom: 1px solid rgba(42,49,72,.5);
    font-size: .85rem;
    vertical-align: middle;
}
.log-table tr:last-child td { border-bottom: none; }
.log-table tr:hover td { background: rgba(30,37,53,.5); }
.log-id   { color: var(--text-dim); width: 60px; }
.log-time { color: var(--text-dim); white-space: nowrap; }
.log-player { font-weight: bold; color: var(--accent); }
.log-detail { color: var(--text); max-width: 500px; word-break: break-word; }
.log-detail code { background: var(--bg3); padding: .1rem .3rem; border-radius: 3px; font-size: .8rem; }
.sensitive { color: var(--red); }
.empty { text-align: center; color: var(--text-dim); padding: 2rem !important; }
.text-center { text-align: center; }
.check { color: var(--green); font-size: 1.1rem; }
.cross { color: var(--red); font-size: 1.1rem; }
.text-muted { color: var(--text-dim); }

/* ── FILTER FORM ── */
.filter-form {
    display: flex;
    gap: .7rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.filter-form select,
.filter-form input {
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: .4rem .7rem;
    border-radius: 4px;
    font-family: var(--font);
    font-size: .85rem;
}
.filter-form select { min-width: 180px; }
.filter-form input  { min-width: 200px; flex: 1; }

/* ── CARD ── */
.card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.5rem;
}
.card h3 { margin-bottom: 1rem; color: var(--text-dim); font-size: .95rem; text-transform: uppercase; }

/* ── FORMS ── */
.form-group { margin-bottom: .8rem; }
.form-group label { display: block; color: var(--text-dim); font-size: .82rem; margin-bottom: .3rem; }
.form-group input,
.form-group select {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text);
    padding: .5rem .8rem;
    border-radius: 4px;
    font-family: var(--font);
    font-size: .9rem;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}
.form-inline { display: flex; gap: .8rem; align-items: flex-end; flex-wrap: wrap; }
.form-inline .form-group { margin-bottom: 0; }
.inline-form { display: inline-flex; align-items: center; gap: .4rem; }
.select-sm {
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text);
    padding: .25rem .5rem;
    border-radius: 4px;
    font-family: var(--font);
    font-size: .8rem;
}
.actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

/* ── PAGINATION ── */
.pagination {
    display: flex;
    gap: .7rem;
    align-items: center;
    margin-top: 1rem;
    color: var(--text-dim);
    font-size: .9rem;
}

/* ── LOGIN ── */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
}
.login-logo { font-size: 3rem; text-align: center; color: var(--accent); margin-bottom: .5rem; }
.login-box h1 { text-align: center; font-size: 1.4rem; margin-bottom: .3rem; }
.login-sub { text-align: center; color: var(--text-dim); margin-bottom: 1.5rem; font-size: .9rem; }
