/* Frontend Styles */
.hms-registration-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px;
}

.hms-registration-form {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.hms-registration-form h2 {
  color: #00bfff;
  text-align: center;
  margin-bottom: 10px;
  font-size: 2rem;
  font-weight: 700;
}

.hms-registration-form p {
  text-align: center;
  color: #6b7280;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.hms-form-group {
  margin-bottom: 25px;
  position: relative;
}

.hms-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hms-form-group input,
.hms-form-group select {
  width: 100%;
  padding: 15px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #fafafa;
}

.hms-form-group input:focus,
.hms-form-group select:focus {
  outline: none;
  border-color: #00bfff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.1);
  transform: translateY(-1px);
}

.hms-form-group input.error,
.hms-form-group select.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.field-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.hms-submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #00bfff, #6a5acd);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hms-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 191, 255, 0.3);
}

.hms-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.hms-message {
  padding: 18px;
  border-radius: 10px;
  margin-top: 20px;
  text-align: center;
  font-weight: 500;
  animation: slideIn 0.3s ease;
}

.hms-message.success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 2px solid #10b981;
}

.hms-message.error {
  background: linear-gradient(135deg, #fee2e2, #fca5a5);
  color: #991b1b;
  border: 2px solid #ef4444;
}

.hms-message.info {
  background: linear-gradient(135deg, #dbeafe, #93c5fd);
  color: #1e40af;
  border: 2px solid #3b82f6;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Member Dashboard Styles */
.hms-member-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hms-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding: 40px;
  background: linear-gradient(135deg, #00bfff 0%, #6a5acd 100%);
  color: white;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 191, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.hms-dashboard-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  transform: rotate(45deg);
}

.hms-welcome-section h1 {
  margin: 0 0 10px 0;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hms-member-id {
  margin: 0 0 20px 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

.hms-membership-status {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.hms-payment-status {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.hms-payment-status.current {
  background: rgba(16, 185, 129, 0.2);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.hms-payment-status.overdue {
  background: rgba(239, 68, 68, 0.2);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.hms-quick-stats {
  display: flex;
  gap: 30px;
}

.hms-stat-item {
  text-align: center;
}

.hms-stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.hms-stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.hms-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.hms-dashboard-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f5f9;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hms-dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.hms-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.hms-card-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hms-edit-btn,
.hms-view-all {
  color: #00bfff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.hms-edit-btn:hover,
.hms-view-all:hover {
  background: rgba(0, 191, 255, 0.1);
}

.hms-card-content {
  padding: 30px;
}

/* Status Card Styles */
.hms-status-display {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hms-status-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}

.hms-status-icon.active {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
}

.hms-status-icon.inactive {
  background: linear-gradient(135deg, #fee2e2, #fca5a5);
  color: #991b1b;
}

.hms-status-info h4 {
  margin: 0 0 10px 0;
  font-size: 1.4rem;
  color: #1e293b;
}

.hms-status-info p {
  margin: 0 0 15px 0;
  color: #64748b;
  line-height: 1.6;
}

.hms-next-payment {
  padding: 15px;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 4px solid #00bfff;
  margin-top: 15px;
}

/* QR Card Styles */
.hms-qr-container {
  text-align: center;
}

.hms-qr-generate {
  padding: 40px 20px;
}

.hms-qr-placeholder {
  text-align: center;
}

.hms-qr-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hms-qr-placeholder h4 {
  margin: 0 0 10px 0;
  color: #1e293b;
}

.hms-qr-placeholder p {
  margin: 0 0 20px 0;
  color: #64748b;
}

#qr-display img {
  width: 180px;
  height: 180px;
  border: 3px solid #e2e8f0;
  border-radius: 15px;
  margin-bottom: 20px;
}

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

.hms-qr-info {
  margin-top: 20px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 14px;
  color: #64748b;
}

/* Info Card Styles */
.hms-member-info {
  space-y: 15px;
}

.hms-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f1f5f9;
}

.hms-info-row:last-child {
  border-bottom: none;
}

.hms-info-label {
  font-weight: 500;
  color: #64748b;
}

.hms-info-value {
  font-weight: 600;
  color: #1e293b;
}

/* Payment Card Styles */
.hms-no-payments {
  text-align: center;
  padding: 40px 20px;
}

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

.hms-no-payments h4 {
  margin: 0 0 10px 0;
  color: #1e293b;
}

.hms-no-payments p {
  margin: 0 0 20px 0;
  color: #64748b;
}

.hms-payment-list {
  space-y: 15px;
}

.hms-payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.hms-payment-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hms-payment-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
}

.hms-payment-month {
  font-weight: 600;
  color: #1e293b;
}

.hms-payment-date {
  font-size: 14px;
  color: #64748b;
}

/* Services Card Styles */
.hms-services-list {
  space-y: 15px;
}

.hms-service-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.hms-service-item.available {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #a7f3d0;
}

.hms-service-item.unavailable {
  background: #f8fafc;
  opacity: 0.6;
}

.hms-service-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

.hms-service-info {
  flex: 1;
}

.hms-service-info h4 {
  margin: 0 0 5px 0;
  color: #1e293b;
}

.hms-service-info p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.hms-service-status {
  font-size: 1.2rem;
  font-weight: bold;
}

.hms-service-item.available .hms-service-status {
  color: #059669;
}

.hms-service-item.unavailable .hms-service-status {
  color: #dc2626;
}

.hms-services-cta {
  margin-top: 25px;
  text-align: center;
  padding: 20px;
  background: #fef3c7;
  border-radius: 12px;
  border: 1px solid #fbbf24;
}

/* Support Card Styles */
.hms-support-options {
  space-y: 15px;
  margin-bottom: 25px;
}

.hms-support-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 10px;
}

.hms-support-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

.hms-support-info h4 {
  margin: 0 0 5px 0;
  color: #1e293b;
}

.hms-support-info p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.hms-support-cta {
  text-align: center;
}

/* Enhanced Button Styles */
.hms-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.hms-btn-primary {
  background: linear-gradient(135deg, #00bfff, #0ea5e9);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

.hms-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 191, 255, 0.4);
}

.hms-btn-secondary {
  background: linear-gradient(135deg, #6a5acd, #8b5cf6);
  color: white;
  box-shadow: 0 4px 15px rgba(106, 90, 205, 0.3);
}

.hms-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(106, 90, 205, 0.4);
}

/* Enhanced Status Badge */
.hms-status-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.hms-status-badge.active {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 1px solid #10b981;
}

.hms-status-badge.inactive {
  background: linear-gradient(135deg, #fee2e2, #fca5a5);
  color: #991b1b;
  border: 1px solid #ef4444;
}

.hms-status-badge.completed {
  background: linear-gradient(135deg, #dbeafe, #93c5fd);
  color: #1e40af;
  border: 1px solid #3b82f6;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hms-dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .hms-member-dashboard {
    padding: 15px;
  }

  .hms-dashboard-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 30px 20px;
  }

  .hms-welcome-section h1 {
    font-size: 2rem;
  }

  .hms-quick-stats {
    justify-content: center;
  }

  .hms-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hms-card-content {
    padding: 20px;
  }

  .hms-status-display {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .hms-payment-item {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .hms-info-row {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hms-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hms-card-header {
    padding: 20px;
  }

  .hms-card-content {
    padding: 15px;
  }

  .hms-qr-actions {
    flex-direction: column;
  }
}
