/* ============================================================
   Domain Register - Registrant Profile Management Styles
   ============================================================ */

/* Profile Selector */
.dr-profile-selector-wrapper {
  margin-bottom: 28px;
  padding: 20px;
  background: rgba(99,102,241,0.03);
  border: 1px solid rgba(99,102,241,0.1);
  border-radius: 12px;
}

.dr-profile-selector-group .dr-form-label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.dr-profile-selector-row {
  display: flex;
  gap: 10px;
}

.dr-profile-selector-row .dr-form-select {
  flex: 1;
}

.dr-profile-manage-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  background: #6366f1;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.dr-profile-manage-btn:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.dr-profile-manage-btn:active {
  transform: translateY(0);
}

/* Save Profile Button */
.dr-form-actions-row {
  margin: 20px 0;
  display: flex;
  justify-content: flex-end;
}

.dr-save-profile-btn {
  padding: 10px 24px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.dr-save-profile-btn:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.dr-save-profile-btn:active {
  transform: translateY(0);
}

/* Profile Manager Modal */
.dr-profile-manager-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: dr-fadeIn 0.3s;
}

@keyframes dr-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dr-profile-manager-modal {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: dr-slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dr-slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dr-profile-manager-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.dr-profile-manager-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.dr-profile-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.04);
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dr-profile-close-btn:hover {
  background: rgba(0,0,0,0.08);
  color: #1e293b;
}

.dr-profile-manager-body {
  padding: 20px 28px 28px;
  overflow-y: auto;
  flex: 1;
}

.dr-profile-empty {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
  font-size: 15px;
}

.dr-profile-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dr-profile-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s;
}

.dr-profile-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateX(2px);
}

.dr-profile-info {
  flex: 1;
  min-width: 0;
}

.dr-profile-name {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.dr-profile-details {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 4px;
}

.dr-profile-details span {
  margin-right: 4px;
}

.dr-profile-address {
  font-size: 13px;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dr-profile-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 16px;
}

.dr-profile-use-btn,
.dr-profile-delete-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.dr-profile-use-btn {
  background: #6366f1;
  color: #ffffff;
}

.dr-profile-use-btn:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.dr-profile-delete-btn {
  background: #ffffff;
  color: #ef4444;
  border: 1px solid #fecaca;
}

.dr-profile-delete-btn:hover {
  background: #fef2f2;
  border-color: #ef4444;
  transform: translateY(-1px);
}

.dr-profile-use-btn:active,
.dr-profile-delete-btn:active {
  transform: translateY(0);
}

/* Notification */
.dr-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 14px 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: dr-slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dr-slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.dr-notification.success {
  border-left: 4px solid #10b981;
}

.dr-notification.error {
  border-left: 4px solid #ef4444;
}

.dr-notification-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.dr-notification.success .dr-notification-icon {
  background: #d1fae5;
  color: #10b981;
}

.dr-notification.error .dr-notification-icon {
  background: #fee2e2;
  color: #ef4444;
}

.dr-notification-text {
  font-size: 14px;
  color: #1e293b;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .dr-profile-selector-row {
    flex-direction: column;
  }

  .dr-profile-selector-wrapper {
    margin-bottom: 20px;
    padding: 16px;
  }

  .dr-form-actions-row {
    margin: 16px 0;
  }

  .dr-profile-manager-modal {
    max-width: 100%;
    max-height: 90vh;
    margin: 20px;
  }

  .dr-profile-manager-header {
    padding: 20px;
  }

  .dr-profile-manager-body {
    padding: 16px 20px 20px;
  }

  .dr-profile-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .dr-profile-actions {
    margin-left: 0;
    justify-content: stretch;
  }

  .dr-profile-use-btn,
  .dr-profile-delete-btn {
    flex: 1;
  }

  .dr-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
  }
}

@media (max-width: 480px) {
  .dr-profile-selector-wrapper {
    margin-bottom: 16px;
    padding: 14px;
  }

  .dr-form-actions-row {
    margin: 14px 0;
  }

  .dr-profile-manager-header h3 {
    font-size: 18px;
  }

  .dr-profile-name {
    font-size: 15px;
  }

  .dr-profile-details,
  .dr-profile-address {
    font-size: 13px;
  }

  .dr-profile-item {
    padding: 12px;
    gap: 10px;
  }
}
