/* RegistrationManager.css - Styles matching original registration panel */

/* Container Styles */
.adddata-registration-dash-data-container {
  background-color: transparent;
}

.adddata-boulders-data-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
}

.adddata-boulders-data-box.unified-box {
  margin-bottom: 0;
}

/* Search Section */
.reg-dash-input-icons-container {
  max-width: 400px;
  margin: 0 auto;
}

.reg-dash-input-icons-container .custom-input-group {
  border-radius: 8px;
  overflow: hidden;
  background-color: #f8f9fa;
}

.reg-dash-input-icons-container .input-group-text {
  background-color: transparent;
  border: none;
  color: #6c757d;
}

.reg-dash-input-icons-container .search-icon {
  cursor: pointer;
  transition: background-color 0.2s;
}

.reg-dash-input-icons-container .search-icon:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.reg-dash-input-icons-container .form-control {
  border: none;
  background-color: transparent;
}

/* Stats Grid */
.reg-dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.reg-stat-item {
  background: rgba(245, 72, 77, 0.05);
  border-radius: 8px;
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 60px;
}

.reg-stat-item.entry-fee-full-width {
  grid-column: 1 / -1;
  background: rgba(245, 72, 77, 0.08);
}

.reg-stat-item.participants-unified {
  grid-column: 1 / -1;
}

/* Stat Labels and Values */
.stat-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  font-family: "DINRegular";
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  font-family: "DINBold";
}

.stat-value.green {
  color: #F5484D;
}

.stat-value.white {
  color: #333;
}

.stat-value.notPaidbg {
  color: #dc3545;
}

/* Participants Layout */
.participants-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.total-registered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.total-label,
.type-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  font-family: "DINRegular";
}

.participants-breakdown {
  display: flex;
  gap: 20px;
}

.participant-type {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.paying-number {
  color: #F5484D !important;
}

/* Fee Charges Section */
.fee-charges-section {
  grid-column: 1 / -1;
  background: rgba(245, 72, 77, 0.03);
  border-radius: 8px;
  padding: 12px 15px;
  margin: 10px 0;
}

.fee-charges-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-family: "DINBold";
}

.fee-charges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.fee-charge-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.fee-label {
  font-size: 12px;
  color: #666;
}

.fee-value {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  font-family: "DINBold";
}

/* Withdrawal Section */
.reg-dash-withdrawal-section {
  margin: 16px 0;
  text-align: center;
}

.withdrawal-status-container {
  text-align: center;
}

.withdrawal-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.withdrawal-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.withdrawal-status.pending {
  background: #fff3cd;
  color: #856404;
}

.withdrawal-status.completed {
  background: #d4edda;
  color: #155724;
}

/* Withdraw Button */
.withdraw-fee-csection {
  margin-top: 16px;
}

.addata-img-btn.leave {
  background: #F5484D;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "DINBold";
}

.addata-img-btn.leave:hover:not(:disabled) {
  background: #E63940;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(245, 72, 77, 0.2);
}

.addata-img-btn.leave:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Info Text */
.withdraw-info-text {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin: 12px 0;
}

/* Terms Text */
.mobile-terms-text {
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e9ecef;
}

.mobile-terms-text small {
  color: #999;
  font-size: 11px;
}

.mobile-terms-text a {
  color: #F5484D;
  text-decoration: none;
}

.mobile-terms-text a:hover {
  text-decoration: underline;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  .adddata-boulders-data-box {
    padding: 16px;
  }

  .reg-dash-stats-grid {
    gap: 8px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* Gathered amount and You will get - full width on mobile */
  .reg-dash-stats-grid > .reg-stat-item:nth-child(2),
  .reg-dash-stats-grid > .reg-stat-item:nth-child(3) {
    grid-column: span 2;
  }
  
  .participants-content {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: space-between;
  }

  .participants-breakdown {
    gap: 8px;
  }

  .stat-value {
    font-size: 18px;
  }

  .total-label,
  .type-label {
    font-size: 10px;
  }
  
  .fee-charges-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .fee-charge-item {
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .fee-charge-item:last-child {
    border-bottom: none;
  }
}

/* Desktop Specific Styles */
@media (min-width: 769px) {
  .adddata-registration-dash-data-container {
    padding: 0;
  }
  
  .adddata-registration-dash-data-container .adddata-boulders-data-box.unified-box {
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  
  /* Remove margin-top from withdraw button on desktop */
  .d-flex.justify-content-center.withdraw-fee-csection.mt-4 {
    margin-top: 0 !important;
  }
  
  /* Use flexible grid for 2 row layout on desktop */
  .adddata-registration-dash-data-container .reg-dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
  }
  
  /* First row: Entry fee (spans 4 columns) and Participants (spans 4 columns) */
  .adddata-registration-dash-data-container .reg-stat-item.entry-fee-full-width {
    grid-column: span 4;
  }

  .adddata-registration-dash-data-container .reg-stat-item.participants-unified {
    grid-column: span 4;
  }
  
  /* Second row: Commission breakdown, Gathered amount, You will get */
  .adddata-registration-dash-data-container .fee-charges-section {
    grid-column: span 4;
    margin: 0;
  }
  
  /* Gathered amount - spans 2 columns */
  .adddata-registration-dash-data-container .reg-stat-item:nth-child(4) {
    grid-column: span 2;
  }
  
  /* You will get - spans 2 columns */
  .adddata-registration-dash-data-container .reg-stat-item:nth-child(5) {
    grid-column: span 2;
  }
  
  /* Desktop specific stat item styling */
  .adddata-registration-dash-data-container .reg-stat-item {
    padding: 1rem;
  }
  
  /* Desktop fee charges section */
  .adddata-registration-dash-data-container .fee-charges-section {
    padding: 1rem;
  }
  
  /* Desktop participants layout */
  .adddata-registration-dash-data-container .participants-unified .participants-content {
    justify-content: space-around;
  }
  
  .adddata-registration-dash-data-container .participants-unified .total-registered {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding-right: 20px;
  }
  
  .adddata-registration-dash-data-container .participants-unified .participants-breakdown {
    padding-left: 20px;
  }
}

/* Small screen adjustments */
@media (max-width: 380px) {
  .reg-dash-stats-grid {
    gap: 8px;
  }
  
  .reg-stat-item {
    padding: 8px;
    min-height: 50px;
  }
  
  .reg-stat-item .stat-label {
    font-size: 11px;
  }
  
  .reg-stat-item .stat-value {
    font-size: 18px;
  }
  
  .fee-charges-title {
    font-size: 13px;
  }
}

/* Dark Mode Support */
.dark-mode-active .adddata-boulders-data-box {
  background: #1a202c;
  color: #e2e8f0;
}

.dark-mode-active .reg-stat-item {
  background: rgba(255, 255, 255, 0.05);
}

.dark-mode-active .fee-charges-section {
  background: rgba(255, 255, 255, 0.05);
}

.dark-mode-active .stat-label,
.dark-mode-active .fee-label,
.dark-mode-active .withdraw-info-text,
.dark-mode-active .withdrawal-label {
  color: #a0aec0;
}

.dark-mode-active .stat-value,
.dark-mode-active .fee-value,
.dark-mode-active .fee-charges-title {
  color: #e2e8f0;
}

.dark-mode-active .reg-dash-input-icons-container .custom-input-group {
  background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode-active .reg-dash-input-icons-container .input-group-text,
.dark-mode-active .reg-dash-input-icons-container .form-control {
  color: #e2e8f0;
}

.dark-mode-active .mobile-terms-text {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.dark-mode-active .mobile-terms-text small {
  color: #a0aec0;
}