/* Import user profile styles for consistency */
/* @import url('./userprofile.css'); */

/* BODY */
.UPbody {
  min-height: 100vh;
  background: #fef8e4;
  box-sizing: border-box;
  overflow-x: hidden;
  position: relative;
}


/* Make container fill the available vertical space */
.UPcontainer {
  display: flex;
  min-height: 100vh;
  box-sizing: border-box;
  margin: 0;
  padding: 15px;
  gap: 15px;
}


/* ORmenubar styles are handled by ORmenubar.css */

/* CONTENT AREA */
.UPcontent {
  flex: 1 1 auto;
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  background: transparent;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 30px);
}


/* Desktop sticky behavior */
@media (min-width: 1025px) {
  .UPbody {
    height: 100vh;
    overflow: hidden;
  }
  
  .UPcontainer {
    height: 100vh;
  }
  
  .UPcontent {
    max-height: calc(100vh - 30px);
    overflow-y: auto;
  }
}

.UPcontent h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #6F4F37;
  font-weight: 700;
}

/* Sections */
.UPcontent section {
  margin-bottom: 20px;
  background: #f8f9fa;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.UPcontent h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #6F4F37;
  font-weight: 600;
}

/* Override specific styles for points page */

/* Header Section - Override for points display */
.points-header {
  background: linear-gradient(135deg, #6F4F37 0%, #8B5A3C 100%);
  padding: 20px;
  color: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(111, 79, 55, 0.3);
  margin-bottom: 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 15px;
}

.Generate-QR-btn {
  background: #896243;
  padding: 10px 20px;
  font-size: 14px;
  color: white;
  border: none;
  border-radius: 10px;
}

.Generate-QR-btn:hover {
  background: #6f4f37;
  transform: translateY(-2px);
  cursor: pointer;
  transition: all 0.3s ease;
}


.header-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.points-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.points-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coin-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-icon img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.coin-icon img:hover {
  transform: scale(1.1);
}

.points-text {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.points-number {
  font-size: 2.5rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.points-label {
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.9;
}

.header-right {
  display: flex;
  align-items: center;
}

.tab-navigation {
  display: flex;
  gap: 5px;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 5px;
  backdrop-filter: blur(10px);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-radius: 20px;
  padding: 10px 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-icon {
  font-size: 1.1rem;
}

.tab-content {
  margin-top: 20px;
  min-height: 600px;
  padding: 20px;
}

.tab-content-scrollable {
  max-height: 700px;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.tab-content-scrollable::-webkit-scrollbar {
  display: none; /* WebKit */
}

/* Empty State Styles */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

.empty-subtitle {
  font-size: 0.9rem;
  color: #999;
  margin-top: 5px;
}

/* Redeemed Vouchers Grid */
.redeemed-vouchers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.redeemed-voucher-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 2px solid #e8f5e8;
  position: relative;
}

.redeemed-voucher-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #28a745;
}

.redeemed-voucher-image {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.redeemed-voucher-info {
  text-align: center;
}

.redeemed-voucher-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #6F4F37;
  margin-bottom: 8px;
  line-height: 1.3;
}

.redeemed-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
  font-weight: 500;
}

.redeemed-status {
  margin-top: 10px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.active {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-badge.expired {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-badge.used {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* Main Content */
.points-content {
  padding: 30px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.redeem-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
}

/* Vouchers Grid - Override for profile page layout */
.vouchers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  justify-content: start;
  align-items: start;
}

/* Tablet override for vouchers grid */
@media (max-width: 1024px) and (min-width: 769px) {
  .vouchers-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    margin-top: 15px !important;
  }
  
  .voucher-card {
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* Mobile override for vouchers grid */
@media (max-width: 768px) {
  .vouchers-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }
  
  .voucher-card {
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 480px) {
  .vouchers-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4px !important;
    margin-top: 8px !important;
  }
  
  .voucher-card {
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

.voucher-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 2px solid transparent;
  min-height: 200px;
  max-width: 320px;
  width: 100%;
}

.voucher-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #6F4F37;
}

.voucher-image {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  flex-shrink: 0;
  height: 140px;
  align-items: center;
}

.voucher-bg {
  width: 140px;
  height: 140px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.voucher-db-image {
  width: 140px;
  height: 140px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
}

.voucher-no-image {
  width: 140px;
  height: 140px;
  border-radius: 15px;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.voucher-no-image .no-image-text {
  color: #6c757d;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.voucher-bg.buy1get1 {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: 2px solid #ffa500;
}

.voucher-bg.off50 {
  background: linear-gradient(135deg, #87ceeb 0%, #b0e0e6 100%);
  border: 2px solid #4682b4;
}

.voucher-bg.off60 {
  background: linear-gradient(135deg, #98fb98 0%, #90ee90 100%);
  border: 2px solid #32cd32;
}

.voucher-bg.off20 {
  background: linear-gradient(135deg, #ffb6c1 0%, #ffc0cb 100%);
  border: 2px solid #ff69b4;
}

.voucher-text {
  text-align: center;
  color: #000;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.discount-text {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: #000;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.description-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.voucher-info {
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.voucher-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #6F4F37;
  margin-bottom: 10px;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voucher-description {
  margin-bottom: 12px;
  text-align: center;
}

.voucher-description p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  margin: 0;
  font-style: italic;
}

.voucher-validity {
  margin-bottom: 12px;
}

.validity-text {
  font-size: 0.85rem;
  color: #28a745;
  font-weight: 600;
  background: #d4edda;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid #c3e6cb;
  display: inline-block;
}

/* Bottom section for validity, points, and button */
.voucher-bottom-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.voucher-points {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #6F4F37 0%, #8B5A3C 100%);
  padding: 8px 16px;
  border-radius: 15px;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.voucher-expiry {
  font-size: 0.9rem;
  color: #8B7355;
  font-weight: 500;
  background: #f8f6f0;
  padding: 4px 8px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: inline-block;
  width: fit-content;
}

.redeem-btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: none;
  margin-top: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.redeem-btn.available {
  background: linear-gradient(135deg, #6F4F37 0%, #8B5A3C 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(111, 79, 55, 0.3);
  font-weight: 700;
}

.redeem-btn.available:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(111, 79, 55, 0.4);
}

.redeem-btn.unavailable {
  background: #e0e0e0;
  color: #666;
  cursor: not-allowed;
  font-weight: 600;
  border: 1px solid #ccc;
}

/* History Section - Override for profile page layout */
.history-section {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-top: 0;
}

.history-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 15px;
}

.history-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.history-title {
  font-weight: 600;
  color: #333;
}

.history-date {
  font-size: 0.9rem;
  color: #666;
}

.history-points {
  font-weight: 700;
  font-size: 1.1rem;
}

.history-points.earned {
  color: #28a745;
}

.history-points.spent {
  color: #dc3545;
}

/* Remove navigation styles since we're using ORmenubar */





/* Ensure consistent card heights */
.voucher-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 200px;
}

.voucher-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* When there are few vouchers, align them to the left */
.vouchers-grid:has(.voucher-card:nth-child(1):last-child),
.vouchers-grid:has(.voucher-card:nth-child(2):last-child),
.vouchers-grid:has(.voucher-card:nth-child(3):last-child) {
  justify-content: start;
  grid-template-columns: repeat(auto-fit, minmax(300px, max-content));
}

/* ======================================== */
/* RESPONSIVE STYLES - TABLET AND MOBILE   */
/* ======================================== */

/* Mobile and tablet - natural scrolling */
@media (max-width: 1024px) {
  .UPbody {
    height: auto;
    overflow: visible;
  }
  
  .UPcontainer {
    height: auto;
    min-height: auto;
  }
  
  .UPcontent {
    height: auto;
    overflow: visible;
    max-height: none;
  }
}

/* Tablets (<= 1024px) */
@media (max-width: 1024px) {
  .UPcontainer {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

  .UPcontent {
    margin-left: 0;
    padding: 12px;
  }
  
  .UPcontent h1 {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }
  
  .UPcontent h2 {
    font-size: 1.4rem;
    margin-bottom: 18px;
  }
  
  .UPcontent section {
    padding: 20px;
    margin-bottom: 25px;
  }
  
  .points-header {
    padding: 18px;
    margin-bottom: 18px;
  }
  
  .points-title {
    font-size: 1.2rem;
  }

  .points-number {
    font-size: 2.2rem;
  }
  
  .voucher-card {
    padding: 15px;
    min-height: 320px;
  }
  
  .voucher-title {
    font-size: 1.1rem;
  }
  
  .redeem-btn {
    padding: 12px 18px;
    font-size: 0.9rem;
    min-height: 44px;
  }
  
  .voucher-image {
    height: 90px;
  }
  
  .voucher-bg {
    width: 90px;
    height: 90px;
  }
  
  .voucher-db-image {
    width: 90px;
    height: 90px;
  }
  
  .voucher-no-image {
    width: 90px;
    height: 90px;
  }
  
  .tab-navigation {
    flex-direction: row;
    gap: 6px;
    padding: 8px;
    justify-content: center;
  }
  
  .tab-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 12px;
    font-size: 0.9rem;
    justify-content: center;
  }
  
  /* Tablet voucher grid - 2 per row */
  .vouchers-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    margin-top: 15px !important;
  }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
  .UPcontainer {
    flex-direction: column;
    height: auto;
    padding: 5px;
  }
  
  .UPcontent {
    padding: 8px;
  }
  
  .UPcontent h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .UPcontent h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .UPcontent section {
    padding: 15px;
    margin-bottom: 20px;
  }

  .header-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .points-header {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .points-title {
    font-size: 1.1rem;
  }

  .points-number {
    font-size: 1.8rem;
  }
  
  .points-label {
    font-size: 1rem;
  }

  .tab-navigation {
    flex-direction: row;
    gap: 4px;
    width: 100%;
    padding: 8px;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .tab-btn {
    flex: 1;
    min-width: 80px;
    justify-content: center;
    padding: 8px 6px;
    font-size: 0.8rem;
  }
  
  .tab-icon {
    font-size: 0.9rem;
  }

  .redeemed-vouchers-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .redeemed-voucher-card {
    padding: 10px;
    margin-bottom: 8px;
  }

  .redeemed-voucher-title {
    font-size: 1rem;
  }

  .redeemed-date {
    font-size: 0.8rem;
  }

  .redeem-title {
    font-size: 1.3rem;
  }

  .vouchers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
  }

  .voucher-card {
    padding: 8px;
    margin-bottom: 8px;
    min-height: 240px;
    max-width: 100%;
  }
  
  .voucher-title {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }
  
  .voucher-description p {
    font-size: 0.75rem;
  }
  
  .validity-text {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
  
  .voucher-points {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
  
  .redeem-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    min-height: 36px;
  }

  .voucher-image {
    height: 80px;
  }
  
  .voucher-bg {
    width: 80px;
    height: 80px;
  }
  
  .voucher-db-image {
    width: 80px;
    height: 80px;
  }
  
  .voucher-no-image {
    width: 80px;
    height: 80px;
  }

  .discount-text {
    font-size: 0.9rem;
  }

  .description-text {
    font-size: 0.6rem;
  }
  
  .history-item {
    padding: 10px;
  }
  
  .history-title {
    font-size: 0.9rem;
  }
  
  .history-date {
    font-size: 0.8rem;
  }
  
  .history-points {
    font-size: 1rem;
  }
}

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
  .UPcontainer {
    flex-direction: column;
    height: auto;
    margin: 3px;
    padding: 3px;
  }
  
  .UPcontent {
    padding: 5px;
  }
  
  .UPcontent h1 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
  
  .UPcontent h2 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
  
  .UPcontent section {
    padding: 12px;
    margin-bottom: 15px;
  }

  .points-header {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
  }
  
  .points-title {
    font-size: 1rem;
  }

  .points-number {
    font-size: 1.6rem;
  }
  
  .points-label {
    font-size: 0.9rem;
  }
  
  .tab-navigation {
    flex-direction: row;
    padding: 6px;
    gap: 3px;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .tab-btn {
    flex: 1;
    min-width: 60px;
    padding: 6px 4px;
    font-size: 0.75rem;
    justify-content: center;
    white-space: nowrap;
  }
  
  .tab-icon {
    font-size: 0.9rem;
  }
  
  .tab-btn span {
    display: inline;
  }
  
  .tab-btn .tab-icon {
    font-size: 0.9rem;
  }

  .points-content {
    padding: 15px 10px;
  }

  .voucher-card {
    padding: 8px;
    margin-bottom: 6px;
    min-height: 250px;
  }
  
  .voucher-title {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }
  
  .voucher-description p {
    font-size: 0.75rem;
  }
  
  .validity-text {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
  
  .voucher-points {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
  
  .redeem-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    min-height: 36px;
  }

  .voucher-bg {
    width: 60px;
    height: 60px;
  }
  
  .vouchers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    margin-top: 8px;
  }
  
  .voucher-card {
    padding: 6px;
    margin-bottom: 4px;
    min-height: 200px;
    max-width: 100%;
  }
  
  .voucher-title {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }
  
  .voucher-description p {
    font-size: 0.7rem;
  }
  
  .validity-text {
    font-size: 0.65rem;
    padding: 2px 4px;
  }
  
  .voucher-points {
    font-size: 0.75rem;
    padding: 3px 6px;
  }
  
  .redeem-btn {
    padding: 6px 8px;
    font-size: 0.75rem;
    min-height: 32px;
  }
  
  .voucher-image {
    height: 70px;
  }
  
  .voucher-bg {
    width: 70px;
    height: 70px;
  }
  
  .voucher-db-image {
    width: 70px;
    height: 70px;
  }
  
  .voucher-no-image {
    width: 70px;
    height: 70px;
  }
  
  .redeemed-vouchers-grid {
    gap: 6px;
    margin-top: 8px;
  }
  
  .redeemed-voucher-card {
    padding: 8px;
    margin-bottom: 6px;
  }
  
  .redeemed-voucher-title {
    font-size: 0.9rem;
  }
  
  .redeemed-date {
    font-size: 0.75rem;
  }
  
  .history-item {
    padding: 8px;
  }
  
  .history-title {
    font-size: 0.8rem;
  }
  
  .history-date {
    font-size: 0.75rem;
  }
  
  .history-points {
    font-size: 0.9rem;
  }

  .discount-text {
    font-size: 0.8rem;
  }

  .description-text {
    font-size: 0.55rem;
  }
}

/* ======================================== */
/* QR CODE BUTTON AND MODAL STYLES         */
/* ======================================== */

/* QR Code Button */
.qr-code-section {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
}

.qr-code-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #6F4F37;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
  text-shadow: none;
  min-width: 100px;
}

.qr-code-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  transform: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* QR Code Modal */
.qr-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.qr-modal-content {
  background: white;
  border-radius: 20px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.qr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #e9ecef;
  background: linear-gradient(135deg, #6F4F37 0%, #8B5A3C 100%);
  color: white;
  border-radius: 20px 20px 0 0;
}

.qr-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.qr-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-weight: bold;
}

.qr-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.qr-modal-body {
  padding: 0;
  text-align: center;
  max-height: 70vh;
  overflow: hidden;
}

.qr-modal-scrollable {
  max-height: 70vh;
  overflow-y: auto;
  padding: 30px 25px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.qr-modal-scrollable::-webkit-scrollbar {
  display: none; /* WebKit */
}

.qr-code-container {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 15px;
  border: 2px dashed #dee2e6;
}

.qr-code-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.qr-code-info {
  text-align: left;
}

.qr-description {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 20px;
  line-height: 1.5;
  text-align: center;
}

.qr-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid #e9ecef;
}

.qr-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.qr-detail-item:last-child {
  border-bottom: none;
}

.qr-detail-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
}

.qr-detail-value {
  font-weight: 700;
  color: #6F4F37;
  font-size: 0.9rem;
}

/* QR Modal Action Buttons */
.qr-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.qr-download-btn,
.qr-close-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-download-btn {
  background: #6F4F37;
  color: white;
  border: 1px solid #5a3f2e;
}

.qr-download-btn:hover {
  background: #5a3f2e;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(111, 79, 55, 0.3);
}

.qr-generated-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

/* Your Saved QR Codes Section */
.qr-past-codes-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.qr-past-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.qr-past-title {
  margin: 0;
  color: #6F4F37;
  font-size: 1.2rem;
  font-weight: 700;
}

.qr-past-count {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
}

.qr-code-number {
  background: #6F4F37;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.qr-code-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.qr-download-btn {
  padding: 6px 12px;
  background: #6F4F37;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 70px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-download-btn:hover {
  background: #5a3f2e;
  transform: translateY(-1px);
}

.qr-delete-btn {
  padding: 6px 12px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 70px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-delete-btn:hover {
  background: #c82333;
  transform: translateY(-1px);
}

.qr-close-btn {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
}

.qr-close-btn:hover {
  background: #e9ecef;
  color: #495057;
  border-color: #adb5bd;
}

/* QR Validity Section */
.qr-validity-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.qr-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.qr-checkbox {
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: #6F4F37;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.qr-checkbox-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  flex: 1;
}

.qr-checkbox-text {
  font-weight: 600;
  color: #6F4F37;
  font-size: 0.9rem;
}

.qr-checkbox-description {
  font-size: 0.8rem;
  color: #6c757d;
  line-height: 1.4;
}

/* QR Expiration Section */
.qr-expiration-section {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.qr-expiration-header {
  margin-bottom: 15px;
}

.qr-expiration-label {
  font-weight: 600;
  color: #6F4F37;
  font-size: 0.9rem;
}

.qr-expiration-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}

.qr-expiration-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qr-expiration-option input[type="radio"] {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: #6F4F37;
  cursor: pointer;
}

.qr-expiration-option label {
  font-size: 0.85rem;
  color: #495057;
  cursor: pointer;
  font-weight: 500;
}

.qr-expiration-info {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid #dee2e6;
}

.qr-expiration-date {
  font-size: 0.8rem;
  color: #6F4F37;
  font-weight: 600;
  background: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #6F4F37;
  display: inline-block;
}

/* Custom Date Picker */
.qr-custom-date {
  margin-top: 15px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.qr-custom-date-label {
  display: block;
  font-weight: 600;
  color: #6F4F37;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.qr-custom-date-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #495057;
  background: #fff;
}

.qr-custom-date-input:focus {
  outline: none;
  border-color: #6F4F37;
  box-shadow: 0 0 0 2px rgba(111, 79, 55, 0.25);
}

/* Past QR Codes Section */
.qr-past-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid #e9ecef;
}

.qr-past-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.qr-past-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #6F4F37;
  margin: 0;
}

.qr-past-count {
  font-size: 0.8rem;
  color: #6c757d;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid #dee2e6;
}

.qr-past-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.qr-past-list::-webkit-scrollbar {
  display: none; /* WebKit */
}

.qr-past-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.qr-past-item:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

.qr-past-qr {
  flex-shrink: 0;
}

.qr-past-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #dee2e6;
}

.qr-past-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qr-past-details {
  display: flex;
  gap: 12px;
  align-items: center;
}

.qr-past-points {
  font-weight: 700;
  color: #6F4F37;
  font-size: 0.9rem;
}

.qr-past-date {
  font-size: 0.8rem;
  color: #6c757d;
}

.qr-past-status {
  font-size: 0.75rem;
}

.qr-status-infinite {
  color: #28a745;
  font-weight: 600;
}

.qr-status-expires {
  color: #dc3545;
  font-weight: 600;
}

.qr-past-actions {
  flex-shrink: 0;
}

.qr-delete-btn {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 32px;
  min-width: 70px;
}

.qr-delete-btn:hover {
  background: #c82333;
  transform: scale(1.05);
}

/* Delete Confirmation Modal */
.delete-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  backdrop-filter: blur(5px);
}

.delete-modal-content {
  background: white;
  border-radius: 20px;
  padding: 0;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

.delete-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #e9ecef;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border-radius: 20px 20px 0 0;
}

.delete-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.delete-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-weight: bold;
}

.delete-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.delete-modal-body {
  padding: 30px 25px;
  text-align: center;
}

.delete-modal-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.delete-modal-question {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}

.delete-modal-details {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e9ecef;
}

.delete-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.delete-detail-item:last-child {
  border-bottom: none;
}

.delete-detail-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
}

.delete-detail-value {
  font-weight: 700;
  color: #6F4F37;
  font-size: 0.9rem;
}

.delete-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 0 25px 25px;
}

.delete-cancel-btn,
.delete-confirm-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.delete-cancel-btn {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
}

.delete-cancel-btn:hover {
  background: #e9ecef;
  color: #495057;
  border-color: #adb5bd;
}

.delete-confirm-btn {
  background: #dc3545;
  color: white;
  border: 1px solid #c82333;
}

.delete-confirm-btn:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Responsive QR Modal */
@media (max-width: 768px) {
  .qr-modal-content {
    width: 95%;
    margin: 10px;
  }
  
  .qr-modal-header {
    padding: 15px 20px;
  }
  
  .qr-modal-header h3 {
    font-size: 1.1rem;
  }
  
  .qr-modal-body {
    padding: 20px 15px;
  }
  
  .qr-code-container {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .qr-details {
    padding: 15px;
  }
  
  .qr-detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .qr-detail-value {
    font-size: 0.85rem;
  }
  
  .qr-modal-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .qr-download-btn,
  .qr-close-btn {
    width: 100%;
    padding: 12px 20px;
  }
  
  .qr-validity-section {
    margin-top: 20px;
    padding-top: 15px;
  }
  
  .qr-checkbox-container {
    gap: 10px;
  }
  
  .qr-checkbox {
    width: 16px;
    height: 16px;
  }
  
  .qr-checkbox-text {
    font-size: 0.85rem;
  }
  
  .qr-checkbox-description {
    font-size: 0.75rem;
  }
  
  .qr-expiration-section {
    margin-top: 15px;
    padding: 15px;
  }
  
  .qr-expiration-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .qr-expiration-option label {
    font-size: 0.8rem;
  }
  
  .qr-expiration-date {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  
  .qr-custom-date {
    margin-top: 12px;
    padding: 12px;
  }
  
  .qr-custom-date-label {
    font-size: 0.85rem;
  }
  
  .qr-custom-date-input {
    font-size: 0.85rem;
    padding: 6px 10px;
  }
  
  .qr-past-section {
    margin-top: 20px;
    padding-top: 15px;
  }
  
  .qr-past-title {
    font-size: 1rem;
  }
  
  .qr-past-count {
    font-size: 0.75rem;
    padding: 3px 6px;
  }
  
  .qr-past-item {
    padding: 10px;
    gap: 10px;
  }
  
  .qr-past-image {
    width: 50px;
    height: 50px;
  }
  
  .qr-past-points {
    font-size: 0.85rem;
  }
  
  .qr-past-date {
    font-size: 0.75rem;
  }
  
  .qr-past-status {
    font-size: 0.7rem;
  }
  
  .qr-delete-btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
  
  .delete-modal-content {
    width: 95%;
    margin: 10px;
  }
  
  .delete-modal-header {
    padding: 15px 20px;
  }
  
  .delete-modal-header h3 {
    font-size: 1.1rem;
  }
  
  .delete-modal-body {
    padding: 20px 15px;
  }
  
  .delete-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
  
  .delete-modal-question {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .delete-modal-details {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .delete-detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .delete-detail-value {
    font-size: 0.85rem;
  }
  
  .delete-modal-actions {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px 20px;
  }
  
  .delete-cancel-btn,
  .delete-confirm-btn {
    width: 100%;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .qr-modal-content {
    width: 98%;
    margin: 5px;
  }
  
  .qr-modal-header {
    padding: 12px 15px;
  }
  
  .qr-modal-header h3 {
    font-size: 1rem;
  }
  
  .qr-modal-body {
    padding: 15px 10px;
  }
  
  .qr-code-container {
    padding: 10px;
    margin-bottom: 15px;
  }
  
  .qr-description {
    font-size: 0.9rem;
  }
  
  .qr-details {
    padding: 12px;
  }
  
  .qr-detail-label,
  .qr-detail-value {
    font-size: 0.8rem;
  }
  
  .qr-modal-actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
  }
  
  .qr-download-btn,
  .qr-close-btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .qr-validity-section {
    margin-top: 15px;
    padding-top: 12px;
  }
  
  .qr-checkbox-container {
    gap: 8px;
  }
  
  .qr-checkbox {
    width: 16px;
    height: 16px;
  }
  
  .qr-checkbox-text {
    font-size: 0.8rem;
  }
  
  .qr-checkbox-description {
    font-size: 0.7rem;
  }
  
  .qr-expiration-section {
    margin-top: 12px;
    padding: 12px;
  }
  
  .qr-expiration-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .qr-expiration-option label {
    font-size: 0.75rem;
  }
  
  .qr-expiration-date {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
  
  .qr-custom-date {
    margin-top: 10px;
    padding: 10px;
  }
  
  .qr-custom-date-label {
    font-size: 0.8rem;
  }
  
  .qr-custom-date-input {
    font-size: 0.8rem;
    padding: 5px 8px;
  }
  
  .qr-past-section {
    margin-top: 15px;
    padding-top: 12px;
  }
  
  .qr-past-title {
    font-size: 0.9rem;
  }
  
  .qr-past-count {
    font-size: 0.7rem;
    padding: 2px 5px;
  }
  
  .qr-past-item {
    padding: 8px;
    gap: 8px;
  }
  
  .qr-past-image {
    width: 45px;
    height: 45px;
  }
  
  .qr-past-points {
    font-size: 0.8rem;
  }
  
  .qr-past-date {
    font-size: 0.7rem;
  }
  
  .qr-past-status {
    font-size: 0.65rem;
  }
  
  .qr-delete-btn {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
  
  .delete-modal-content {
    width: 98%;
    margin: 5px;
  }
  
  .delete-modal-header {
    padding: 12px 15px;
  }
  
  .delete-modal-header h3 {
    font-size: 1rem;
  }
  
  .delete-modal-body {
    padding: 15px 10px;
  }
  
  .delete-modal-icon {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  
  .delete-modal-question {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
  
  .delete-modal-details {
    padding: 12px;
    margin-bottom: 12px;
  }
  
  .delete-detail-label,
  .delete-detail-value {
    font-size: 0.8rem;
  }
  
  .delete-modal-actions {
    padding: 0 10px 15px;
  }
  
  .delete-cancel-btn,
  .delete-confirm-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}
