/* Dashboard Page Styles */
body {
  background-color: #120726;
}

.container {
  max-width: 100%;
  padding: 0;
}

/* Header adjustments */
.container header {
  padding: 1.5rem 2rem;
}

.container header .logo {
  padding-left: 1rem;
}

.container header nav {
  padding-right: 1rem;
}

/* New Dashboard Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

/* Organization Cards Styles */
.organization-cards {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.organization-card {
  background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.org-header h3 {
  color: #ffd700;
  margin: 0 0 15px 0;
  font-size: 1.3rem;
}

.org-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.org-stats .stat {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.org-credits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.credit-pool {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

.credit-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.credit-amount {
  color: #ffd700;
  font-size: 1.4rem;
  font-weight: bold;
}

.org-limits {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.limit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.limit-item:last-child {
  border-bottom: none;
}

.limit-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.limit-value {
  color: white;
  font-weight: bold;
}

.org-actions {
  text-align: center;
}

.view-org-details {
  background: linear-gradient(135deg, #ff3ec9, #ff006b);
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-org-details:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 62, 201, 0.4);
}

/* Profile Section */
.profile-section {
  margin-bottom: 30px;
  min-width: 100%;
}

.profile-card {
  background-color: rgba(28, 14, 52, 0.8);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4),
    0 4px 6px -2px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 62, 201, 0.2);
  animation: fadeIn 0.4s ease-out forwards;
  width: 100%;
  box-sizing: border-box;
}

.profile-info {
  display: flex;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  background: rgba(255, 62, 201, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  border: 1px solid rgba(255, 62, 201, 0.3);
}

.profile-avatar i {
  font-size: 30px;
  color: rgba(255, 255, 255, 0.8);
}

.profile-details {
  flex: 1;
}

.profile-item {
  margin-bottom: 8px;
}

.profile-label {
  font-weight: bold;
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.profile-actions {
  margin: 20px 0;
  display: flex;
  gap: 15px;
  width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.profile-actions button {
  flex: 0 0 auto;
  padding: 0 15px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 145px;
  height: 44px;
  box-sizing: border-box;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Roboto Condensed", sans-serif;
}

/* Delete Account Button */
.btn-danger {
  background: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%);
  color: white;
  border: none;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(204, 0, 0, 0.2);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 0, 0, 0.3);
  background: linear-gradient(135deg, #ff6666 0%, #e60000 100%);
}

.btn-danger:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(204, 0, 0, 0.2);
}

.btn-danger:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

/* Delete Account Modal Specific Styles */
#delete-account-modal .modal-content {
  max-width: 500px;
  width: 90%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

#delete-account-modal .modal-header {
  background: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%);
  padding: 20px;
  color: white;
  text-align: center;
}

#delete-account-modal .modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

#delete-account-modal .modal-body {
  padding: 25px;
}

#delete-account-modal .form-group {
  margin-bottom: 20px;
}

#delete-account-modal label {
  display: block;
  margin-bottom: 8px;
  color: #e0e0e0;
  font-size: 0.95rem;
}

#delete-account-modal .form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#delete-account-modal .form-control:focus {
  outline: none;
  border-color: #ff4d4d;
  box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.2);
}

#delete-account-modal .modal-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  gap: 15px;
}

#delete-account-modal .btn-secondary {
  flex: 1;
  background: #4a4a6a;
  color: white;
}

#delete-account-modal .btn-secondary:hover {
  background: #5a5a7a;
}

#confirm-delete-account {
  flex: 1;
  background: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

#confirm-delete-account:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff6666 0%, #e60000 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 0, 0, 0.3);
}

#confirm-delete-account:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(204, 0, 0, 0.2);
}

#confirm-delete-account:disabled {
  background: #4a4a4a;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .profile-actions {
    flex-direction: column;
    gap: 10px;
  }

  /* .profile-actions button {
    width: 100%;
    min-width: 100%;
  } */

  #delete-account-modal .modal-footer {
    flex-direction: column;
  }

  #delete-account-modal .btn-secondary,
  #confirm-delete-account {
    width: 100%;
  }
}

/* Credits Section */
.credits-container {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
  border: 1px solid rgba(255, 62, 201, 0.1);
}

.credits-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.credits-header h3 {
  font-family: "Roboto Condensed", sans-serif;
  background: linear-gradient(135deg, #ff3ec9 0%, #a139ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* New credit breakdown styles */
.credits-breakdown {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.credit-type {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px 15px;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.credit-type:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 62, 201, 0.3);
}

.credit-icon {
  font-size: 1.5rem;
  margin-right: 12px;
  opacity: 0.8;
}

.credit-info {
  display: flex;
  flex-direction: column;
}

.credit-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
  font-weight: 500;
}

.credit-amount {
  font-size: 1.3rem;
  font-weight: bold;
  background: linear-gradient(135deg, #ff3ec9 0%, #a139ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.credits-balance {
  text-align: right;
}

.credits-balance span:first-child {
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(135deg, #ff3ec9 0%, #a139ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 5px;
}

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

.credits-actions button {
  flex: 1;
}

/* Organization Badge Styles for Transactions */
.org-badge {
  display: inline-block;
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-left: 8px;
  white-space: nowrap;
  vertical-align: middle;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
  overflow: hidden;
}

.modal-dialog {
  width: 90%;
  height: 90%;
}

#avatar-setup-reminder-modal .modal-dialog {
  width: 100%;
  max-width: 820px;
  height: auto;
}

#delete-account-modal .modal-dialog {
  width: auto;
}

.modal-content {
  background-color: #1c0e34;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 62, 201, 0.3);
  animation: fadeIn 0.3s ease-out;
  overflow: hidden;
}

#avatar-setup-reminder-modal .modal-content {
  height: auto;
}

/* Purchase modal specific styling */
#avatar-setup-reminder-modal .modal-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#avatar-setup-reminder-modal .modal-header h2 {
  margin: 0;
  font-size: 1.3rem;
  text-align: left;
}

#avatar-setup-reminder-modal .close-modal {
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#avatar-setup-reminder-modal .modal-body {
  padding: 24px 32px 28px;
}

#avatar-setup-reminder-modal .modal-body p {
  max-width: 520px;
  margin: 0 auto 24px;
}

#avatar-setup-reminder-modal .avatar-reminder-actions {
  display: flex;
  justify-content: center;
}

#avatar-setup-reminder-modal .avatar-reminder-actions .btn.btn-primary {
  min-width: 190px;
  text-align: center;
}

#voice-retrain-modal.modal {
  z-index: 10050;
}

#voice-retrain-modal .modal-dialog {
  width: 100%;
  max-width: 820px;
  height: auto;
}

#voice-retrain-modal .modal-content {
  height: auto;
}

#voice-retrain-modal .modal-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#voice-retrain-modal .modal-header h2 {
  margin: 0;
  font-size: 1.3rem;
  text-align: center;
}

#voice-retrain-modal .modal-body {
  padding: 24px 32px 28px;
  text-align: center;
}

#voice-retrain-modal .modal-body p {
  max-width: 560px;
  margin: 0 auto 24px;
}

#voice-retrain-modal .voice-retrain-actions {
  display: flex;
  justify-content: center;
}

#voice-retrain-modal .voice-retrain-actions .btn.btn-primary {
  min-width: 220px;
  text-align: center;
}

#purchase-modal .modal-content {
  /* max-width: none; */
  /* min-width: 900px; */
  height: 100%;
}

.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  background: linear-gradient(
    180deg,
    rgba(138, 43, 226, 0.3) 0%,
    rgba(75, 0, 130, 0.8) 100%
  );
  border-radius: 12px 12px 0 0;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modal-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 62, 201, 0.6),
    rgba(161, 57, 255, 0.6)
  );
  border-radius: 12px 12px 0 0;
}

.modal-header-content {
  display: flex;
  align-items: center;
  grid-column: 1;
}

.modal-header h2 {
  margin: 0;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ff3ec9 0%, #a139ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.plan-toggle-buttons {
  grid-column: 2;
  justify-self: center;
  display: flex;
  gap: 0;
  margin-top: 0;
  background: rgba(138, 43, 226, 0.4);
  border-radius: 30px;
  padding: 4px;
  position: relative;
  overflow: hidden;
}

.close-modal {
  grid-column: 3;
  justify-self: end;
}

.plan-toggle-btn {
  background: transparent;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 26px;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.plan-toggle-btn:hover {
  color: white;
}

.plan-toggle-btn.active {
  background: white;
  color: #6a1b9a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.plan-toggle-btn:not(.active) {
  color: white;
}

.price-period {
  font-size: 0.7em;
  font-weight: normal;
  opacity: 0.8;
  margin-left: 5px;
  color: rgba(255, 255, 255, 0.8) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.8) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

.close-modal {
  font-size: 28px;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.close-modal:hover {
  color: #ff3ec9;
  background: rgba(255, 62, 201, 0.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px;
  height: 100%;
}

.modal-body p {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
}

/* Transaction history container scrolling */
#transaction-history {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 62, 201, 0.5) rgba(20, 10, 40, 0.3);
}

#transaction-history::-webkit-scrollbar {
  width: 8px;
}

#transaction-history::-webkit-scrollbar-track {
  background: rgba(20, 10, 40, 0.3);
  border-radius: 4px;
}

#transaction-history::-webkit-scrollbar-thumb {
  background: rgba(255, 62, 201, 0.5);
  border-radius: 4px;
}

#transaction-history::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 62, 201, 0.7);
}

/* Credit Packages */
.credit-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.credit-package {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
  padding: 20px;
  background: rgba(20, 10, 40, 0.7);
  min-height: 320px;
  border: 1px solid rgba(255, 62, 201, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.credit-package:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 62, 201, 0.7);
}

.package-header {
  position: relative;
  margin-bottom: 20px;
  padding-top: 10px;
  text-align: center;
}

.package-header h3 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: white;
}

.badge {
  position: absolute;
  right: -10px;
  top: -47px;
  background: linear-gradient(135deg, #ff00ff, #7928ca);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.badge.most-popular {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.credit-package .price {
  font-size: 3rem;
  font-weight: bold;
  background: linear-gradient(135deg, #ff3ec9 0%, #a139ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 10px 0;
  text-align: center;
}

.credit-package .description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  text-align: center;
  font-size: 1.1rem;
}

.package-actions {
  margin-top: 15px;
}

.select-package {
  width: 100%;
  border-radius: 30px;
  padding: 12px 20px;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 1rem;
}

/* Quantity control styles */
.quantity-control {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  width: 150px;
  height: 50px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 30px;
  padding: 5px;
  border: 1px solid rgba(255, 62, 201, 0.3);
}

.btn-quantity {
  background: linear-gradient(135deg, #ff3ec9 0%, #a139ff 100%);
  color: white;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-quantity:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 62, 201, 0.5);
}

.btn-quantity:active {
  transform: translateY(1px);
}

.quantity-value {
  font-size: 24px;
  font-weight: bold;
  margin: 0 20px;
  color: white;
}

.total-price {
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  margin: 10px 0 3px 0;
  letter-spacing: 0.5px;
}

.total-time {
  text-align: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  font-style: italic;
}

/* Transaction Table */
.transaction-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.transaction-table th,
.transaction-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.transaction-table th {
  background-color: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.9);
  font-family: "Roboto Condensed", sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  font-weight: 600;
}

.debit-amount {
  color: #ff3b30;
}

.upgrade-amount {
  color: #ff8c00;
  font-weight: bold;
}

.no-transactions {
  text-align: center;
  padding: 30px;
  color: rgba(255, 255, 255, 0.7);
}

.btn-download-conversation {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.85rem;
  background: linear-gradient(135deg, rgba(255, 62, 201, 0.3), rgba(161, 57, 255, 0.3));
  border: 1px solid rgba(255, 62, 201, 0.5);
  border-radius: 8px;
  color: #ff3ec9;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-download-conversation:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(255, 62, 201, 0.5), rgba(161, 57, 255, 0.5));
  transform: translateY(-1px);
}

.btn-download-conversation:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.download-cell .no-download {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* Success message styling */
#success-message {
  background: rgba(28, 14, 52, 0.8);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 62, 201, 0.2);
  text-align: center;
  animation: fadeIn 0.4s ease-out forwards;
}

#success-message h3 {
  background: linear-gradient(135deg, #ff3ec9 0%, #a139ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Roboto Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.dashboard-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.dashboard-heading {
  display: none; /* Hide the old style */
}

/* Single avatar styling - no grid needed for one avatar */
.avatar-card.single-avatar {
  max-width: 400px;
  margin: 30px auto;
}

.avatar-card {
  background-color: rgba(28, 14, 52, 0.8);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4),
    0 4px 6px -2px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 62, 201, 0.2);
  animation: fadeIn 0.4s ease-out forwards;
}

.avatar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 62, 201, 0.2);
  border-color: rgba(255, 62, 201, 0.4);
}

.avatar-thumbnail {
  width: 100%;
  height: 180px;
  background-color: #1c0e34;
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 62, 201, 0.3);
}

.avatar-thumbnail video,
.avatar-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-thumbnail .placeholder {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.3);
}

.avatar-info {
  flex-grow: 1;
}

.avatar-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: white;
  display: flex;
  align-items: center;
  font-family: "Roboto Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.avatar-title-text {
  flex-grow: 1;
  margin-right: 8px;
}

.avatar-title-input {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: white;
  padding: 4px 8px;
  font-size: 18px;
  font-weight: bold;
  margin-right: 8px;
  font-family: "Roboto Condensed", sans-serif;
}

.avatar-title-edit,
.avatar-title-save,
.avatar-settings-edit {
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 4px;
}

.avatar-title-edit,
.avatar-settings-edit {
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
}

.avatar-title-edit:hover,
.avatar-settings-edit:hover {
  color: var(--primary-color);
}

.avatar-title-save {
  color: var(--primary-color);
  font-size: 16px;
}

.avatar-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Roboto Condensed", sans-serif;
}

.status-pending {
  background-color: #f39c12;
  color: white;
}

.status-processing {
  background-color: #3498db;
  color: white;
}

.status-completed {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

.status-error {
  background-color: #e74c3c;
  color: white;
}

/* Main avatar action styles */
.avatar-actions {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding: 0;
}

.avatar-actions .btn {
  flex: 1;
  min-width: unset;
  font-size: 0.9rem;
  padding: 0.6rem 0.5rem;
  background: linear-gradient(135deg, #ff3ec9 0%, #a139ff 100%);
  color: white;
  font-family: "Roboto Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 62, 201, 0.3);
  text-align: center;
  white-space: nowrap;
  margin: 0;
}

.avatar-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 62, 201, 0.4);
}

.avatar-actions .btn:active {
  transform: translateY(1px);
}

.avatar-actions .btn-secondary {
  background: transparent;
  border: 2px solid #fff;
}

.avatar-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.no-avatars {
  text-align: center;
  padding: 60px 40px;
  background-color: rgba(28, 14, 52, 0.8);
  border-radius: 12px;
  margin-top: 30px;
  border: 1px solid rgba(255, 62, 201, 0.2);
  animation: fadeIn 0.4s ease-out forwards;
}

.no-avatars h3 {
  background: linear-gradient(135deg, #ff3ec9 0%, #a139ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Roboto Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.no-avatars p {
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.7);
}

.no-avatars .btn {
  display: inline-block;
  background: linear-gradient(135deg, #ff3ec9 0%, #a139ff 100%);
  color: white;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: "Roboto Condensed", sans-serif;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 62, 201, 0.4);
  transition: all 0.3s ease;
}

.no-avatars .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 62, 201, 0.6);
}

.success-message {
  background-color: rgba(28, 14, 52, 0.8);
  border-radius: 12px;
  padding: 20px;
  margin-top: 30px;
  text-align: center;
  border: 1px solid rgba(255, 62, 201, 0.3);
  margin-bottom: 30px;
}

.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.spinner {
  border: 4px solid rgba(255, 62, 201, 0.1);
  border-radius: 50%;
  border-top: 4px solid #ff3ec9;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

.actions-container {
  margin-top: 30px;
  text-align: center;
}

.btn-create {
  display: inline-block;
  background: linear-gradient(135deg, #ff3ec9 0%, #a139ff 100%);
  color: white;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: "Roboto Condensed", sans-serif;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 62, 201, 0.4);
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-create:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 62, 201, 0.6);
}

/* Media Queries */
@media (max-width: 768px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .profile-section {
    min-width: 100%;
    order: 2;
  }

  .avatars-section {
    width: 100%;
    order: 1;
  }

  .container header {
    flex-direction: column;
    align-items: center;
  }

  .avatar-actions {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 15px 0 0 0;
    gap: 5px;
  }

  .avatar-actions .btn {
    width: auto;
    margin: 0 0 5px 0;
  }

  .no-avatars {
    padding: 30px 20px;
  }

  .no-avatars h3 {
    font-size: 1.4rem;
  }

  .credit-packages {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .credit-package {
    min-height: 280px;
    padding: 15px;
  }

  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  /* Purchase modal mobile adjustments */
  #purchase-modal .modal-content {
    width: 95%;
    min-width: unset;
    max-width: 95%;
  }

  .transaction-table {
    font-size: 0.8rem;
  }

  .transaction-table th,
  .transaction-table td {
    padding: 8px;
  }

  /* Organization badge mobile responsive styles */
  .org-badge {
    display: block;
    margin: 4px 0 0 0;
    font-size: 0.7rem;
    text-align: center;
    padding: 2px 6px;
  }

  #transaction-history {
    max-height: 300px; /* Smaller height on mobile */
  }

  .avatar-card.single-avatar {
    max-width: 100%;
    margin: 20px 0;
  }

  .credits-breakdown {
    flex-direction: column;
    gap: 10px;
  }

  .credit-type {
    padding: 10px 12px;
  }

  .credit-icon {
    font-size: 1.3rem;
    margin-right: 10px;
  }

  .credit-amount {
    font-size: 1.2rem;
  }
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #ff3ec9 0%, #a139ff 100%);
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Roboto Condensed", sans-serif;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(255, 62, 201, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 62, 201, 0.5);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Roboto Condensed", sans-serif;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: rgba(255, 62, 201, 0.5);
  background: rgba(255, 62, 201, 0.1);
}

.hidden {
  display: none !important;
}

/* Avatar Settings Modal Styles */
.settings-form {
  padding: 20px 0;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Roboto Condensed", sans-serif;
}

.form-group .optional {
  color: rgba(255, 255, 255, 0.5);
  font-weight: normal;
  font-size: 0.9em;
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85em;
}

.form-control {
  width: calc(100% - 30px);
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-family: "Roboto", sans-serif;
  transition: border-color 0.3s ease;
  resize: none;
}

.form-control select,
#default-language {
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 62, 201, 0.2);
}

.form-control select {
  background: rgba(0, 0, 0, 0.3);
  color: white;
}

.form-control option {
  background: #1a0d34;
  color: white;
}

.char-counter {
  text-align: right;
  margin-top: 5px;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Credits unit style */
.credits-unit {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8em;
  margin-left: 5px;
}

/* Avatar thumbnail styles */
.avatar-thumbnail {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-position: center;
  background-size: cover;
  min-height: 280px;
}

.avatar-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder icon style */
.avatar-thumbnail .placeholder {
  font-size: 80px;
  color: rgba(255, 255, 255, 0.3);
}

/* Add these styles for the new status container and upgrade pill */
.avatar-status-container {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 5px;
}

.avatar-status.status-upgrade {
  background-color: var(--primary-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-status.status-upgrade:hover {
  background-color: #ff65d4;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(255, 62, 201, 0.5);
}

.avatar-status.status-avatar-trained {
  background: linear-gradient(135deg, #4cd964, #00b85c);
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-status.status-avatar-trained:hover {
  background: linear-gradient(135deg, #5de775, #00cc63);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(76, 217, 100, 0.5);
}

/* Video training in progress status */
.avatar-status.status-training {
  background: #ff8c00 !important; /* Orange color for training status */
  cursor: pointer;
  transition: all 0.2s ease;
  animation: pulse 2s infinite;
}

.avatar-status.status-training:hover {
  background: #ff8c00 !important;
  cursor: pointer;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(255, 140, 0, 0.5);
}

/* Migration Record Button - Big and Prominent */
.migration-record-btn {
  font-size: 1.2rem !important;
  padding: 15px 25px !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  width: 100% !important;
  display: block !important;
  margin-top: 10px !important;
  background: linear-gradient(135deg, #ff3ec9 0%, #a139ff 100%) !important;
  box-shadow: 0 8px 20px rgba(255, 62, 201, 0.4) !important;
}

.migration-record-btn:hover {
  background: linear-gradient(135deg, #ff3ec9 0%, #a139ff 100%);
  transform: translateY(-2px);
}

/* Purchase Credits Modal Scrollable Container */
#purchase-credits-container {
  max-height: calc(100% - 170px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 62, 201, 0.5) rgba(20, 10, 40, 0.3);
  padding: 10px;
}

#purchase-credits-container::-webkit-scrollbar {
  width: 8px;
}

#purchase-credits-container::-webkit-scrollbar-track {
  background: rgba(20, 10, 40, 0.3);
  border-radius: 4px;
}

#purchase-credits-container::-webkit-scrollbar-thumb {
  background: rgba(255, 62, 201, 0.5);
  border-radius: 4px;
}

#purchase-credits-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 62, 201, 0.7);
}

/* Desktop-specific styles */
@media screen and (min-width: 768px) {
  /* Purchase credits container larger on desktop */
  /* #purchase-credits-container {
    max-height: 600px;
  } */

  /* Share link container input styling for desktop */
  .share-link-container input {
    font-size: 1.2rem;
    font-family: Roboto, "Roboto Placeholder", sans-serif;
  }
}
