/* My Lounges Section */
.my-lounges-section {
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff5f7 100%);
  border-radius: 12px;
  border: 2px solid #e0e7ff;
}

/* Lounges Grid */
.lounges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Lounge Card */
.lounge-card {
  background: white;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
}

.lounge-card:hover {
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
  transform: translateY(-4px);
  border-color: #667eea;
}

.lounge-banner-image {
  width: 100%;
  height: 150px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lounge-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lounge-banner-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.lounge-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

/* Lounge Header */
.lounge-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.lounge-name {
  font-size: 1.125rem;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.lounge-description {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.lounge-card-footer {
  margin-top: auto;
  padding-top: 0.5rem;
}

.view-lounge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #667eea;
  font-weight: 600;
  transition: color 0.2s ease;
}

.lounge-card:hover .view-lounge-btn {
  color: #764ba2;
}

/* Membership Criteria */
.criteria-section {
  background: #f9fafb;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid #667eea;
}

.criteria-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.criteria-label i {
  color: #667eea;
}

.criteria-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Lounge Stats */
.lounge-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.stat i {
  color: #667eea;
}

/* Membership Fees */
.lounge-fees {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f0fdf4;
  border-radius: 8px;
  border: 1px solid #86efac;
}

.fee-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #166534;
  display: block;
  margin-bottom: 0.5rem;
}

.fee-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fee-item {
  background: white;
  padding: 0.25rem 0.625rem;
  border-radius: 12px;
  font-size: 0.8125rem;
  color: #166534;
  font-weight: 500;
  border: 1px solid #bbf7d0;
}

/* Lounge Actions */
.lounge-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #6b7280;
}

.empty-state i {
  font-size: 4rem;
  color: #d1d5db;
  margin-bottom: 1rem;
}

.empty-state p {
  font-size: 1.125rem;
  margin: 0.5rem 0;
}

.empty-state .hint {
  font-size: 0.9375rem;
  color: #9ca3af;
}

.empty-state a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.empty-state a:hover {
  text-decoration: underline;
}

/* Lounge Limit Info */
.lounge-limit-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #eff6ff;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.lounge-limit-info i {
  color: #3b82f6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5568d3 0%, #63368d 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #f59e0b;
  color: white;
}

.btn-secondary:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.btn-outline {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-outline:hover {
  background: #667eea;
  color: white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  flex: 1;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-header h3 i {
  color: #667eea;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

/* Form Styles */
form {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.required {
  color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-hint {
  display: block;
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.fee-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.fee-input-group {
  display: flex;
  flex-direction: column;
}

.fee-input-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e5e7eb;
}

.modal-actions .btn {
  flex: 1;
}

/* Alert Styles */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-title h2 {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .lounges-grid {
    grid-template-columns: 1fr;
  }

  .lounge-banner-image {
    height: 120px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .section-header .btn {
    width: 100%;
    justify-content: center;
  }

  .lounge-actions {
    flex-direction: column;
  }

  .lounge-actions .btn-sm {
    width: 100%;
  }

  .fee-inputs {
    grid-template-columns: 1fr;
  }

  .my-lounges-section {
    padding: 1rem;
  }
}

/* Row-Type Lounge Cards */
.lounges-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lounge-card-row {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
  overflow: hidden;
  min-height: 100px;
}

.lounge-card-row:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: #667eea;
}

.lounge-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lounge-card-row .lounge-header {
  margin-bottom: 0;
}

.lounge-card-row .lounge-name {
  font-size: 1.5rem;
  margin: 0;
}

.lounge-info {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4b5563;
}

.lounge-info .info-text {
  margin: 0.5rem 0;
}

.lounge-info .info-text:first-child {
  margin-top: 0;
}

.lounge-info .info-text:last-child {
  margin-bottom: 0;
}

.lounge-info strong {
  color: #374151;
  font-weight: 600;
}

.lounge-card-row .lounge-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
}

.lounge-card-row .lounge-actions .btn {
  min-width: 160px;
  justify-content: center;
}

@media (max-width: 1024px) {
  .lounge-card-row .lounge-actions {
    justify-content: stretch;
  }
  
  .lounge-card-row .lounge-actions .btn {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .lounge-content {
    padding: 1rem;
  }

  .lounge-card-row .lounge-name {
    font-size: 1.25rem;
  }
}


