
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

body {
  background: #ffffff;
  color: #333;
  padding-top: 80px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 10%;
  background: white;
  box-shadow: 0px 2px 10px rgba(123, 31, 162, 0.1);
  z-index: 1000;
  border-bottom: 2px solid #BA68C8;
}

.logo img { height: 40px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li { display: inline; }

.nav-links a {
  color: #6A1B9A;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}

.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #7B1FA2;
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
    position: relative;
    z-index: 1100;
  }

  .nav-links {
    position: absolute;
    top: 75px; right: 0;
    background: white;
    width: 100%;
    flex-direction: column;
    text-align: center;
    padding: 0;
    height: 0;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: height 0.5s ease-in-out;
  }

  .nav-links.active {
    height: auto;
    padding: 10px 0;
  }

  .nav-links li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
  }
}

#userEmail {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  vertical-align: middle;
  padding: 0 10px;
}

/* Page Title */
h1 {
  color: #7B1FA2;
  font-size: 30px;
  margin-bottom: 10px;
  text-align: center;
}

/* Orders Section */
.orders-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 20px;
}

.order-card {
  background: white;
  border: 1px solid #eee;
  border-left: 5px solid #7B1FA2;
  border-radius: 10px;
  width: 300px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}

.order-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(123, 31, 162, 0.2);
}

.image-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.order-img, .order-pdf {
  height: 150px;
  object-fit: cover;
  border-radius: 0px;
}

.order-img {
  width: 48%;
}

.order-img.single, .order-pdf {
  width: 100%;
}

.order-details {
  text-align: left;
  margin-top: 10px;
}

.order-details p {
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
}

/* Buttons */
.copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.copy-btn:hover {
  background-color: #f3e5f5;
}

.button-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.btn, .track-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Receipt Button */
.btn {
  background: #7B1FA2;
  color: white;
  border: none;
}

.track-btn {
  background: white;
  color: #7B1FA2;
  border: 2px solid #7B1FA2;
}

.temp-hover {
  background: #6A1B9A !important;
  color: white !important;
}

/* Footer */
.footer {
  padding: 20px;
  background: #f9f6fc;
  border-top: 1px solid #ddd;
  margin-top: 30px;
  text-align: center;
}

.footer p {
  color: #555;
  font-size: 14px;
}

/* Feedback / Error / Loading */
.loader, .error {
  text-align: center;
  margin: 15px;
  font-size: 16px;
  color: #7B1FA2;
}

/* Skeleton Loader */
.skeleton-loader {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 20px;
}

.skeleton-card {
  background: white;
  border: 1px solid #eee;
  border-left: 5px solid #ccc;
  border-radius: 10px;
  width: 300px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-img, .skeleton-text {
  border-radius: 4px;
  background: linear-gradient(-90deg, #eee 0%, #f8f8f8 50%, #eee 100%);
  background-size: 400% 400%;
  animation: shimmer 1.3s infinite ease-in-out;
}

.skeleton-img {
  height: 150px;
  border-radius: 8px;
}

.skeleton-text {
  height: 14px;
}

.skeleton-text.short { width: 40%; }
.skeleton-text.medium { width: 70%; }
.skeleton-text.full { width: 100%; }

.skeleton-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
