:root {
  --bg-main: #0b0614;
  --bg-card: #161020;
  --bg-sidebar: #10091c;
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --accent: #e11dff;
  --text: #ffffff;
  --muted: #c8c8d8;
  --border: rgba(255,255,255,0.10);
}

/* Global */
body {
  background: var(--bg-main) !important;
  color: var(--text) !important;
  min-height: 100vh;
}

/* ????? ?? ?????? ???? ????? */
body,
h1,h2,h3,h4,h5,h6,
p,label,span,div,td,th,li,a,strong,small {
  color: var(--text) !important;
}

.text-secondary,
.text-muted {
  color: var(--muted) !important;
}

/* ????? ?????? ?????? ?????? */
.navbar {
  display: none !important;
}

/* Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-main);
}

/* Sidebar ???? */
.sidebar {
  width: 270px;
  background: linear-gradient(180deg, #1b0b34 0%, #10091c 55%, #0b0614 100%);
  border-left: 1px solid var(--border);
  padding: 22px 18px;
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 28px;
  color: #ffffff !important;
  text-align: right;
}

.sidebar-section {
  color: var(--muted) !important;
  font-size: 13px;
  margin: 18px 5px 8px;
}

.sidebar a,
.sidebar button {
  width: 100%;
  min-height: 46px;
  margin-bottom: 10px;
  border-radius: 14px;
  text-align: right;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid transparent;
  text-decoration: none;
}

.sidebar .btn-main {
  background: rgba(124, 58, 237, 0.20);
  color: #ffffff !important;
  border-color: rgba(124, 58, 237, 0.35);
}

.sidebar .btn-main:hover,
.sidebar .btn-main.active {
  background: var(--primary);
  color: #ffffff !important;
}

.sidebar .btn-accent {
  background: rgba(225, 29, 255, 0.20);
  color: #ffffff !important;
  border-color: rgba(225, 29, 255, 0.35);
}

.sidebar .btn-accent:hover {
  background: var(--accent);
  color: #ffffff !important;
}

.sidebar .btn-logout {
  background: transparent;
  color: #ff6b6b !important;
  border: 1px solid #ff6b6b;
  margin-top: 20px;
}

.sidebar .btn-logout:hover {
  background: #ff6b6b;
  color: #ffffff !important;
}

/* Content */
.main-content {
  margin-right: 0 !important;
  padding: 26px;
  width: 100% !important;
}

/* Cards */
.card,
.card-dark,
.stat-card,
.chart-box {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  color: #ffffff !important;
}

/* Tables */
.table,
.table td,
.table th {
  color: #ffffff !important;
}

.table-dark {
  --bs-table-bg: #161020;
  --bs-table-striped-bg: #1d1429;
  --bs-table-border-color: rgba(255,255,255,0.10);
}

/* Forms */
.form-control,
.form-select,
textarea {
  background: #21172f !important;
  color: #ffffff !important;
  border: 1px solid #3b2a55 !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  background: #21172f !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 0.2rem rgba(225, 29, 255, 0.18) !important;
}

input::placeholder,
textarea::placeholder {
  color: #b8b8b8 !important;
}

/* Buttons */
.btn-primary,
.btn-success,
.btn-warning,
.btn-info,
.btn-dark {
  border-radius: 12px !important;
  font-weight: 700;
}

.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-primary:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}

.btn-success {
  background: #16a34a !important;
  border-color: #16a34a !important;
}

.btn-info {
  background: #06b6d4 !important;
  border-color: #06b6d4 !important;
  color: #ffffff !important;
}

.btn-warning {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #ffffff !important;
}

/* Ticket cards */
.game-card {
  background: #21172f;
  border: 1px solid #3b2a55;
  border-radius: 14px;
  padding: 12px;
  color: #ffffff !important;
}

/* Mobile */
@media (max-width: 768px) {
  .app-layout {
    display: block;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-left: none;
    border-bottom: 1px solid var(--border);
  }

  .main-content {
    margin-right: 0;
    width: 100%;
    padding: 16px;
  }
}

body.with-sidebar {
  padding-right: 270px;
}

body.with-sidebar .container {
  max-width: 1200px;
}

body.with-sidebar .navbar {
  display: none !important;
}

@media (max-width: 768px) {
  body.with-sidebar {
    padding-right: 0;
  }
}

.account-dropdown {
  margin-bottom: 15px;
  position: relative;
  text-align: center;
}

.account-trigger {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px;
  cursor: pointer;
  color: white;
  font-size: 14px;
  text-align: center;
}

.account-icon {
  font-size: 18px;
    color: #ffffff;
}

.account-name {
  font-size: 14px;
  font-weight: 600;
}

.account-menu {
  display: none;
  background: #21172f;
  border: 1px solid #3b2a55;
  border-radius: 8px;
  padding: 2px;
  margin-top: 4px;
  text-align: center;
  min-height: 36px;
}

.account-menu button {
  background: transparent;
  border: none;
  color: #ff6b6b;
  width: 100%;
  height: 30px;
  font-weight: 600;
  padding: 0;
  margin: 0;

  display: flex;
  justify-content: center;
  align-items: center;
}
.account-menu button:hover {
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
}
