/* Add Tutor Lessons Modal Styles */
#tsubs-add-tutor-lessons-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 17, 23, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
}

.tsubs-atl-section {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  padding: 24px;
  position: relative;
  box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.tsubs-atl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.tsubs-atl-back-btn,
.tsubs-atl-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #121117;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tsubs-atl-content {
  flex: 1;
  text-align: left;
}

.tsubs-atl-avatars-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.tsubs-atl-avatar {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
}

.tsubs-atl-arrow {
  color: #121117;
  display: flex;
  align-items: center;
}

.tsubs-atl-title {
  font-size: 24px;
  font-weight: 700;
  color: #121117;
  margin: 0 0 40px 0;
  line-height: 1.2;
}

.tsubs-atl-counter-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.tsubs-atl-counter {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 12px;
}

.tsubs-atl-counter-btn {
  width: 40px;
  height: 40px;
  border: 1.5px solid #121117;
  border-radius: 8px;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #121117;
  transition: all 0.2s;
}

.tsubs-atl-counter-btn:hover {
  background: #f5f5f7;
}

.tsubs-atl-count-display {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tsubs-atl-number {
  font-size: 36px;
  font-weight: 700;
  color: #121117;
  line-height: 1;
}

.tsubs-atl-label {
  font-size: 14px;
  color: #121117;
  font-weight: 500;
  margin-top: 4px;
}

.tsubs-atl-price-per-lesson {
  font-size: 14px;
  color: #8d8c9b;
}

.tsubs-atl-balance-card {
  background: #f5f5f7;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.tsubs-atl-balance-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
  color: #121117;
}

.tsubs-atl-progress-container {
  height: 6px;
  background: #dcdce5;
  border-radius: 100px;
  margin-bottom: 12px;
  overflow: hidden;
}

.tsubs-atl-progress-bar {
  height: 100%;
  background: #007664;
  border-radius: 100px;
  transition: width 0.3s ease;
}

.tsubs-atl-breakdown-btn {
  background: none;
  border: none;
  color: #121117;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  display: block;
  margin: 0 auto;
}

.tsubs-atl-actions {
  padding-top: 16px;
}

.tsubs-atl-btn-primary {
  background: #ff2500;
  color: #ffffff;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s;
}

.tsubs-atl-btn-primary:disabled {
  background: #dcdce5;
  color: #8d8c9b;
  cursor: not-allowed;
}

.tsubs-atl-btn-primary:not(:disabled):hover {
  background: #d01e00;
}

/* Alert Styling */
.tsubs-atl-alert {
  background: #fff8e1;
  border-radius: 4px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.tsubs-atl-alert svg {
  color: #121117;
  flex-shrink: 0;
  margin-top: 2px;
}

.tsubs-atl-alert p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #121117;
  font-weight: 500;
}

/* Breakdown Modal Overlay */
.tsubs-bm-backdrop {
  position: absolute; /* Relative to section */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 17, 23, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  border-radius: 12px;
}

.tsubs-bm-modal {
  background: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 350px;
  padding: 24px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
}

.tsubs-bm-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.tsubs-bm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  margin-top: 30px;
}

.tsubs-bm-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.tsubs-bm-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #121117;
}

.tsubs-bm-info p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #8d8c9b;
}

.tsubs-bm-body {
  margin-bottom: 24px;
  border: 1px solid lightgray;
  padding: 10px;
  border-radius: 5px;

  .highlight::before {
    content: none;
  }
}

.tsubs-bm-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: #121117;
  font-weight: 500;
}

.tsubs-bm-row.highlight {
  color: #121117;
}

.tsubs-bm-row .negative {
  color: #121117;
}

.tsubs-bm-divider {
  height: 1px;
  background: #eeeef3;
  margin: 16px 0;
}

.tsubs-bm-row.total-row {
  font-weight: 700;
  margin-bottom: 0;
}

.tsubs-bm-row .success {
  color: #007664;
}

.tsubs-bm-pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px;
  margin-top: 12px;
  font-weight: 700;
  font-size: 14px;
  color: #121117;
}

.tsubs-bm-pay-row .pay-badge {
  background: #fee6e2;
  color: black;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
}

.tsubs-bm-btn-primary {
  background: #ff2500;
  color: #ffffff;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
}

/* Mobile Responsive High Fidelity */
@media (max-width: 940px) {
  #tsubs-add-tutor-lessons-backdrop {
    background-color: #ffffff;
    align-items: flex-start;
  }

  .tsubs-atl-section {
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    padding: 24px 20px;
    animation: tsubs-slide-up 0.3s ease-out;
  }

  .tsubs-atl-header {
    margin-bottom: 32px;
  }

  .tsubs-atl-back-btn {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    width: 40px;
    height: 40px;
  }

  .tsubs-atl-close-btn {
    display: none;
  }

  .tsubs-atl-avatars-row {
    margin-bottom: 24px;
    gap: 12px;
  }

  .tsubs-atl-avatar {
    width: 48px;
    height: 48px;
  }

  .tsubs-atl-title {
    font-size: 28px;
    margin-bottom: 48px;
    text-align: left;
  }

  .tsubs-atl-counter-section {
    margin-bottom: 48px;
  }

  .tsubs-atl-counter {
    gap: 40px;
  }

  .tsubs-atl-number {
    font-size: 42px;
  }

  .tsubs-atl-balance-card {
    border-radius: 12px;
    padding: 20px;
    background: #f8f8fb;
    margin-top: auto;
    margin-bottom: 24px;
  }

  .tsubs-atl-actions {
    padding-top: 0;
    margin-top: auto;
  }

  .tsubs-atl-btn-primary {
    padding: 16px;
    font-size: 18px;
    border-radius: 12px;
  }

  .tsubs-bm-modal {
    max-width: 100%;
    width: 100%;
  }
}
