@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
  background: url('../images/background.avif') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  position: relative;
}

/* Home layout */
.home-section {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0,0,0,0.35);
  padding: 12px 14px;
  border-radius: 14px;
  color: #f5f8fb;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.home-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #0b1621;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #6ad0ff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.05), 0 8px 20px rgba(0,0,0,0.2);
}

.home-name { font-weight: 800; font-size: 18px; }
.home-meta { font-size: 13px; opacity: 0.85; }

.home-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.cta-card {
  border-radius: 16px;
  padding: 16px;
  color: #0f1216;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-card:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,0.26); }
.cta-card.orange { background: linear-gradient(135deg, #ff7b47 0%, #ff5c2a 100%); color: #fff; }
.cta-card.amber { background: linear-gradient(135deg, #f8b133 0%, #f39c12 100%); color: #fff; }
.cta-card.dark { background: linear-gradient(135deg, #0f1216 0%, #1b232c 100%); color: #f5f8fb; }

.cta-title { font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; font-size: 16px; }
.cta-sub { margin-top: 6px; opacity: 0.9; font-size: 13px; }

.cta-banner {
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(135deg, #1f6cf0 0%, #2f8bff 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(31,108,240,0.35);
}

.stats-list { display: flex; flex-direction: column; gap: 10px; }
.stats-item {
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
  padding: 12px 14px;
  color: #f5f8fb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}
.stats-item i { margin-right: 8px; }
.stats-link { font-weight: 800; }

/* Sidebar inspired style */
.sidebar-card {
  background: linear-gradient(180deg, rgba(16,24,32,0.9) 0%, rgba(20,30,38,0.95) 100%);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  color: #e8f0f6;
}

.sidebar-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.sidebar-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #0b1621;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 1px;
  color: #6ad0ff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.05), 0 10px 30px rgba(0,0,0,0.2);
}

.sidebar-name {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #eef7ff;
}

.sidebar-promo {
  background: linear-gradient(135deg, #1f6cf0 0%, #2f8bff 100%);
  border-radius: 14px;
  padding: 14px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(47,139,255,0.3);
  margin-bottom: 12px;
}

.promo-title {
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
}

.promo-text {
  font-size: 13px;
  margin: 6px 0 10px;
  opacity: 0.9;
}

.promo-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  background: #0b1621;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.promo-btn:hover {
  transform: translateY(-1px);
  background: #091019;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-item {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  color: #e8f0f6;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.sidebar-item i {
  font-size: 16px;
  color: #9bd7ff;
}

.sidebar-item span {
  flex: 1;
}

.sidebar-item:hover,
.sidebar-item.active {
  background: rgba(108, 194, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(108, 194, 255, 0.35);
  transform: translateY(-1px);
}

.sidebar-item.danger {
  background: rgba(255, 77, 77, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 77, 0.25);
}

.sidebar-item.danger i {
  color: #ff6b6b;
}

.sidebar-item.danger:hover {
  background: rgba(255, 77, 77, 0.14);
}

/* Hero cards / lobby cards */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.hero-card {
  border-radius: 16px;
  padding: 16px;
  color: #0f1216;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.hero-card.light { background: #f4f7fa; }
.hero-card.accent { background: linear-gradient(135deg, #ff7b47 0%, #ff5c2a 100%); color: #fff; }
.hero-card.warm { background: linear-gradient(135deg, #f8b133 0%, #f39c12 100%); color: #fff; }

.hero-title { font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.hero-sub { margin: 6px 0 10px; opacity: 0.8; font-size: 13px; }
.hero-metric { font-size: 26px; font-weight: 800; display: flex; align-items: baseline; gap: 6px; }
.hero-metric small { font-size: 13px; opacity: 0.8; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.pill-btn {
  border: none;
  border-radius: 24px;
  padding: 10px 16px;
  font-weight: 700;
  background: #0f1216;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  transition: all 0.15s ease;
}

.pill-btn.secondary {
  background: #ffffff;
  color: #0f1216;
}

.pill-btn:hover { transform: translateY(-1px); }

.lobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.lobby-card {
  background: rgba(15, 18, 22, 0.9);
  border-radius: 12px;
  padding: 12px;
  color: #e8f0f6;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lobby-card .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lobby-card .title { font-weight: 800; letter-spacing: 0.3px; }
.lobby-card .badge {
  background: rgba(255,255,255,0.08);
  color: #9bd7ff;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}
.camera-badge { background: rgba(255,77,77,0.15); color: #ff9b9b; border-color: rgba(255,77,77,0.4); }
.lobby-card .footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lobby-card .host { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.lobby-card .host img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.btn-join {
  border: none;
  border-radius: 20px;
  padding: 8px 14px;
  font-weight: 700;
  background: #ff6b3d;
  color: #fff;
  box-shadow: 0 6px 14px rgba(255,107,61,0.35);
  transition: all 0.15s ease;
}
.btn-join:hover { transform: translateY(-1px); }

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.card {
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.content-section {
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.list-group-item-action:hover {
  background-color: #f8f9fa;
  cursor: pointer;
}

.list-group-item-action.active {
  background-color: #667eea;
  border-color: #667eea;
}

.room-item {
  transition: all 0.2s;
}

.room-item:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.badge-password {
  background-color: #ffc107;
  color: #000;
}

.badge-ranking {
  background-color: #28a745;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.3rem;
}

#auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.btn {
  border-radius: 8px;
  transition: all 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
