/* Modal Dialog - DM Modal Button Styles */

/* Cancel Button Styling */
#dmCancelBtn {
  padding: 4px 10px;
  min-width: 70px;
  height: 32px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

#dmCancelBtn:hover {
  background-color: #e5e7eb;
  border-color: #9ca3af;
}

#dmCancelBtn:active {
  background-color: #d1d5db;
}

#dmCancelBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Submit/Send Button Styling */
#dmSubmitBtn {
  padding: 4px 10px;
  min-width: 70px;
  height: 32px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: #3b82f6;
  border: 1px solid #2563eb;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

#dmSubmitBtn:hover:not(:disabled) {
  background: #2563eb;
  border-color: #1d4ed8;
}

#dmSubmitBtn:active:not(:disabled) {
  background: #1d4ed8;
}

#dmSubmitBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading state */
#dmSubmitBtn.loading {
  position: relative;
}

#dmSubmitBtn.loading .lbl {
  visibility: hidden;
}

#dmSubmitBtn.loading::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Focus/Accessibility */
#dmCancelBtn:focus,
#dmSubmitBtn:focus {
  outline: 1px solid #3b82f6;
  outline-offset: 1px;
}

#dmCancelBtn:focus:not(:focus-visible),
#dmSubmitBtn:focus:not(:focus-visible) {
  outline: none;
}

/* Profile Action Buttons Styling */
.open-dm-modal-btn,
.author-subscribe-btn {
  padding: 4px 10px;
  min-width: 70px;
  height: 32px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: #3b82f6;
  border: 1px solid #2563eb;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.open-dm-modal-btn:hover,
.author-subscribe-btn:hover {
  background: #2563eb;
  border-color: #1d4ed8;
}

.open-dm-modal-btn:active,
.author-subscribe-btn:active {
  background: #1d4ed8;
}

.open-dm-modal-btn:disabled,
.author-subscribe-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Subscribe Button - Alternative Style */
.author-subscribe-btn.subscribed {
  background: #8b5cf6;
  border-color: #7c3aed;
}

.author-subscribe-btn.subscribed:hover {
  background: #7c3aed;
  border-color: #6d28d9;
}

.author-subscribe-btn.subscribed:active {
  background: #6d28d9;
}

/* Focus/Accessibility */
.open-dm-modal-btn:focus,
.author-subscribe-btn:focus {
  outline: 1px solid #3b82f6;
  outline-offset: 1px;
}

.open-dm-modal-btn:focus:not(:focus-visible),
.author-subscribe-btn:focus:not(:focus-visible) {
  outline: none;
}

