body {
  margin: 0;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: #0f1923;
  color: #e0e6ed;
}

body.dashboard-body {
  background: #0f1923;
}

header {
  background: #1a2736;
  padding: 24px 48px 18px 48px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  border-radius: 0 0 18px 18px;
  margin-bottom: 32px;
}

header h1 {
  font-size: 22px;
  margin: 0;
  color: #00d4aa;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.container {
  max-width: 1100px;
  margin: 0 auto 40px auto;
  background: #1a2736;
  border-radius: 18px;
  padding: 36px 44px 32px 44px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  margin-bottom: 32px;
}

.tabs {
  display: flex;
  border-bottom: 2px solid #2a3a4a;
  margin-bottom: 18px;
}

.tab {
  padding: 12px 28px 10px 28px;
  cursor: pointer;
  font-weight: 600;
  color: #8899aa;
  border-radius: 12px 12px 0 0;
  margin-right: 8px;
  transition: background 0.2s, color 0.2s;
}

.tab.active {
  color: #00d4aa;
  background: #0f1923;
  border-bottom: 3px solid #00d4aa;
}

.tab-content {
  display: none;
  padding-top: 18px;
}

.tab-content.active {
  display: block;
}

textarea {
  width: 100%;
  height: 200px;
  padding: 14px;
  border: 1.5px solid #2a3a4a;
  border-radius: 10px;
  resize: vertical;
  font-family: monospace;
  font-size: 14px;
  background: #0f1923;
  color: #e0e6ed;
  margin-bottom: 12px;
}

.button {
  background: #00d4aa;
  color: #0f1923;
  padding: 13px 28px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.18s, box-shadow 0.18s;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(0,212,170,0.15);
}

.button:hover {
  background: #00b894;
  box-shadow: 0 4px 16px rgba(0,212,170,0.25);
}

.status {
  margin-top: 15px;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
}

.status.success {
  background: rgba(0,212,170,0.15);
  color: #00d4aa;
}

.status.error {
  background: rgba(255,107,107,0.15);
  color: #ff6b6b;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 10px;
  background: #1a2736;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #2a3a4a;
  font-size: 14px;
}

th {
  background: #0f1923;
  color: #00d4aa;
  font-weight: 700;
  text-align: center;
  border-bottom: 2px solid #2a3a4a;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(0,212,170,0.06);
  transition: background 0.15s;
}

.version-name-cell {
  min-width: 200px;
}

.notes-cell {
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: help;
}

.red {
  color: #ff6b6b;
  font-weight: bold;
}

.center {
  text-align: center;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1a2736;
  padding: 30px 40px;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  max-width: 500px;
  width: 90vw;
  position: relative;
  color: #e0e6ed;
}

.modal-content h2 {
  margin-top: 0;
}

.modal-content textarea {
  margin-bottom: 10px;
}

.close {
  position: absolute;
  right: 20px;
  top: 18px;
  font-size: 28px;
  color: #8899aa;
  cursor: pointer;
}

.games-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 56px 48px;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
  max-width: 1400px;
  background: none;
  box-shadow: none;
  padding-bottom: 60px;
}

.game-card {
  background: none;
  border-radius: 32px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  min-width: 180px;
  max-width: 220px;
  cursor: pointer;
  transition: transform 0.18s;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.08);
}

.game-card .game-icon {
  width: 160px;
  height: 160px;
  border-radius: 32px;
  object-fit: cover;
  background: #2a3a4a;
  margin-bottom: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  border: 3.5px solid #2a3a4a;
  display: block;
}

.game-card .game-name {
  font-size: 20px;
  font-weight: 700;
  color: #e0e6ed;
  margin-bottom: 14px;
  text-align: center;
  letter-spacing: 0.1px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card .game-stats {
  display: flex;
  gap: 18px;
  font-size: 18px;
  font-weight: 600;
  color: #00d4aa;
  margin-top: 4px;
  margin-bottom: 0;
  justify-content: center;
  width: 100%;
}

.game-card .game-stats .stat-red {
  color: #ff6b6b;
}

.game-card .game-stats .stat-green {
  color: #51cf66;
}

.game-card .game-stats .stat-default {
  color: #e0e6ed;
}

.game-card .game-duration {
  font-size: 12px;
  color: #8899aa;
  margin-top: 6px;
  text-align: center;
  font-weight: 500;
}

/* Sidebar style suggestion (si tu veux l'ajouter plus tard) */
/*
.sidebar {
  background: #1a2736;
  border-radius: 0 18px 18px 0;
  box-shadow: 2px 0 12px rgba(0,0,0,0.3);
  padding: 32px 0 32px 0;
  width: 220px;
  min-height: 100vh;
  position: fixed;
  left: 0; top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sidebar .menu-item {
  color: #00d4aa;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 24px;
  margin: 0 12px;
  transition: background 0.18s;
}
.sidebar .menu-item:hover {
  background: rgba(0,212,170,0.06);
}
*/

#homeBtn {
  background: #1a2736;
  color: #00d4aa;
  border: none;
  border-radius: 18px;
  font-weight: 700;
  font-size: 16px;
  padding: 9px 22px 9px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  cursor: pointer;
  outline: none;
}

#homeBtn:hover {
  background: #2a3a4a;
  color: #00d4aa;
  box-shadow: 0 4px 24px rgba(0,212,170,0.2);
}

#homeBtn .icon {
  font-size: 20px;
  margin-right: 6px;
}

/* Classes pour le header personnalisé */
.header-main {
  display: flex;
  align-items: center;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 0;
  justify-content: flex-end;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px 0 20px;
}

.header-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.18s;
  line-height: 1;
}

.icon-btn:hover {
  background: rgba(0,212,170,0.1);
}

/* Styles pour la grille des jeux avec marges ajustées */
.games-grid-main {
  margin-top: 48px;
}

/* ===== TABLET ===== */
@media (max-width: 900px) {
  header {
    padding: 18px 24px 14px 24px;
  }
  .container {
    padding: 24px 20px 20px 20px;
    margin: 0 12px 24px 12px;
  }
  .games-grid {
    gap: 32px 24px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  header {
    padding: 14px 16px 10px 16px;
    margin-bottom: 16px;
    border-radius: 0 0 12px 12px;
  }
  header h1 {
    font-size: 18px;
  }
  .container {
    padding: 16px 12px 14px 12px;
    margin: 0 8px 16px 8px;
    border-radius: 12px;
  }
  .tabs {
    flex-wrap: wrap;
    gap: 0;
  }
  .tab {
    padding: 10px 14px 8px 14px;
    font-size: 13px;
    margin-right: 4px;
  }
  textarea {
    font-size: 12px;
    padding: 10px;
    height: 150px;
  }
  .button {
    padding: 10px 18px;
    font-size: 14px;
    width: 100%;
  }
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  th, td {
    padding: 8px 6px;
    font-size: 12px;
  }
  .version-name-cell {
    min-width: 120px;
  }
  .notes-cell {
    max-width: 150px;
  }
  .modal-content {
    padding: 20px 16px;
    width: 95vw;
    border-radius: 12px;
  }
  .close {
    right: 12px;
    top: 12px;
  }
  .games-grid {
    gap: 28px 16px;
    padding-bottom: 30px;
  }
  .game-card {
    min-width: 120px;
    max-width: 160px;
  }
  .game-card .game-icon {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    margin-bottom: 10px;
  }
  .game-card .game-name {
    font-size: 15px;
    max-width: 130px;
    margin-bottom: 8px;
  }
  .game-card .game-stats {
    font-size: 14px;
    gap: 10px;
  }
  .game-card:hover {
    transform: none;
  }
  .header-main {
    padding: 8px 12px 0 12px;
  }
  .icon-btn {
    font-size: 20px;
    padding: 6px;
  }
  .games-grid-main {
    margin-top: 24px;
  }
  #homeBtn {
    font-size: 14px;
    padding: 7px 14px 7px 10px;
  }
}
