/* Reset & box sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
}

/* Login Page */
.login-page {
  background: linear-gradient(135deg, #a8dadc 0%, #457b9d 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background: linear-gradient(135deg, #a8dadc 0%, #457b9d 100%);
  }
  50% {
    background: linear-gradient(135deg, #457b9d 0%, #1d3557 100%);
  }
}

.login-container {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 100%;
  max-width: 400px;
  transform: translateY(-20px);
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(-20px);
    opacity: 1;
  }
}

.login-container h2 {
  color: #1d3557;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: bold;
}

.login-container input,
.login-container button {
  display: block;
  width: 100%;
  margin: 15px 0;
  padding: 15px;
  font-size: 16px;
  border-radius: 10px;
  border: 2px solid #ddd;
  transition: all 0.3s ease;
}

.login-container input:focus {
  outline: none;
  border-color: #1d3557;
  box-shadow: 0 0 0 3px rgba(29, 53, 87, 0.1);
}

.login-container button {
  background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-container button:hover {
  background: linear-gradient(135deg, #16324f 0%, #3a6b8c 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Items Page */
.items-page {
  padding: 40px 20px;
  background: linear-gradient(135deg, #f1faee 0%, #a8dadc 100%);
  min-height: 100vh;
}

.items-container {
  max-width: 1000px;
  margin: auto;
}

.items-container h2 {
  font-size: 32px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.items-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 40px;
}

.item {
  background: white;
  border: none;
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.item:hover::before {
  left: 100%;
}

.item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 15px;
}

.item label {
  font-size: 18px;
  font-weight: bold;
  color: #1d3557;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #1d3557;
}

.size-label,
.quantity-label {
  font-size: 14px !important;
  color: #457b9d !important;
  margin-top: 10px;
  display: block;
  text-align: left;
}

.size-selector,
.quantity-input {
  width: 100%;
  padding: 8px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 5px;
  transition: border-color 0.3s ease;
}

.size-selector:focus,
.quantity-input:focus {
  outline: none;
  border-color: #1d3557;
  box-shadow: 0 0 0 2px rgba(29, 53, 87, 0.1);
}

.quantity-input {
  text-align: center;
}

/* Submit Button */
.submit-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.submit-btn {
  padding: 15px 40px;
  font-size: 18px;
  background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #16324f 0%, #3a6b8c 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* Summary Page */
.summary-page {
  background: linear-gradient(135deg, #f8edeb 0%, #fec5bb 100%);
  padding: 40px 20px;
  min-height: 100vh;
}

.summary-container {
  max-width: 700px;
  margin: auto;
  background: white;
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: slideUp 0.8s ease-out;
}

.summary-header {
  background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
  color: white;
  padding: 30px;
  text-align: center;
  position: relative;
}

.summary-header::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid #1d3557;
}

.summary-header h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.order-number {
  font-size: 16px;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 20px;
  display: inline-block;
}

.summary-content {
  padding: 40px;
}

.customer-section {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 30px;
  border-left: 5px solid #1d3557;
}

.customer-section h3 {
  color: #1d3557;
  margin-bottom: 15px;
  font-size: 22px;
}

.customer-section p {
  margin-bottom: 10px;
  font-size: 16px;
}

.customer-section strong {
  color: #1d3557;
}

.items-section {
  margin-bottom: 30px;
}

.items-section h3 {
  color: #1d3557;
  margin-bottom: 20px;
  font-size: 22px;
  border-bottom: 2px solid #1d3557;
  padding-bottom: 10px;
}

.items-list {
  list-style: none;
  padding: 0;
}

.items-list li {
  background: #f8f9fa;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 10px;
  align-items: center;
  transition: all 0.3s ease;
}

.items-list li:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.item-name {
  font-weight: bold;
  color: #1d3557;
}

.item-size {
  color: #457b9d;
  font-size: 14px;
}

.item-quantity {
  color: #6c757d;
  font-size: 14px;
}

.item-price {
  color: #e63946;
  font-weight: bold;
  font-size: 18px;
  text-align: right;
}

.total-section {
  background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
  color: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 30px;
}

.total-price {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

.action-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-back,
.btn-confirm {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-back {
  background: #6c757d;
  color: white;
}

.btn-back:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.btn-confirm {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.btn-confirm:hover {
  background: linear-gradient(135deg, #1e7e34 0%, #1a9b7a 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .items-wrapper {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .summary-content {
    padding: 20px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn-back,
  .btn-confirm {
    width: 100%;
  }

  .items-list li {
    grid-template-columns: 1fr;
    gap: 5px;
    text-align: center;
  }

  .item-price {
    text-align: center;
  }
}
