body {
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  padding: 0;
  margin: 0;
  background: #f5f7fa;
}

header {
  background-color: #222;
  color: #fff;
  padding: 22px 32px;
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 18px;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover {
  color: #e91e63;
}

main, .dashboard, .product-list {
  background: #fff;
  padding: 32px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  margin: 40px auto 0 auto;
  max-width: 1100px;
}

h2 {
  margin-bottom: 24px;
  color: #222;
  font-size: 2rem;
  font-weight: 700;
}

form {
  background: #fff;
  padding: 28px 24px;
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 32px;
}

input, button, select, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}

button {
  background: linear-gradient(90deg, #007bff 60%, #0056b3 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  margin-top: 18px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,123,255,0.08);
}
button:hover {
  background: linear-gradient(90deg, #0056b3 60%, #007bff 100%);
  box-shadow: 0 4px 16px rgba(0,123,255,0.16);
}

label {
  display: block;
  margin-top: 18px;
  font-weight: 600;
  color: #333;
}

textarea {
  height: 100px;
  resize: vertical;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 32px;
  background: none;
  box-shadow: none;
  padding: 0;
}

.product-card {
  background: #fff;
  padding: 20px 16px 16px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
  border: none;
  position: relative;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  transform: translateY(-4px) scale(1.03);
}
.product-card img {
  max-width: 120px;
  max-height: 120px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 14px;
  background: #f0f0f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.product-card h3 {
  font-size: 1.1rem;
  color: #222;
  margin: 0 0 8px 0;
  font-weight: 600;
  text-align: center;
}
.product-card p {
  color: #666;
  font-size: 1rem;
  margin: 0 0 8px 0;
}
.product-card a, .product-card button {
  display: inline-block;
  margin-top: 8px;
  background: linear-gradient(90deg, #007bff 60%, #0056b3 100%);
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.product-card a:hover, .product-card button:hover {
  background: linear-gradient(90deg, #0056b3 60%, #007bff 100%);
  box-shadow: 0 4px 16px rgba(0,123,255,0.16);
}

/* Table styles for admin */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
table th, table td {
  padding: 14px 12px;
  border: 1px solid #eee;
  text-align: left;
}
table th {
  background-color: #f5f7fa;
  color: #333;
  font-weight: 700;
}

.sidebar {
  width: 260px;
  background: #222;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 32px 0 18px 0;
  min-height: 100vh;
  height: 100vh;
  position: relative;
}
.logout {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  z-index: 2;
  background: #222;
}

@media (max-width: 900px) {
  main, .dashboard, .product-list {
    padding: 16px 4px;
    margin: 18px auto 0 auto;
  }
  form {
    padding: 16px 8px;
    max-width: 100%;
  }
  .product-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  table th, table td {
    padding: 10px 6px;
    font-size: 0.98rem;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 8px;
    font-size: 1rem;
  }
  main, .dashboard {
    padding: 8px 2px;
    margin: 8px auto 0 auto;
    border-radius: 6px;
  }
  .product-list {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
  }
  .product-card {
    padding: 10px 2vw 8px 2vw;
    border-radius: 6px;
  }
  .product-card img {
    max-width: 90vw;
    max-height: 80px;
    border-radius: 4px;
  }
  .product-card h3 {
    font-size: 0.98rem;
  }
  .product-card p, .product-card a, .product-card button {
    font-size: 0.95rem;
    padding: 7px 10px;
    border-radius: 4px;
  }
  table th, table td {
    font-size: 0.92rem;
    padding: 7px 3px;
  }
}
  
    