/* ================= BASIC RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* ================= BODY ================= */
body {
  height: 100vh;
  background: linear-gradient(135deg, #0A4A78, #0e1b2a);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= LOGIN CONTAINER ================= */
.admin-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= LOGIN CARD ================= */
.login-card {
  background: #ffffff;
  width: 360px;
  padding: 40px 34px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

/* Title */
.login-card h1 {
  font-size: 28px;
  font-weight: 800;
  color: #0A4A78;
}

.login-card p {
  margin-top: 6px;
  font-size: 14px;
  color: #6b7b8c;
}

/* ================= INPUT GROUP ================= */
.input-group {
  margin-top: 22px;
  text-align: left;
}

.input-group label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.input-group input {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #dcdfe5;
  font-size: 14px;
}

/* ================= LOGIN BUTTON ================= */
.login-btn {
  margin-top: 26px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0A4A78, #08345c);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(10,74,120,0.35);
}

/* ================= FOOTER TEXT ================= */
.login-card small {
  display: block;
  margin-top: 24px;
  font-size: 12px;
  color: #9aa7b4;
}
/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* ========== LAYOUT ========== */
.dashboard {
  display: flex;
  min-height: 100vh;
  background: #f4f7fb;
}

/* ========== SIDEBAR ========== */
.sidebar {
  width: 230px;
  background: linear-gradient(180deg,#0A4A78,#08345c);
  color: #fff;
  padding: 30px 20px;
}

.sidebar h2 {
  margin-bottom: 30px;
  font-weight: 800;
}

.sidebar a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 10px;
  text-decoration: none;
  color: #dbe7f3;
  font-weight: 600;
}

.sidebar a.active,
.sidebar a:hover {
  background: rgba(255,255,255,0.15);
}

/* ========== MAIN ========== */
.main {
  flex: 1;
  padding: 40px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.header h1 {
  font-size: 28px;
  font-weight: 800;
}

/* ========== CARD ========== */
.card {
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

/* Sections */
.form-section {
  margin-bottom: 30px;
}

.form-section h3 {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 700;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
}

label {
  font-size: 13px;
  font-weight: 600;
}

input, select {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #dcdfe5;
}

/* Sizes */
.sizes label {
  display: inline-flex;
  align-items: center;
  margin-right: 18px;
  font-weight: 600;
}

/* Upload */
.upload-box {
  border: 2px dashed #cfd8e3;
  padding: 20px;
  border-radius: 14px;
  text-align: center;
}

.upload-box input {
  display: none;
}

.upload-box label {
  cursor: pointer;
  font-weight: 700;
  color: #0A4A78;
}

.preview img {
  margin-top: 14px;
  max-width: 180px;
  border-radius: 14px;
  display: none;
}

/* Actions */
.actions {
  text-align: right;
}

.save-btn {
  padding: 14px 26px;
  background: #0A4A78;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 14px;
  text-align: center;   /* 🔥 MAIN FIX */
  vertical-align: middle;
}

th {
  font-size: 14px;
  font-weight: 700;
  color: #6b7b8c;
}

td {
  font-size: 14px;
}

.status {
  background: #e6f6ec;
  color: #1e8449;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.edit {
  background: #eef3f9;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
}

.delete {
  background: #ffecec;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  color: #c0392b;
}
/* ================= RESPONSIVE FIX ================= */

/* Tablets & Mobiles */
@media (max-width: 900px) {

  /* Layout stack */
  .dashboard {
    flex-direction: column;
  }

  /* Sidebar becomes top bar */
  .sidebar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
  }

  .sidebar h2 {
    margin-bottom: 0;
    font-size: 18px;
  }

  .sidebar nav {
    display: flex;
    gap: 10px;
  }

  .sidebar nav a {
    margin-bottom: 0;
    padding: 8px 12px;
    font-size: 13px;
  }

  /* Main content padding reduce */
  .main {
    padding: 20px;
  }

  /* Header stack */
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .header h1 {
    font-size: 22px;
  }

  /* Form grid → single column */
  .grid {
    grid-template-columns: 1fr;
  }

  /* Sizes wrap */
  .sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .sizes label {
    margin-right: 0;
  }

  /* Image preview center */
  .preview img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  /* Save button full width */
  .actions {
    text-align: center;
  }

  .save-btn {
    width: 100%;
  }

  /* Table scroll */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Extra small phones */
@media (max-width: 480px) {

  .sidebar nav {
    overflow-x: auto;
  }

  .sidebar nav a {
    font-size: 12px;
  }

  .card {
    padding: 20px;
  }

  .form-section h3 {
    font-size: 16px;
  }
}
/* ================= DASHBOARD COMPACT PATCH ================= */
/* Login page CSS-a affect pannadhu – dashboard only */

/* Center & control form width */
.dashboard .card {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Reduce vertical spacing */
.dashboard .form-section {
  margin-bottom: 20px;
}

.dashboard .form-section h3 {
  margin-bottom: 10px;
}

/* Compact header spacing */
.dashboard .header {
  margin-bottom: 20px;
}

/* Sizes – boxed & readable */
.dashboard .sizes label {
  background: #f4f7fb;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* Image upload section compact */
.dashboard .upload-box {
  max-width: 420px;
}

.dashboard .preview img {
  max-width: 140px;
}

/* Save button little closer */
.dashboard .actions {
  margin-top: 10px;
}

/* Optional divider between sections */
.dashboard .form-section:not(:last-child) {
  border-bottom: 1px dashed #e5e9f0;
  padding-bottom: 16px;
}
/* ===== TOP LOGOUT BUTTON ===== */
.logout-top {
  background: #ffecec;
  border: none;
  color: #c0392b;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* ===== SIZE PILLS ===== */
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.size-pill {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #dcdfe5;
  font-weight: 600;
  cursor: pointer;
  background: #f9fafc;
  user-select: none;
}

.size-pill.active {
  background: #0A4A78;
  color: #fff;
  border-color: #0A4A78;
}

/* Mobile touch comfort */
@media (max-width: 600px) {
  .size-pill {
    padding: 12px 18px;
  }
}
