/* common styles */

body {
  background-color: #f8f9fa;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.header-title {
  color: #0d6efd;
  margin-bottom: 2rem;
}

.card {
  border-radius: var(--bs-border-radius-lg);
  box-shadow: none;
}

.card-header {
  padding: 1rem 1.25rem;
  background-color: transparent;
}

/* Form elements */
.form-group {
  margin-bottom: 1rem;
}

.field-description {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.button-container {
  margin-top: 2rem;
  text-align: center;
}

/* Alert and status messages */
.error-message {
  color: #dc3545;
  margin-top: 1rem;
  font-weight: 500;
}

.alert-info {
  background-color: #e8f4f8;
  border-color: #bee5eb;
}

/* Button styling */
.setup-btn {
  width: auto;
  min-width: 200px;
  max-width: 300px;
  padding: 0.5rem 1.5rem;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (min-width: 992px) {
  .narrow-container {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Dashboard-specific styles */

/* Card header styling */
.card-header.dashboard-header {
  font-size: 1.25rem;
  font-weight: 400;
}

/* Modal enhancements */
.modal-header {
  border-bottom: 1px solid #dee2e6;
}

.modal-title {
  font-weight: 600;
}

.modal-footer {
  border-top: 1px solid #dee2e6;
}

/* Invite code text display */
.user-select-all {
  user-select: all;
  font-size: 0.85rem;
  word-break: break-all;
}

/* For larger screens */
@media (min-width: 1400px) {
  .container {
    max-width: 70% !important;
  }
}

/* QR Code Modal */
#inviteCodeModal .modal-dialog {
  max-width: 360px;
}

/* Copy button styling */
#copyInviteCodeBtn {
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
}


/* Too small buttons look weird */
.btn-min-width {
  min-width: 100px;
}

/* Abbreviated text with copy-on-click tooltip */
.text-abbrev-copy {
  cursor: pointer;
  border-bottom: 1px dotted #6c757d;
}
.text-abbrev-copy:hover {
  color: #0d6efd;
  border-bottom-color: #0d6efd;
}

/* Copiable text: style the copied state on the copy button */
.btn.copied {
  color: #198754 !important;
  border-color: #198754 !important;
}