/* RESET */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f9;
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 15px;
}

/* LOGO */
.logo-container {
  text-align: center;
  margin-bottom: 10px;
  align-content: center;
}

.logo-container img {
  max-width: 150px; /* desktop size */
  height: auto;
}

/* Mobile */
@media (max-width: 768px) {
  .logo-container img {
    max-width: 90px;
  }
}

h1 {
  text-align: center;
  font-size: 24px;
  color: #333;
}

/* CARD */
.card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* INPUTS */
.input-card {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.input-card input,
.input-card button {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  flex: 1;
  min-width: 120px;
}

.input-card button {
  background: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

/* DASHBOARD */
.dashboard {
  display: flex;
  gap: 10px;
}

.stat {
  flex: 1;
  text-align: center;
}

.stat h3 {
  font-size: 16px;
  color: #777;
}

.stat p {
  font-size: 22px;
  font-weight: bold;
}

/* TABLE */
.table-card {
  overflow-x: auto; /* 🔥 important */
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* 🔥 keeps structure */
}

th {
  background: #4CAF50;
  color: white;
}

th, td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

/* BUTTONS */
button.edit {
  background: orange;
  border: none;
  padding: 6px 10px;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

button.delete {
  background: red;
  border: none;
  padding: 6px 10px;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  h1 {
    font-size: 20px;
  }

  /* STACK INPUTS */
  .input-card {
    flex-direction: column;
  }

  .input-card input,
  .input-card button {
    width: 100%;
  }

  /* STACK DASHBOARD */
  .dashboard {
    flex-direction: column;
  }

  /* SMALL TABLE TEXT */
  th, td {
    font-size: 13px;
    padding: 8px;
  }

}

/* ================= SMALL PHONES ================= */
@media (max-width: 480px) {

  h1 {
    font-size: 18px;
  }

  .stat p {
    font-size: 18px;
  }

  th, td {
    font-size: 12px;
    padding: 6px;
  }

  button.edit, button.delete {
    padding: 5px 6px;
    font-size: 11px;
  }

}