/* ========================================
   GAMIDEX UNIFIED THEME CSS
   Modern Dark Theme for all pages
   ======================================== */

/* ===== GENERAL CARDS ===== */
.card {

  border: 1px solid rgba(255, 255, 255, 0.125);
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===== UPGRADE BUTTON GRADIENT ===== */
.btn-upgrade-gradient {
  background: linear-gradient(90deg, #3283ff 0%,#18c1ff 50%, #a283e8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4) !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.btn-upgrade-gradient:hover,
.btn-upgrade-gradient:focus {
  background: linear-gradient(90deg, #3283ff 0%,#18c1ff 50%, #a283e8 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5) !important;
}

.btn-upgrade-gradient:active {
  transform: translateY(0) !important;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3) !important;
}

/* ===== TELEGRAM BUTTON ===== */
.btn-telegram {
  background: linear-gradient(135deg, #229ED9 0%, #2AA6E8 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(34, 158, 217, 0.6) !important;
  box-shadow: 0 6px 18px rgba(34, 158, 217, 0.35) !important;
}

.btn-telegram:hover,
.btn-telegram:focus {
  background: linear-gradient(135deg, #2AA6E8 0%, #42B3F0 100%) !important;
  color: #ffffff !important;
  border-color: rgba(66, 179, 240, 0.8) !important;
  box-shadow: 0 8px 20px rgba(66, 179, 240, 0.45) !important;
  transform: translateY(-1px);
}

.btn-telegram:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(34, 158, 217, 0.3) !important;
}

.card .card-header {
  background: rgb(0,0,0) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.125);
}

.card .card-body {
  background: rgb(0,0,0) !important;
}

/* ===== DARK CARDS ===== */
.card-dark {
  background: #060914 !important;
  border: 1px solid #1F2937 !important;
}

/* ===== FORM ELEMENTS ===== */
.form-select, .form-control {
  background: #1F2937 !important;
  border: 1px solid #374151 !important;
  color: #FFFFFF !important;
}

.form-select:focus, .form-control:focus {
  background: #1F2937 !important;
  border-color: #378FDC !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 0.2rem rgba(55, 143, 220, 0.25);
}

.form-select option {
  background: #1F2937 !important;
  color: #FFFFFF !important;
}

.form-select optgroup {
  background: #111827 !important;
  color: #5FACF0 !important;
  font-weight: 600;
}

.form-check-input:checked {
  background-color:#0d6efd;
  border-color:#0d6efd;
}

/* ===== BADGES ===== */
.badge {
  font-size:.75em;
}

/* ===== MODAL THEME ===== */
.modal-content {
  background: #060914 !important;
  border: 1px solid #1F2937 !important;
}

.modal-header {
  border-bottom: 1px solid #1F2937 !important;
}

.modal-footer {
  border-top: 1px solid #1F2937 !important;
}

.modal-title {
  color: #FFFFFF !important;
}

/* ===== GAME ICON CONTAINERS ===== */
.game-icon-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.game-icon-container:hover {
  transform: scale(1.05);
}

.game-icon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/appinfo.png');
  background-size: 50px 50px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 4px;
}

.game-icon-container:hover .game-icon-overlay {
  opacity: 1;
}

/* ===== GAME ICON DIMENSIONS ===== */
/* Centralized game icon size control for all pages */
/* Change these values to adjust icon sizes across games_list, favorites, alerts_inbox, recent_games, and publisher pages */
.game-icon-container img {
  width: 50px !important;
  height: 50px !important;
  transition: opacity 0.3s ease;
}

.game-icon-container:hover img {
  opacity: 0.7;
}

/* ===== PUBLISHER LINKS ===== */
.publisher-link:hover {
  text-decoration: underline !important;
}

a.text-decoration-none:hover {
  text-decoration: none !important;
}

/* ===== DASHBOARD CONTAINER ===== */
.dashboard-container {
  background: transparent;
  min-height: 100vh;
  color: #FFFFFF;
}

/* ===== HEADER STYLES ===== */
.dashboard-header {
  padding: 2rem 0;
  background: linear-gradient(135deg, #3280FF, #10C4FF, #A482E8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.greeting-text {
  color: #D9D9D9;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.user-name {
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== SECTION TITLE LINKS ===== */
.section-title-link {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.section-title-link:hover {
  color: #60A5FA;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== GAME STATS CARD ===== */
.game-stats-card {
  background: #060914;
  border: 1px solid #1F2937;
  border-radius: 12px;
  color: #FFFFFF;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.game-stats-card .card-header {
  border-bottom: 1px solid #1F2937;
}

.game-stats-card .card-body {
  background: #060914;
}

.game-stats-card .card-title {
  color: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 600;
}

/* ===== LARGE NUMBERS ===== */
.large-number {
  font-size: 3rem;
  font-weight: 700;
  color: #378FDC;
  text-shadow: 0 2px 4px rgba(55, 143, 220, 0.3);
}

/* ===== CHART LAYOUT ===== */
.chart-layout {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

.chart-labels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 180px;
}

.chart-label-item {
  background: transparent;
  border: none;
  color: #D9D9D9;
  padding: 1rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.chart-label-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: all 0.3s ease;
}

.chart-label-item.active {
  color: #FFFFFF;
  background: #1F2937;
}

.chart-label-item.active::before {
  background: #378FDC;
}

.chart-label-item:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

.chart-content {
  flex: 1;
}

/* ===== CHART STYLES ===== */
.chart-container {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 1rem;
  backdrop-filter: blur(5px);
  overflow: visible !important;
  position: relative;
}

.chart-bar-fill {
  background: linear-gradient(180deg, #378FDC 0%, #5FACF0 100%);
  border-radius: 4px 4px 0 0;
  width: 35px;
  margin: 0 auto;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible !important;
}

.chart-bar-fill:hover {
  background: linear-gradient(180deg, #5FACF0 0%, #378FDC 100%);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(55, 143, 220, 0.4);
}

.bar-count {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  color: #FFFFFF !important;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  background: none !important;
  padding: 0;
  border: none !important;
  box-shadow: none !important;
  z-index: 1000;
  text-align: center;
  display: block !important;
  opacity: 1 !important;
}

.bar-label {
  color: #D9D9D9;
  font-size: 0.8rem;
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.2;
  font-weight: 500;
}

/* ===== CHART BAR CONTAINER ===== */
.chart-bar {
  overflow: visible !important;
  position: relative;
}

/* ===== ALERT CARDS ===== */
.alert-activity-card {
  background: #060914;
  border: 1px solid #1F2937;
  border-radius: 12px;
  color: #FFFFFF;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.alert-activity-card .card-header {
  background: #060914;
  border-bottom: 1px solid #1F2937;
}

.alert-activity-card .card-body {
  background: #060914;
}

/* ===== ALERT COMPONENTS ===== */
.alert-report-container {
  padding: 1rem 0;
  flex-grow: 1;
}

.alert-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.alert-stat-item {
  background: #060914;
  border: 1px solid #1F2937;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.alert-stat-item:hover {
  background: rgba(31, 41, 55, 0.8);
  border-color: #378FDC;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(55, 143, 220, 0.2);
}

.stat-icon {
  color: #378FDC;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.stat-label {
  color: #D9D9D9;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== ALERT BREAKDOWN ===== */
.alert-breakdown {
  background: #060914;
  border: 1px solid #1F2937;
  border-radius: 8px;
  padding: 1rem;
  backdrop-filter: blur(5px);
}

.breakdown-title {
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(31, 41, 55, 0.5);
}

.breakdown-item:last-child {
  border-bottom: none;
}

.breakdown-category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin: -0.25rem -0.5rem;
}

.breakdown-category-link:hover {
  background-color: rgba(59, 130, 246, 0.1);
  transform: translateX(4px);
  text-decoration: none;
  color: inherit;
}

.breakdown-category-link:hover .breakdown-category {
  color: #60A5FA;
}

.breakdown-category-link:hover .breakdown-count {
  color: #60A5FA;
  font-weight: 600;
}

.breakdown-category {
  color: #D9D9D9;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.breakdown-count {
  color: #378FDC;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(55, 143, 220, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(55, 143, 220, 0.3);
}

/* ===== ALERT CARD BODY ===== */
.alert-activity-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* ===== FEATURED CARD BODY ===== */
.featured-games-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* ===== ALERT ICON ITEMS ===== */
.alert-icon-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.alert-icon-item:hover {
  transform: translateY(-2px);
}

.alert-icon-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.alert-icon-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #1F2937;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.alert-icon-image:hover {
  border-color: #378FDC;
  box-shadow: 0 4px 12px rgba(55, 143, 220, 0.3);
}

.alert-icon-placeholder {
  width: 60px;
  height: 60px;
  background: #1F2937;
  border: 2px solid #1F2937;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5FACF0;
  font-size: 1.5rem;
  margin: 0 auto 0.5rem;
  transition: all 0.3s ease;
}

.alert-icon-placeholder:hover {
  border-color: #378FDC;
  background: rgba(55, 143, 220, 0.1);
}

.alert-icon-title {
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  word-break: break-word;
  margin-bottom: 0.25rem;
}

.alert-icon-publisher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: center;
  margin-top: 0.25rem;
}

.alert-icon-tier-icon {
  width: 10px;
  height: 10px;
  object-fit: contain;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.alert-icon-tier-icon:hover {
  transform: scale(1.1);
}

.alert-icon-tier-badge {
  background: #378FDC;
  color: #FFFFFF;
  font-size: 0.5rem;
  font-weight: 600;
  padding: 1px 2px;
  border-radius: 2px;
  line-height: 1;
  min-width: 14px;
  text-align: center;
}

.alert-icon-publisher-name {
  color: #D9D9D9;
  font-size: 0.6rem;
  font-weight: 400;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===== COUNTRY FLAGS ===== */
@font-face {
  font-family: 'NotoColorEmojiLimited';
  unicode-range: U+1F1E6-1F1FF;
  src: url(https://raw.githack.com/googlefonts/noto-emoji/main/fonts/NotoColorEmoji.ttf);
}

.country-flag {
  font-size: 1.2rem;
  margin-right: 0.25rem;
  font-family: 'NotoColorEmojiLimited', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  display: inline-block;
  line-height: 1;
}

/* ===== TIER ICONS ===== */
.tier-icon {
  vertical-align: middle;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.tier-icon:hover {
  transform: scale(1.1);
}

/* ===== ALERT ITEMS ===== */
.alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #060914;
  border-radius: 8px;
  border-left: 4px solid #378FDC;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.alert-item:hover {
  background: rgba(31, 41, 55, 0.8);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(55, 143, 220, 0.2);
}

.alert-game-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.alert-game-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 1rem;
}

.alert-game-placeholder {
  width: 50px;
  height: 50px;
  background: #374151;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 1.2rem;
  margin-right: 1rem;
}

.alert-details {
  flex: 1;
}

.alert-game-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.alert-publisher {
  color: #60a5fa;
  font-size: 20px;
  font-weight: 500;
}

.alert-category {
  color: #a0a0a0;
  font-size: 0.8rem;
  background: #374151;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.alert-tier {
  color: #fbbf24;
  font-size: 0.8rem;
  background: #451a03;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.alert-store {
  color: #a0a0a0;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
}

.alert-actions {
  margin-left: 1rem;
}

/* ===== FEATURED GAMES CARD ===== */
.featured-games-card {
  background: #060914;
  border: 1px solid #1F2937;
  border-radius: 12px;
  color: #FFFFFF;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.featured-games-card .card-header {
  background: #060914;
  border-bottom: 1px solid #1F2937;
}

.featured-games-card .card-body {
  background: #060914;
}

.featured-game {
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-screenshot {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060914;
  border: 1px solid #1F2937;
  min-height: 200px;
  max-height: 340px;
  position: relative;
}

.game-screenshot-background {
  -webkit-filter: blur(8px);
  filter: blur(8px);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Ensure this layer never captures clicks and stays within its box */
  display: block;
  pointer-events: none;
  /* Nudge to GPU without changing layout size */
  transform: translateZ(0);
}

.game-screenshot-front {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
  display: block;
}

.game-screenshot:hover .game-screenshot-front {
  transform: scale(1.05);
}

.placeholder-screenshot {
  color: #5FACF0;
  font-size: 3rem;
}

.game-info {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
}

.game-publisher-info {
  margin-bottom: 0.75rem;
  text-align: center;
}

.game-publisher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.featured-tier-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.featured-tier-icon:hover {
  transform: scale(1.1);
}

.featured-tier-badge {
  background: #378FDC;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  line-height: 1;
  min-width: 20px;
  text-align: center;
}

.featured-country-flag {
  font-size: 1rem;
  margin-left: 0.25rem;
  font-family: 'NotoColorEmojiLimited', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  display: inline-block;
  line-height: 1;
}

.game-title {
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.game-publisher {
  color: #D9D9D9;
  font-size: 20px;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* ===== RECENTLY VIEWED CARD ===== */
.recently-viewed-card {
  background: #060914;
  border: 1px solid #1F2937;
  border-radius: 12px;
  color: #FFFFFF;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.recently-viewed-card .card-header {
  background: #060914;
  border-bottom: 1px solid #1F2937;
}

.recently-viewed-card .card-body {
  background: #060914;
}

.recent-games-carousel {
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.recent-games-carousel::-webkit-scrollbar {
  height: 6px;
}

.recent-games-carousel::-webkit-scrollbar-track {
  background: #060914;
  border-radius: 3px;
}

.recent-games-carousel::-webkit-scrollbar-thumb {
  background: #378FDC;
  border-radius: 3px;
}

.recent-games-carousel::-webkit-scrollbar-thumb:hover {
  background: #5FACF0;
}

.recent-game-item {
  min-width: 80px;
  text-align: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.recent-game-item:hover {
  transform: translateY(-2px);
}

.recent-game-icon {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 0.5rem;
  border: 1px solid #1F2937;
  transition: all 0.3s ease;
}

.recent-game-icon:hover {
  border-color: #378FDC;
  box-shadow: 0 2px 8px rgba(55, 143, 220, 0.3);
}

.recent-game-placeholder {
  width: 60px;
  height: 60px;
  background: #1F2937;
  border: 1px solid #1F2937;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5FACF0;
  font-size: 1.5rem;
  margin: 0 auto 0.5rem;
  transition: all 0.3s ease;
}

.recent-game-placeholder:hover {
  border-color: #378FDC;
  background: rgba(55, 143, 220, 0.1);
}

.recent-game-title {
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.25rem;
}

.recent-game-publisher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: center;
  margin-top: 0.25rem;
}

.recent-game-tier-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.recent-game-tier-icon:hover {
  transform: scale(1.1);
}

.recent-game-tier-badge {
  background: #378FDC;
  color: #FFFFFF;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 1px 3px;
  border-radius: 3px;
  line-height: 1;
  min-width: 16px;
  text-align: center;
}

/* ===== ANNOUNCEMENTS CARD ===== */
.announcements-card {
  background: #060914;
  border: 1px solid #1F2937;
  border-radius: 12px;
  color: #FFFFFF;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.announcements-card .card-header {
  background: #060914;
  border-bottom: 1px solid #1F2937;
}

.announcements-card .card-body {
  background: #060914;
}

.announcement-item {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: #060914;
  border-radius: 8px;
  border-left: 4px solid #378FDC;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.announcement-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(55, 143, 220, 0.2);
}

.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.announcement-type {
  display: flex;
  align-items: center;
}

.announcement-date {
  color: #D9D9D9;
  font-weight: 500;
}

.announcement-title {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.announcement-content {
  color: #D9D9D9;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
}

/* ===== CAROUSEL CONTROLS ===== */
.carousel-control-prev,
.carousel-control-next {
  width: 40px !important;
  height: 40px !important;
  background: rgba(55, 143, 220, 0.8) !important;
  border-radius: 50% !important;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  z-index: 10 !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(55, 143, 220, 1) !important;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

.carousel-indicators {
  bottom: -40px;
  z-index: 10;
}

.carousel-indicators button {
  background-color: #1F2937 !important;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background-color: #378FDC !important;
  transform: scale(1.2);
}

/* ===== TABLE AND DROPDOWN FIXES ===== */
.dropdown-menu {
  max-height: 300px;
  overflow-y: auto;
  z-index: 1050;
  background: #000000 !important;
  border: 1px solid #1F2937 !important;
}

.dropdown-menu.dropdown-menu-start {
  left: 0 !important;
  right: auto !important;
}

.dropdown-menu.dropdown-menu-dark {
  background: #000000 !important;
  border: 1px solid #1F2937 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

.dropdown-menu.dropdown-menu-dark .dropdown-item {
  color: #FFFFFF !important;
}

.dropdown-menu.dropdown-menu-dark .dropdown-item:hover {
  background: #1F2937 !important;
  color: #5FACF0 !important;
}

.dropdown-menu.dropdown-menu-dark .dropdown-divider {
  border-color: #1F2937 !important;
}

.table-responsive {
  min-height: 30vh;
}

.table-responsive .table {
  min-height: 20vh;
}

.pagination {
  position: relative;
  z-index: 10;
  margin-top: 1rem;
}

.d-flex.justify-content-between {
  position: relative;
  z-index: 10;
}

/* ===== DATE RANGE INPUT STYLING ===== */
#dateRangeInput {
  background-color: transparent;
  border: none;
  color: rgb(255, 255, 255);
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
  width: auto;
  min-width: 200px;
}

#dateRangeInput:focus {
  outline: none;
  box-shadow: none;
}

#dateRangeInput::placeholder {
  color: rgb(255, 255, 255);
  opacity: 0.8;
}

/* ===== ADMIN NAVIGATION ===== */
.navbar-admin {
  background: #000000 !important;
  border: 1px solid #1F2937 !important;
}

.navbar-admin .navbar-brand {
  color: #FFFFFF !important;
}

.navbar-admin .nav-link {
  color: #D9D9D9 !important;
  transition: color 0.3s ease;
}

.navbar-admin .nav-link:hover {
  color: #5FACF0 !important;
}

.navbar-admin .nav-link.active {
  color: #5FACF0 !important;
  font-weight: 600;
}

/* ===== SETTINGS NAVIGATION ===== */
.settings-nav {
  display: flex;
  background: #060914;
  border-radius: 8px;
  overflow: hidden;
}

.settings-nav .nav-item {
  flex: 1;
  padding: 1rem;
  background: #378FDC;
  color: #FFFFFF;
  text-align: center;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== SIDEBAR TOGGLE ENHANCEMENTS ===== */
/* ElevenLabs-style hamburger menu button */
.sidebar-toggle {
  background: transparent !important;
  border: none !important;
  color: #FFFFFF !important;
  padding: 0.5rem !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  position: relative !important;
}

/* Overlay toggle button - positioned over the logo */
.sidebar-toggle-overlay {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 10 !important;
  background: rgba(6, 9, 20, 0.8) !important;
  backdrop-filter: blur(5px) !important;
  border: 1px solid rgba(55, 143, 220, 0.3) !important;
}

.sidebar-toggle:hover {
  background: rgba(55, 143, 220, 0.1) !important;
  transform: scale(1.05) !important;
  color: #5FACF0 !important;
}

.sidebar-toggle-overlay:hover {
  background: rgba(55, 143, 220, 0.2) !important;
  border-color: rgba(55, 143, 220, 0.5) !important;
  transform: scale(1.05) !important;
  color: #5FACF0 !important;
}

.sidebar-toggle:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(55, 143, 220, 0.3) !important;
}

/* Hamburger icon animation */
.sidebar-toggle i {
  font-size: 1.25rem !important;
  transition: transform 0.3s ease !important;
}

.sidebar.collapsed .sidebar-toggle i {
  transform: rotate(90deg) !important;
}

/* Enhanced sidebar collapse animations */
.sidebar {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden !important;
}

.sidebar.collapsed {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Tooltip for collapsed sidebar items */
.sidebar.collapsed .nav-link {
  position: relative !important;
}

.sidebar.collapsed .nav-link::after {
  content: attr(data-tooltip) !important;
  position: absolute !important;
  left: 100% !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: #1F2937 !important;
  color: #FFFFFF !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 6px !important;
  font-size: 0.8rem !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
  z-index: 1000 !important;
  margin-left: 0.5rem !important;
  border: 1px solid #374151 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.sidebar.collapsed .nav-link::before {
  content: '' !important;
  position: absolute !important;
  left: 100% !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  border: 5px solid transparent !important;
  border-right-color: #1F2937 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
  z-index: 1000 !important;
  margin-left: -0.5rem !important;
}

.sidebar.collapsed .nav-link:hover::after,
.sidebar.collapsed .nav-link:hover::before {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Smooth content transition when sidebar collapses */
main {
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Enhanced logo transition */
.sidebar-logo {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar.collapsed .sidebar-logo {
  transform: scale(0.8) !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .user-name {
    font-size: 2rem;
  }

  .large-number {
    font-size: 2rem;
  }

  .chart-layout {
    flex-direction: column;
  }

  .chart-labels {
    flex-direction: row;
    min-width: auto;
    overflow-x: auto;
  }

  .chart-label-item {
    text-align: center;
    min-width: 120px;
  }

  .chart-label-item::before {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    height: 3px;
  }

  .dashboard-header {
    text-align: center;
  }

  .chart-bar-fill {
    width: 25px;
  }

  .alert-item {
    flex-direction: column;
    text-align: center;
  }

  .alert-actions {
    margin-left: 0;
    margin-top: 1rem;
  }

  .alert-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .alert-stat-item {
    padding: 0.5rem;
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .stat-icon {
    font-size: 1.25rem;
  }

  .game-screenshot {
    min-height: 150px;
    max-height: 200px;
  }

  .game-publisher {
    gap: 0.25rem;
  }

  .game-publisher-info {
    margin-bottom: 0.5rem;
  }

  .featured-tier-icon {
    width: 14px;
    height: 14px;
  }

  .featured-tier-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.3rem;
  }

  .featured-country-flag {
    font-size: 0.9rem;
  }

  /* Mobile sidebar adjustments */
  .sidebar-toggle {
    width: 35px !important;
    height: 35px !important;
  }

  .sidebar-toggle i {
    font-size: 1.1rem !important;
  }
}

/* ===== GAME RECOMMENDATION ITEMS ===== */
.game-recommendation-item {
  min-width: 260px;
  max-width: 100%;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(31, 41, 55, 0.3);
  border: 1px solid rgba(31, 41, 55, 0.5);
}

.game-recommendation-item:hover {
  transform: translateY(-2px);
  background: rgba(31, 41, 55, 0.5);
  border-color: #378FDC;
  box-shadow: 0 4px 12px rgba(55, 143, 220, 0.2);
}

.game-recommendation-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #1F2937;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.game-recommendation-icon:hover {
  border-color: #378FDC;
  box-shadow: 0 2px 8px rgba(55, 143, 220, 0.3);
}

.game-recommendation-placeholder {
  width: 60px;
  height: 60px;
  background: #1F2937;
  border: 2px solid #1F2937;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5FACF0;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.game-recommendation-placeholder:hover {
  border-color: #378FDC;
  background: rgba(55, 143, 220, 0.1);
}

.game-recommendation-info {
  flex: 1;
  min-width: 0;
}

.game-recommendation-title {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.game-recommendation-date {
  color: #D9D9D9;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
}

.game-recommendation-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.game-recommendation-tier-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.game-recommendation-tier-icon:hover {
  transform: scale(1.1);
}

.game-recommendation-tier-badge {
  background: #378FDC;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  line-height: 1;
  min-width: 18px;
  text-align: center;
}

.game-recommendation-publisher {
  color: #5FACF0;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
}

/* ===== CONTAINER WIDTH FIXES ===== */
/* Only apply width restrictions to game page containers */
.game-page-container,
.game-header-section .container-fluid,
.game-recommendations .container-fluid {
  max-width: calc(100vw - 240px) !important; /* Account for sidebar width */
  overflow-x: hidden !important;
}

/* Adjust for collapsed sidebar */
.sidebar.collapsed ~ main .game-page-container,
.sidebar.collapsed ~ main .game-header-section .container-fluid,
.sidebar.collapsed ~ main .game-recommendations .container-fluid {
  max-width: calc(100vw - 80px) !important; /* Account for collapsed sidebar width */
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .game-page-container,
  .game-header-section .container-fluid,
  .game-recommendations .container-fluid {
    max-width: 100vw !important; /* Full width on mobile */
  }
}

/* ===== GAME TITLE RESPONSIVE FIXES ===== */
.game-title {
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
  max-width: 100%;
  line-height: 1.2;
}

.game-title-section {
  width: 100%;
  max-width: 100%;
}

.game-header-section .row {
  margin: 0;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.game-header-section .col-lg-8,
.game-header-section .col-lg-4 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  max-width: 100%;
}

/* ===== TYPOGRAPHY OVERRIDES (Global usage) ===== */
/* Games List table: game titles and publisher text */
.table-dark-modern .fw-semibold,
.table-dark-modern .fw-semibold a {
  font-size: 20px !important;
}

.table-dark-modern .publisher-link {
  font-size: 15px !important;
}

.recent-game-publisher-name {
  font-size: 0.8rem !important;
  font-weight: 400;
}

@media (max-width: 576px) {
  .user-name {
    font-size: 1.5rem;
  }

  .large-number {
    font-size: 1.5rem;
  }

  .game-stats-card .card-title {
    font-size: 1rem;
  }

  .sidebar {
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
  }

  .game-screenshot {
    min-height: 120px;
    max-height: 150px;
  }

  .game-publisher {
    flex-direction: column;
    gap: 0.25rem;
  }

  /* Game title responsive fixes for tablet */
  .game-title {
    font-size: 1.8rem;
    line-height: 1.15;
  }

  .game-header-section .col-lg-8 {
    flex: 0 0 70%;
    max-width: 70%;
  }

  .game-header-section .col-lg-4 {
    flex: 0 0 30%;
    max-width: 30%;
  }

  .game-recommendation-item {
    min-width: 220px;
    max-width: 100%;
    padding: 0.5rem;
  }

  .game-recommendation-icon,
  .game-recommendation-placeholder {
    width: 50px;
    height: 50px;
  }

  .game-recommendation-title {
    font-size: 0.9rem;
  }

  .game-recommendation-date {
    font-size: 0.8rem;
  }

  .game-recommendation-publisher {
    font-size: 0.8rem;
  }

  /* Game title responsive fixes for mobile */
  .game-title {
    font-size: 1.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .game-header-section .col-lg-8,
  .game-header-section .col-lg-4 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .game-header-section .row {
    flex-direction: column;
  }

  .game-header-section .col-lg-4 {
    margin-top: 1rem;
    order: -1;
  }
}
