:root {
    --app-bg: #070b12;
    --app-bg-2: #0b1220;
    --app-panel: rgba(15, 23, 42, 0.78);
    --app-panel-2: rgba(17, 24, 39, 0.92);
    --app-border: rgba(148, 163, 184, 0.16);
    --app-text: #e5e7eb;
    --app-muted: #94a3b8;
    --app-accent: #1d4ed8;
    --app-accent-soft: rgba(29, 78, 216, 0.18);
}

html, body {
    min-height: 100%;
	height: 100%;
}

body {
    background:
        radial-gradient(circle at 10% 0%, rgba(30, 64, 175, 0.18), transparent 35%),
        radial-gradient(circle at 90% 10%, rgba(15, 23, 42, 0.9), transparent 45%),
        linear-gradient(180deg, #06080d 0%, #070b12 35%, #040507 100%);
    color: var(--app-text);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.app-navbar {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.95), rgba(6, 12, 24, 0.92));
    backdrop-filter: blur(10px);
}

.logo-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(180deg, #0f172a, #111827);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: inset 0 0 0 1px rgba(30, 64, 175, 0.18);
}

.logo-text {
    font-weight: 700;
    color: #dbeafe;
    letter-spacing: 0.02em;
}

.brand-text {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.app-dropdown {
    background-color: #0b1220;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.dropdown-item {
    border-radius: 8px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--app-accent-soft);
}

/* Panels */
.panel-card {
    background: linear-gradient(180deg, var(--app-panel), var(--app-panel-2));
    border: 1px solid var(--app-border);
    border-radius: 16px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.panel-header {
    padding: 1rem 1rem 0.75rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.18), rgba(0, 0, 0, 0));
}

.panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.02em;
}

.panel-body {
    padding: 0.75rem 1rem 1rem 1rem;
}

/* Case list items */
.case-item {
    display: block;
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    color: var(--app-text);
    text-decoration: none;
}

.case-item:last-child {
    border-bottom: 0;
}

.case-item:hover {
    background: rgba(148, 163, 184, 0.04);
    border-radius: 10px;
}

.case-meta {
    color: var(--app-muted);
    font-size: 0.85rem;
}

.case-title {
    font-weight: 500;
}

/* News cards */
.news-card {
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 14px;
    padding: 0.9rem 1rem;
}

.news-title {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.news-meta {
    color: var(--app-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.news-body {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.45;
}

/* Footer */
.app-footer {
    background: rgba(2, 6, 23, 0.65);
}

main .row {
    flex: 1 1 auto;
}
/* Left nav visibility / separation */
.app-nav-left {
    gap: 0.35rem;
    align-items: center;
}

.app-nav-segment {
    position: relative;
    padding-right: 0.25rem;
    margin-right: 0.25rem;
}

.app-nav-segment:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -0.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: linear-gradient(
        to bottom,
        rgba(148, 163, 184, 0),
        rgba(148, 163, 184, 0.28),
        rgba(148, 163, 184, 0)
    );
}

.app-nav-link-pill {
    border-radius: 10px;
    padding: 0.45rem 0.8rem !important;
    color: #dbe7ff !important;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: all 0.15s ease-in-out;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.app-nav-link-pill:hover,
.app-nav-link-pill:focus,
.nav-item.dropdown.show .app-nav-link-pill {
    background: rgba(29, 78, 216, 0.16);
    border-color: rgba(59, 130, 246, 0.35);
    color: #eff6ff !important;
    box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.12) inset;
}

/* Discord login button */
.btn-discord {
    color: #ffffff;
    background: linear-gradient(180deg, #5865f2, #4752c4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.18);
}

.btn-discord:hover,
.btn-discord:focus {
    color: #ffffff;
    background: linear-gradient(180deg, #6672f6, #4e5ad4);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Account button (logged in state) */
.btn-account {
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 10px;
    padding: 0.45rem 0.8rem;
    font-weight: 500;
}

.btn-account:hover,
.btn-account:focus {
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(148, 163, 184, 0.24);
}

/* Improve navbar contrast for links generally */
.app-navbar .navbar-text {
    color: #aebacf !important;
}
.account-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.4) inset;
    flex: 0 0 auto;
}
/* Admin layout */
.admin-layout-row {
    min-height: 0;
}

.admin-menu .admin-menu-item {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid transparent;
    border-radius: 10px !important;
    margin-bottom: 0.25rem;
    transition: all 0.15s ease-in-out;
    font-weight: 500;
}

.admin-menu .admin-menu-item:hover {
    background: rgba(148, 163, 184, 0.05);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.08);
}

.admin-menu .admin-menu-item.active {
    background: rgba(29, 78, 216, 0.16);
    color: #eff6ff;
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.10) inset;
}

/* Admin table */
.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.3);
}

.table.admin-table {
    --bs-table-bg: transparent;
    --bs-table-color: #e5e7eb;
    --bs-table-border-color: rgba(148, 163, 184, 0.12);
    margin-bottom: 0;
    min-width: 1100px;
}

.table.admin-table thead th {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.55);
    position: sticky;
    top: 0;
    z-index: 1;
}

.table.admin-table td {
    vertical-align: middle;
    font-size: 0.92rem;
}

.admin-user-name {
    font-weight: 600;
}

.admin-user-meta {
    color: #94a3b8;
    font-size: 0.82rem;
}

.badge-soft-ban {
    background: rgba(220, 38, 38, 0.15);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.badge-soft-ok {
    background: rgba(16, 185, 129, 0.12);
    color: #bbf7d0;
    border: 1px solid rgba(52, 211, 153, 0.20);
}

/* Inputs/selects in dark theme */
.app-input,
.app-select {
    background: rgba(2, 6, 23, 0.65);
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.app-input:focus,
.app-select:focus {
    background: rgba(2, 6, 23, 0.8);
    color: #f8fafc;
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.app-select option {
    background: #0b1220;
    color: #e5e7eb;
}

/* Modals */
.app-modal {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(3, 7, 18, 0.98));
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
}

.app-modal .modal-header,
.app-modal .modal-footer {
    background: rgba(15, 23, 42, 0.35);
}

/* Small avatar in admin table */
.admin-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(2, 6, 23, 0.5);
}

/* Placeholder sections */
.admin-placeholder {
    border: 1px dashed rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    padding: 1rem;
    color: #94a3b8;
    background: rgba(2, 6, 23, 0.2);
}

.admin-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 32px;
}

.admin-avatar--empty {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  flex: 0 0 32px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}