﻿.x3m-navbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    border-bottom: 1px solid rgba(255, 138, 31, 0.3);
    background: linear-gradient(180deg, rgba(37, 20, 12, 0.98), rgba(21, 11, 7, 0.96));
    box-shadow: var(--x3m-shadow);
}

.x3m-navbar .container {
    position: relative;
    border: 1px solid var(--x3m-border);
    border-radius: 14px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(180deg, rgba(56, 33, 20, 0.84), rgba(34, 20, 13, 0.88));
    box-shadow: var(--x3m-shadow-glow);
}

.x3m-navbar .container::before,
.x3m-navbar .container::after {
    content: "";
    position: absolute;
    top: 7px;
    bottom: 7px;
    width: 18px;
    pointer-events: none;
    opacity: 0.8;
}

.x3m-navbar .container::before {
    left: 8px;
    border-left: 2px solid rgba(255, 179, 71, 0.42);
    border-top: 2px solid rgba(255, 179, 71, 0.42);
    border-bottom: 2px solid rgba(255, 179, 71, 0.42);
    clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%, 0 0);
}

.x3m-navbar .container::after {
    right: 8px;
    border-right: 2px solid rgba(255, 179, 71, 0.42);
    border-top: 2px solid rgba(255, 179, 71, 0.42);
    border-bottom: 2px solid rgba(255, 179, 71, 0.42);
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%, 0 10%);
}

.x3m-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--x3m-text);
}

.x3m-brand-logo {
    height: 56px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 138, 31, 0.4));
}

.x3m-navbar .navbar-nav .nav-link {
    color: #f6c690;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.x3m-navbar .navbar-nav .nav-link:hover {
    color: #fff0d9;
    border-color: rgba(255, 138, 31, 0.35);
    background: rgba(255, 138, 31, 0.13);
}

.x3m-navbar .navbar-nav .nav-link.active {
    color: #fff6e8;
    border-color: rgba(255, 179, 71, 0.48);
    background: linear-gradient(180deg, rgba(255, 138, 31, 0.2), rgba(255, 138, 31, 0.08));
    box-shadow: inset 0 0 18px rgba(255, 179, 71, 0.1);
}

.x3m-navbar .navbar-toggler {
    border-color: rgba(255, 138, 31, 0.42);
}

.x3m-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,214,169,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.table-container,
.x3m-panel {
    position: relative;
    border: 1px solid var(--x3m-border);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(52, 31, 20, 0.95), rgba(39, 23, 15, 0.95));
    box-shadow: var(--x3m-shadow), inset 0 0 0 1px rgba(255, 179, 71, 0.08);
    overflow: hidden;
}

.table-container::before,
.table-container::after,
.x3m-panel::before,
.x3m-panel::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    pointer-events: none;
    z-index: 2;
    background:
        linear-gradient(135deg, rgba(255, 179, 71, 0.95) 0%, rgba(255, 179, 71, 0.18) 45%, transparent 45%),
        linear-gradient(135deg, rgba(255, 138, 31, 0.55), rgba(255, 138, 31, 0.1));
    box-shadow: 0 0 12px rgba(255, 138, 31, 0.26);
}

.table-container::before,
.x3m-panel::before {
    left: 0;
    top: 0;
    border-right: 1px solid rgba(255, 179, 71, 0.35);
    border-bottom: 1px solid rgba(255, 179, 71, 0.35);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.table-container::after,
.x3m-panel::after {
    right: 0;
    bottom: 0;
    border-left: 1px solid rgba(255, 179, 71, 0.35);
    border-top: 1px solid rgba(255, 179, 71, 0.35);
    clip-path: polygon(100% 100%, 100% 0, 0 100%);
}

.table-container > *,
.x3m-panel > * {
    position: relative;
    z-index: 1;
}

.table-header,
.x3m-panel-title {
    background: linear-gradient(180deg, rgba(39, 24, 16, 0.9), rgba(28, 17, 11, 0.95));
    border-bottom: 1px solid rgba(255, 138, 31, 0.28);
    padding: 16px 14px;
    position: relative;
}

.table-header::after,
.x3m-panel-title::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 179, 71, 0.6), transparent);
}

.table-footer {
    background: linear-gradient(180deg, rgba(30, 18, 12, 0.95), rgba(24, 14, 10, 0.98));
    border-top: 1px solid rgba(255, 138, 31, 0.2);
}

.section-title {
    border-left: 4px solid var(--x3m-accent);
    color: #ffd4a3;
    letter-spacing: 0.02em;
    margin-bottom: 0;
    padding-left: 12px;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--x3m-text);
    --bs-table-striped-bg: rgba(255, 138, 31, 0.08);
    --bs-table-striped-color: var(--x3m-text);
    --bs-table-active-bg: rgba(255, 179, 71, 0.18);
    --bs-table-active-color: #fff6e9;
    --bs-table-hover-bg: rgba(255, 138, 31, 0.12);
    --bs-table-hover-color: #fff6e9;
    --bs-border-color: rgba(255, 179, 71, 0.17);
}

.table thead th {
    background: rgba(31, 18, 12, 0.88);
    color: #ffcd96;
    border-bottom-width: 1px;
}

.table-group-divider {
    border-top-color: rgba(255, 179, 71, 0.24);
}

.bg-light,
.bg-white,
.bg-body,
.card-body.bg-light {
    background: rgba(34, 21, 14, 0.8) !important;
    color: var(--x3m-text);
}

.text-bg-primary,
.text-bg-success,
.text-bg-danger,
.text-bg-info {
    color: #ffe8c9 !important;
    background-color: rgba(72, 40, 24, 0.85) !important;
    border: 1px solid rgba(255, 179, 71, 0.24);
}

.players-table,
.full-players-table {
    background-color: transparent;
}

.card {
    position: relative;
    background: linear-gradient(180deg, rgba(53, 32, 21, 0.96), rgba(40, 24, 16, 0.96));
    border: 1px solid rgba(255, 138, 31, 0.24);
    color: var(--x3m-text);
}

.card::before,
.card::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 2;
    border-color: rgba(255, 179, 71, 0.45);
}

.card::before {
    top: 6px;
    left: 6px;
    border-top: 1px solid;
    border-left: 1px solid;
}

.card::after {
    right: 6px;
    bottom: 6px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.card-header {
    border-bottom: 1px solid rgba(255, 138, 31, 0.25);
}

.card-footer,
.list-group-item {
    border-color: rgba(255, 179, 71, 0.2);
    background-color: rgba(38, 22, 15, 0.7);
    color: var(--x3m-text);
}

.form-control,
.form-select,
.input-group-text {
    color: #ffe4bf;
    background: rgba(24, 13, 9, 0.92);
    border-color: rgba(255, 138, 31, 0.3);
}

input[type="number"].form-control,
input[type="number"].form-control.form-control-sm,
.input-group-sm > input[type="number"].form-control {
    color: #ffe4bf;
    background: rgba(24, 13, 9, 0.92) !important;
    border-color: rgba(255, 138, 31, 0.3);
}

.form-control:focus,
.form-select:focus {
    color: #fff3e3;
    background: rgba(26, 15, 10, 0.96);
    border-color: rgba(255, 179, 71, 0.58);
    box-shadow: 0 0 0 0.2rem rgba(255, 138, 31, 0.2);
}

.form-control::placeholder {
    color: #b8814f;
}

.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
    color: #dfb786;
    background: rgba(30, 17, 11, 0.92);
    border-color: rgba(255, 138, 31, 0.26);
    opacity: 1;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.btn-primary,
.btn-outline-primary:hover {
    color: #2a160c;
    border-color: #ff9c35;
    background: linear-gradient(180deg, #ffb347 0%, #ff8a1f 100%);
}

.btn-outline-primary {
    color: #ffbb66;
    border-color: rgba(255, 179, 71, 0.46);
    background: rgba(255, 138, 31, 0.06);
}

.btn-outline-secondary,
.btn-secondary {
    color: #f3c992;
    border-color: rgba(255, 138, 31, 0.35);
    background: rgba(255, 138, 31, 0.08);
}

.btn-success {
    border-color: #2ebd67;
    background: linear-gradient(180deg, #34d47a, #229e58);
}

.btn-danger {
    border-color: #d03f3f;
    background: linear-gradient(180deg, #ff6666, #ce3f3f);
}

.btn-info,
.btn-warning {
    color: #2a160c;
}

.page-link {
    color: #ffd09b;
    border-color: rgba(255, 138, 31, 0.28);
    background-color: rgba(30, 18, 12, 0.86);
}

.page-link:hover {
    color: #fff3df;
    background-color: rgba(255, 138, 31, 0.26);
    border-color: rgba(255, 179, 71, 0.38);
}

.page-item.active .page-link {
    color: #221108;
    border-color: #ffb347;
    background: linear-gradient(180deg, #ffbe63, #ff922b);
}

.page-item.disabled .page-link {
    color: #8c643f;
    background-color: rgba(24, 14, 10, 0.85);
    border-color: rgba(255, 138, 31, 0.15);
}

.player-actions {
    background: rgba(25, 15, 11, 0.95);
    border-top: 1px solid rgba(255, 179, 71, 0.24);
}

.clickable-row:hover {
    background-color: rgba(255, 138, 31, 0.12) !important;
}

.players-container::-webkit-scrollbar-track {
    background: #2e1b12;
}

.players-container::-webkit-scrollbar-thumb {
    background: #87512b;
}

.players-container::-webkit-scrollbar-thumb:hover {
    background: #a66535;
}

.server-online {
    color: var(--x3m-success);
}

.server-offline {
    color: var(--x3m-danger);
}

.badge {
    border: 1px solid rgba(255, 179, 71, 0.35);
}

@media (max-width: 991.98px) {
    .x3m-brand-logo {
        height: 44px;
    }
}

/* Navbar refinement pass (layout-image style) */
.x3m-navbar {
    padding-top: 4px;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 138, 31, 0.35);
    background:
        radial-gradient(circle at 50% -20%, rgba(255, 138, 31, 0.22), transparent 55%),
        linear-gradient(180deg, rgba(37, 20, 12, 0.98), rgba(21, 11, 7, 0.96));
}

.x3m-navbar .x3m-navbar-shell {
    border: 1px solid #6f3f23;
    border-radius: 8px;
    padding: 0.3rem 0.75rem;
    background:
        linear-gradient(180deg, rgba(75, 43, 26, 0.9), rgba(40, 23, 15, 0.95)),
        repeating-linear-gradient(90deg, rgba(255, 138, 31, 0.04) 0 2px, transparent 2px 12px);
    box-shadow: var(--x3m-shadow-glow), inset 0 0 0 1px rgba(255, 179, 71, 0.12);
}

.x3m-navbar .x3m-brand {
    padding-right: 0.75rem;
    margin-right: 0.25rem;
    border-right: 1px solid rgba(255, 179, 71, 0.26);
}

.x3m-navbar .x3m-brand-logo {
    height: 66px;
    border-radius: 4px;
    filter: drop-shadow(0 0 10px rgba(255, 138, 31, 0.45));
}

.x3m-navbar .navbar-nav .nav-link {
    border-radius: 6px;
    padding: 0.4rem 0.66rem;
}

.x3m-navbar .navbar-nav .nav-link.active {
    border-color: rgba(255, 179, 71, 0.5);
    background: linear-gradient(180deg, rgba(255, 138, 31, 0.28), rgba(255, 138, 31, 0.08));
}

.x3m-auth-btn {
    color: #ffe2be;
    border: 1px solid rgba(255, 179, 71, 0.55);
    background: linear-gradient(180deg, rgba(255, 163, 71, 0.24), rgba(255, 138, 31, 0.18));
}

.x3m-auth-btn:hover {
    color: #fff3df;
    border-color: rgba(255, 179, 71, 0.8);
    background: linear-gradient(180deg, rgba(255, 186, 106, 0.34), rgba(255, 150, 52, 0.26));
}

@media (max-width: 991.98px) {
    .x3m-navbar .x3m-brand-logo {
        height: 50px;
    }

    .x3m-navbar .x3m-brand {
        margin-right: 0;
        border-right: 0;
    }
}

