/* NationDons — Dark Mafia Theme, Enhanced */

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

body {
    background-color: #141416;
    background-image:
        repeating-linear-gradient(
            -45deg,
            transparent, transparent 18px,
            rgba(255,200,50,0.010) 18px, rgba(255,200,50,0.010) 19px
        ),
        repeating-linear-gradient(
            45deg,
            transparent, transparent 18px,
            rgba(255,200,50,0.007) 18px, rgba(255,200,50,0.007) 19px
        ),
        repeating-linear-gradient(
            0deg,
            transparent, transparent 39px,
            rgba(255,255,255,0.022) 39px, rgba(255,255,255,0.022) 40px
        ),
        repeating-linear-gradient(
            90deg,
            transparent, transparent 39px,
            rgba(255,255,255,0.022) 39px, rgba(255,255,255,0.022) 40px
        ),
        radial-gradient(ellipse at 50% 30%, #1e1e24 0%, #0e0e12 100%);
    color: #d8d8d8;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 10px;
    overflow-x: hidden;
}

a { color: #b0b0b8; text-decoration: none; }
a:hover { color: #f0c040; }

/* ── Layout ── */
#wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    gap: 0;
}

#left-nav {
    width: 170px;
    min-width: 170px;
    background: linear-gradient(180deg, #1a1b22 0%, #15161c 100%);
    border-right: 1px solid #2e303a;
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    flex-shrink: 0;
}

#main-content {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    font-size: 8.5px;
}

#right-stats {
    width: 200px;
    min-width: 200px;
    background: linear-gradient(180deg, #1a1b22 0%, #15161c 100%);
    border-left: 1px solid #2e303a;
    padding: 10px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

/* ── Panel / box ── */
.panel {
    background: linear-gradient(160deg, #1c1d24 0%, #17181f 100%);
    border: 1px solid #30313e;
    margin-bottom: 6px;
}
.panel-title {
    background: linear-gradient(to bottom, #26273200, #1e1f28);
    background: #20212c;
    border-bottom: 1px solid #35364a;
    color: #c8a840;
    font-size: 8px;
    font-weight: bold;
    padding: 4px 8px;
    text-align: center;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.panel-body { padding: 6px 8px; }
#left-nav .panel { margin-bottom: 0; border: none; background: transparent; }
#left-nav .panel-title {
    background: linear-gradient(to bottom, #22232e, #1a1b24);
    border-bottom: 1px solid #2e303a;
    font-size: 9px;
    padding: 2px 4px;
    letter-spacing: 0.5px;
    color: #c8a840;
}

/* ── Nav menu ── */
.nav-section { margin-bottom: 0; }
.nav-heading {
    background: linear-gradient(to bottom, #28292e, #222228);
    border-top: 1px solid #30313c;
    border-bottom: 1px solid #30313c;
    color: #c8a840;
    font-size: 7px;
    font-weight: bold;
    letter-spacing: 0.5px;
    padding: 3px 6px;
    line-height: 1.1;
    text-transform: uppercase;
}
.nav-link {
    display: block;
    padding: 1px 4px 1px 10px;
    color: #9898a8;
    font-size: 9px;
    line-height: 1.2;
    border-left: 2px solid transparent;
    transition: all 0.1s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-link:hover {
    color: #f0e060;
    background-color: #22242e;
    border-left-color: #c8a840;
}
.nav-link.new { color: #66ee88; font-weight: bold; }
.nav-badge { color: #55ee66; font-weight: bold; }

/* ── Player stats panel ── */
.stat-row {
    border-bottom: 1px solid #252630;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.stat-label {
    font-size: 8px;
    color: #66677a;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.stat-value {
    color: #e2e2e2;
    font-size: 8.5px;
    font-weight: bold;
    text-align: right;
}

/* ── Rank progress bar ── */
.rank-bar-outer {
    background: #111114;
    border: 1px solid #303040;
    height: 8px;
    border-radius: 3px;
    overflow: hidden;
    margin: 3px 0;
}
.rank-bar-inner {
    background: linear-gradient(to right, #2a6a2a, #55cc55);
    height: 100%;
    transition: width 0.3s;
}

/* ── Tables ── */
table.game-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8.5px;
}
table.game-table th {
    background: #202130;
    border-bottom: 2px solid #3a3b55;
    color: #c8a840;
    font-size: 8px;
    font-weight: bold;
    padding: 5px 8px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
table.game-table td {
    background: #1c1d26;
    border-bottom: 1px solid #26273a;
    color: #cccccc;
    padding: 4px 8px;
}
table.game-table tr:hover td { background: #22243a; }
table.game-table tr.alt td { background: #1f2030; }

/* ── Forms ── */
.form-group { margin-bottom: 6px; }
.form-group label {
    display: block;
    color: #9090a4;
    font-size: 8.5px;
    margin-bottom: 3px;
}
input[type=text], input[type=password], input[type=email], input[type=number], textarea, select {
    background: #1c1d26;
    border: 1px solid #3a3b50;
    color: #dddde0;
    font-family: Verdana, sans-serif;
    font-size: 8.5px;
    padding: 4px 6px;
    width: 100%;
    transition: border-color 0.15s, background 0.15s;
}
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus,
input[type=number]:focus, textarea:focus, select:focus {
    border-color: #6060a8;
    background: #1e1f2c;
    outline: none;
}
input.short { width: 120px; }
input.tiny  { width: 80px; }

.btn {
    background: linear-gradient(to bottom, #2c2e3c, #222330);
    border: 1px solid #484a64;
    color: #c0c0d0;
    cursor: pointer;
    font-family: Verdana, sans-serif;
    font-size: 8.5px;
    padding: 4px 12px;
    border-radius: 2px;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.btn:hover {
    background: linear-gradient(to bottom, #383a52, #2c2e44);
    border-color: #6a6c90;
    color: #ffffff;
}
.btn-green {
    background: linear-gradient(to bottom, #1c3c1c, #162e16);
    border-color: #3a7a3a;
    color: #88dd88;
}
.btn-green:hover {
    background: linear-gradient(to bottom, #265026, #1e3e1e);
    border-color: #55aa55;
    color: #aaffaa;
}
.btn-red {
    background: linear-gradient(to bottom, #3c1c1c, #2e1616);
    border-color: #7a3a3a;
    color: #dd8888;
}
.btn-red:hover {
    background: linear-gradient(to bottom, #502626, #3c1e1e);
    border-color: #aa5555;
    color: #ffaaaa;
}

/* ── Messages ── */
.msg-success {
    background: #142214;
    border: 1px solid #3a7a3a;
    color: #88dd88;
    font-size: 8.5px;
    padding: 5px 10px;
    margin: 4px 0;
    border-radius: 3px;
}
.msg-error {
    background: #221414;
    border: 1px solid #7a3a3a;
    color: #dd8888;
    font-size: 8.5px;
    padding: 5px 10px;
    margin: 4px 0;
    border-radius: 3px;
}
.msg-info {
    background: #141e2e;
    border: 1px solid #3a527a;
    color: #88aadd;
    font-size: 8.5px;
    padding: 5px 10px;
    margin: 4px 0;
    border-radius: 3px;
}

/* ── Utility colours ── */
.avail { color: #55dd55; font-weight: bold; }
.wait  { color: #dd5555; font-weight: bold; }
.gold  { color: #f0c040; }
.red   { color: #dd5555; }
.green { color: #55dd55; }
.rare       { color: #ff9944; font-weight: bold; }
.very-rare  { color: #ff5566; font-weight: bold; }
.ultimate   { color: #cc55ff; font-weight: bold; }
.super-rare { color: #ffd700; font-weight: bold; text-shadow: 0 0 8px rgba(255,215,0,.5); }

/* ── Health bar ── */
.health-bar-outer {
    background: #111114;
    border: 1px solid #303040;
    height: 6px;
    border-radius: 2px;
    overflow: hidden;
    margin: 2px 0;
}
.health-bar-inner { height: 100%; border-radius: 2px; transition: width 0.3s; }
.health-bar-inner.high   { background: linear-gradient(to right, #33aa33, #55dd55); }
.health-bar-inner.medium { background: linear-gradient(to right, #aaaa22, #dddd44); }
.health-bar-inner.low    { background: linear-gradient(to right, #aa2222, #dd4444); }

/* ── Chat ── */
#chat-box {
    background: #111114;
    border: 1px solid #2e303a;
    height: 120px;
    overflow-y: auto;
    padding: 4px;
    font-size: 10px;
    margin-bottom: 4px;
}
#chat-box .chat-line { border-bottom: 1px solid #1e1f28; padding: 2px 0; }
#chat-input { width: calc(100% - 46px); }
#chat-send { width: 40px; }

/* ── Crimes ── */
.crime-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #26273a;
    background: #1c1d26;
    transition: background 0.15s;
}
.crime-row:last-child { border-bottom: none; }
.crime-row:hover { background: #22243a; }
.crime-unavail { opacity: 0.5; }
.crime-info { flex: 1; }
.crime-name {
    display: block;
    color: #e0e0e8;
    font-size: 8.5px;
    font-weight: bold;
    margin-bottom: 1px;
}
.crime-meta { font-size: 8px; color: #88889a; }
.crime-action { min-width: 100px; text-align: right; }
.crime-countdown { font-size: 10px; color: #dd5555; }

/* ── Jail / Hospital ── */
.jailbox {
    background: #1e1012;
    border: 1px solid #6a3333;
    color: #cc9999;
    padding: 12px;
    text-align: center;
    margin: 10px 0;
    border-radius: 3px;
}
.jailbox h3 { color: #ff7777; margin-bottom: 6px; }

/* ── Login page ── */
#login-wrapper {
    width: 380px;
    margin: 80px auto;
}
#login-logo {
    color: #e0e0e0;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}
#login-logo span { color: #dd2222; }

/* ── Page title ── */
.page-title {
    border-bottom: 2px solid #c8a840;
    color: #eeeeee;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    text-transform: uppercase;
}

/* ── Misc ── */
hr { border: 0; border-top: 1px solid #2e303a; margin: 8px 0; }
.center { text-align: center; }
.right  { text-align: right; }
.muted  { color: #66677a; font-size: 10px; }
.bold   { font-weight: bold; }
.nowrap { white-space: nowrap; }

/* ── New mail alert ── */
#new-mail-alert {
    display: none;
    position: fixed;
    top: 6px;
    right: 10px;
    background: #142214;
    border: 1px solid #3a7a3a;
    color: #88dd88;
    padding: 5px 12px;
    font-size: 11px;
    z-index: 1000;
    border-radius: 3px;
}
#new-mail-alert a { color: #aaffaa; font-weight: bold; }

