/* Neumorphic UI Design */
:root {
  --bg-color: #e0e5ec;
  --primary-color: #6d5dfc;
  --light-shadow: rgba(255, 255, 255, 0.9);
  --dark-shadow: rgba(163, 177, 198, 0.6);
  --text-color: #5b6273;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
}

.wizard-card,
.admin-card {
  background-color: var(--bg-color);
  border-radius: 40px;
  padding: 40px;
  box-shadow: 10px 10px 20px var(--dark-shadow),
    -10px -10px 20px var(--light-shadow);
}

h1,
h2 {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 30px;
  font-weight: 600;
}

.wizard-step {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.wizard-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 20px;
  background-color: var(--bg-color);
  box-shadow: inset 5px 5px 10px var(--dark-shadow),
    inset -5px -5px 10px var(--light-shadow);
  font-size: 1rem;
  color: var(--text-color);
  transition: box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  box-shadow: inset 3px 3px 7px var(--dark-shadow),
    inset -3px -3px 7px var(--light-shadow), 0 0 0 2px var(--primary-color);
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 20px;
  background-color: var(--bg-color);
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 5px 5px 10px var(--dark-shadow),
    -5px -5px 10px var(--light-shadow);
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  color: #4a3dc5;
}

.btn:active {
  box-shadow: inset 5px 5px 10px var(--dark-shadow),
    inset -5px -5px 10px var(--light-shadow);
  transform: translateY(1px);
  color: #4a3dc5;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  color: white;
  background-color: #5a4afb;
}

.btn-secondary {
  color: var(--text-color);
}

.action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
}

/* Step 2: Product Info Preview */
.product-preview {
  display: flex;
  gap: 30px;
  align-items: center;
  background: var(--bg-color);
  padding: 25px;
  border-radius: 20px;
  box-shadow: inset 5px 5px 10px var(--dark-shadow),
    inset -5px -5px 10px var(--light-shadow);
}

.product-image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 5px 5px 10px var(--dark-shadow),
    -5px -5px 10px var(--light-shadow);
}

.product-details h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
}
.product-details p {
  margin-bottom: 5px;
  font-size: 0.95rem;
}
.product-details .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 10px;
}

/* Admin Page Table */
.table-container {
  overflow-x: auto;
}
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.styled-table thead tr {
  background-color: var(--bg-color);
  color: var(--text-color);
  text-align: left;
}
.styled-table th,
.styled-table td {
  padding: 15px;
  border-bottom: 2px solid var(--bg-color);
}
.styled-table td {
  background: #eef2f7;
}
.styled-table tbody tr {
  transition: background-color 0.3s ease;
}
.styled-table tbody tr:hover {
  background-color: #e6eaf0;
}
.styled-table td .btn {
  padding: 8px 15px;
  font-size: 0.85rem;
  border-radius: 15px;
}
.search-bar {
  margin-bottom: 20px;
}
.search-bar .form-control {
  max-width: 400px;
}
.header-admin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* --- Login Page Specific Styles --- */
.login-page-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  margin: 0;
  font-family: "Poppins", sans-serif;
}

.login-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
  transition: transform 0.3s ease;
}

.login-card:hover {
  transform: translateY(-5px);
}

.icon {
  background: #4a90e2;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.icon svg {
  color: white;
  width: 30px;
  height: 30px;
}

h2 {
  color: #2c3e50;
  margin-bottom: 2rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #34495e;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e5ec;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #4a90e2;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #4a90e2;
  color: white;
}

.btn-primary:hover {
  background: #357abd;
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.neumorphic-swal {
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Add these styles to your existing assets/style.css */

/* --- Pagination Styles --- */
.pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
}

.pagination .btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e0e5ec;
  color: #4a5568;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination .btn:hover {
  background: #f7fafc;
  transform: translateY(-2px);
}

.pagination .btn.btn-primary {
  background: #4a90e2;
  color: white;
  border: none;
}

/* --- Helper for Header Links --- */
.header-nav-link {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 30px; /* Position on the left */
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}
.header-nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
}
/* Add these styles to your existing assets/style.css */

/* --- Styles for Expanded Product Preview (Step 2) --- */
.product-preview-detailed {
  background: var(--bg-color);
  padding: 25px;
  border-radius: 20px;
  box-shadow: inset 5px 5px 10px var(--dark-shadow),
    inset -5px -5px 10px var(--light-shadow);
}

.preview-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
}

.preview-col-image {
  text-align: center;
}

.preview-col-image img {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 5px 5px 10px var(--dark-shadow),
    -5px -5px 10px var(--light-shadow);
  margin-bottom: 20px;
}

.preview-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 10px;
}

.preview-col-details h3 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 1.6rem;
  color: #333;
}

.preview-col-details .brand {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 20px;
  display: block;
}

.preview-section {
  margin-bottom: 20px;
}

.preview-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #d1d9e6;
}

.seller-info,
.rating-info {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 0.95rem;
}

.size-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-tag {
  display: inline-block;
  padding: 2px 8px;
  margin: 0 4px;
  background: #f0f2f5;
  border-radius: 4px;
  font-size: 0.9em;
}

.icon-tick {
  color: #2ecc71;
  margin-right: 4px;
}

.icon-cross {
  color: #e74c3c;
  margin-right: 4px;
}

#previewShipping span {
  display: inline-block;
  margin-right: 15px;
}

.features-list,
.coupons-list {
  list-style: none;
  padding-left: 0;
  font-size: 0.9rem;
  max-height: 150px;
  overflow-y: auto;
  padding: 10px;
  border-radius: 15px;
  background: #e6eaf0;
}

.features-list li,
.coupons-list li {
  padding: 8px 5px;
  border-bottom: 1px solid #d1d9e6;
}
.features-list li:last-child,
.coupons-list li:last-child {
  border-bottom: none;
}

.shipping-flags {
  display: flex;
  gap: 15px;
  font-weight: 500;
}
.shipping-flags span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.shipping-flags .icon-tick {
  color: #28a745;
}
.shipping-flags .icon-cross {
  color: #dc3545;
}

/* Responsive Grid for smaller screens */
@media (max-width: 768px) {
  .preview-grid {
    grid-template-columns: 1fr;
  }
  .preview-col-image {
    margin-bottom: 0;
  }
  .preview-col-image img {
    max-width: 150px;
  }
}
