body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: linear-gradient(135deg,#022c22,#052e16);
  color: white;
}

/* HEADER (ALL PAGES SAME) */
header {
  background: rgba(2,6,23,0.95);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #14532d;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h2 {
  color: #4ade80;
  letter-spacing: 1px;
  margin: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
}

nav a {
  color: white;
  margin: 0 8px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: 0.2s;
}

nav a:hover {
  background: #14532d;
}

/* CARDS */
.card {
  background: rgba(5, 46, 22, 0.85); /* dark green */
  padding: 15px;
  border-radius: 12px;
  margin: 10px 0;
  border: 1px solid #14532d;
  box-shadow: 0 0 10px rgba(34,197,94,0.15);
}

.card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 0 18px rgba(34,197,94,0.35);
  border: 1px solid #22c55e;
}

/* BUTTONS */
button {
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #22c55e;
  color: black;
  font-weight: bold;
}

button:hover {
  background: #16a34a;
}

/* INPUTS */
input {
  padding: 8px;
  margin: 5px 0;
  width: 100%;
  border-radius: 6px;
  border: none;
}

/* PLAYER DISPLAY */
.player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #22c55e;
}

/* TABLE */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid #334155;
  text-align: left;
}

/* BADGE */
.badge {
  background: #14532d;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
}

/* HERO (HOME PAGE) */
.hero {
  background: linear-gradient(135deg,#22c55e,#0ea5e9,#a855f7);
  padding: 70px 20px;
  text-align: center;
  border-radius: 0 0 25px 25px;
}

.hero h1 {
  font-size: 42px;
  margin: 0;
}

.hero p {
  opacity: 0.9;
}

/* IMAGE GRID */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 10px;
  margin-top: 20px;
}

.image-slot {
  height: 140px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden; /* THIS fixes overflow */
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid #14532d;
}

/* IMAGE FIT FIX */
.image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* KEY LINE */
  display: block;
}
