/* USER AUTHENTICATION STYLES */
.user-section {
  position: relative;
}

.login-btn, .user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--light-green);
  padding: 10px 15px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--primary-green);
}

.login-btn:hover, .user-profile:hover {
  background: var(--primary-green);
  color: white;
}

.login-modal, .profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.login-modal.show, .profile-modal.show {
  opacity: 1;
  visibility: visible;
}

.login-content, .profile-content {
  background: white;
  border-radius: 20px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.profile-content {
  width: 600px;
  max-height: 90%;
  overflow-y: auto;
}

.login-header, .profile-header {
  background: var(--primary-green);
  color: white;
  padding: 20px;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-login, .close-profile {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.login-form {
  padding: 30px;
}

.login-form input {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  outline: none;
}

.login-form button {
  width: 100%;
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}

.profile-body {
  padding: 30px;
}

.info-card {
  background: var(--light-green);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.info-card h4 {
  color: var(--primary-green);
  margin-bottom: 15px;
}

.user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  min-width: 180px;
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.user-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-item {
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-item:hover {
  background: var(--light-green);
}

/* COIN SYSTEM */
.rewards-section {
  padding: 15px 20px;
  border-top: 1px solid var(--border-light);
  background: var(--light-green);
}

.coins-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.coins-display i {
  color: #FFD700;
  font-size: 18px;
}

.use-coins-btn {
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

.active-discount {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ff9800;
  color: white;
  padding: 8px;
  border-radius: 6px;
  font-size: 14px;
}

.coins-card .coins-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coin-balance {
  text-align: center;
}

.coin-amount {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
}

.discount-line, .coins-line {
  color: green;
}

/* THEME CUSTOMIZER */
.theme-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.theme-modal.show {
  opacity: 1;
  visibility: visible;
}

.theme-content {
  background: white;
  border-radius: 20px;
  width: 500px;
  max-width: 90%;
}

.theme-header {
  background: var(--primary-green);
  color: white;
  padding: 20px;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.theme-body {
  padding: 30px;
}

.theme-option {
  margin-bottom: 25px;
}

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

.bg-options {
  display: flex;
  gap: 10px;
}

.bg-btn {
  padding: 8px 15px;
  border: 2px solid var(--border-light);
  background: white;
  border-radius: 8px;
  cursor: pointer;
}

.bg-btn.active {
  border-color: var(--primary-green);
  background: var(--light-green);
}

/* NOTIFICATION MODAL */
.notification-modal {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 3000;
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(350px);
  transition: all 0.3s ease;
}

.notification-modal.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.notification-header {
  background: var(--primary-green);
  color: white;
  padding: 15px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-body {
  padding: 20px;
}

.claim-btn {
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}

/* INVOICE SYSTEM */
.view-all-btn {
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 14px;
}

.invoice-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.invoice-modal.show {
  opacity: 1;
  visibility: visible;
}

.invoice-content {
  background: white;
  border-radius: 20px;
  width: 700px;
  max-width: 95%;
  max-height: 90%;
  overflow-y: auto;
}

.invoice-header {
  background: var(--primary-green);
  color: white;
  padding: 20px;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.invoice-body {
  padding: 30px;
}

.invoice-item {
  background: var(--light-green);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.invoice-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.view-btn {
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

/* INVOICE VIEWER */
.invoice-viewer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.invoice-viewer-modal.show {
  opacity: 1;
  visibility: visible;
}

.invoice-viewer-content {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 900px;
  max-height: 95%;
  overflow-y: auto;
}

.invoice-viewer-header {
  background: var(--primary-green);
  color: white;
  padding: 20px;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.invoice-actions {
  display: flex;
  gap: 10px;
}

.print-btn, .download-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
}

.close-viewer {
  background: none;
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.invoice-viewer-body {
  padding: 30px;
}

/* INVOICE DOCUMENT */
.invoice-document {
  max-width: 800px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.invoice-header-doc {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-green);
}

.shop-info h2 {
  color: var(--primary-green);
  margin-bottom: 10px;
}

.shop-info p {
  margin: 5px 0;
  color: var(--text-gray);
}

.invoice-info {
  text-align: right;
}

.invoice-info h3 {
  color: var(--primary-green);
  font-size: 24px;
  margin-bottom: 10px;
}

.customer-info {
  background: var(--light-green);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.customer-info h4 {
  color: var(--primary-green);
  margin-bottom: 15px;
}

.invoice-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.invoice-table th,
.invoice-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.invoice-table th {
  background: var(--primary-green);
  color: white;
  font-weight: 600;
}

.invoice-table td {
  background: white;
}

.invoice-totals {
  margin-top: 30px;
  padding: 20px;
  background: var(--light-green);
  border-radius: 10px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 16px;
}

.total-line.discount {
  color: green;
}

.total-line.coins {
  color: #FFD700;
}

.total-line.final {
  border-top: 2px solid var(--primary-green);
  padding-top: 15px;
  margin-top: 15px;
  font-size: 20px;
  color: var(--primary-green);
}

.invoice-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  color: var(--text-gray);
}

.address-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.profile-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.action-btn {
  flex: 1;
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logout-btn {
  background: #ff4444;
}
