/* =====================================================
   COSMOS CUSTOM UTILITIES
   Only utilities not available in Bootstrap 5.3.3
   ===================================================== */

/* ===== HTMX UTILITIES ===== */
.htmx-indicator {
  opacity: 0;
  transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator {
  opacity: 1;
}

/* ===== CUSTOM ALERT STYLES ===== */
.alert-error {
  background-color: var(--color-danger-bg);
  color: var(--color-danger-text);
  border: 1px solid var(--color-danger-border);
  padding: .75rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

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

/* Switch component moved to components.css */

/* QR Code display */
.qr-code-wrapper {
  display: inline-block;
  padding: 1rem;
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.qr-code {
  display: block;
  max-width: 100%;
  height: auto;
}

/* History and diff components */
.history-item {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border-light);
}

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

/* Diff styles removed - not used in any templates */

/* ===== LAYOUT UTILITIES ===== */

/* Flexbox header pattern */
.flex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* Empty state messaging */
.empty-state {
  text-align: center;
  color: #666;
  padding: 2rem;
}

/* Readonly form fields */
.form-readonly {
  background-color: #f5f5f5;
  border: 1px solid #dee2e6;
  padding: 0.5rem;
  border-radius: 0.25rem;
  color: #6c757d;
}

/* Fieldset styles removed - not used in any templates */

/* Date edit container */
.date-edit-container {
  display: inline-block;
}

/* Dropdown custom removed - not used in any templates */

/* Small spinner for loading states */
.spinner-small {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(0,0,0,.1);
  border-radius: 50%;
  border-top-color: var(--color-accent);
  animation: spin 1s ease-in-out infinite;
}

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

/* ===== ANGULAR-INSPIRED UTILITIES ===== */

/* Welcome page styles */
.welcome {
  background-color: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  gap: 4rem;
  min-height: 100vh;
}

.logo {
  height: 16rem;
  width: 16rem;
  margin: 1rem auto 0 auto;
}

/* Unused welcome page styles removed */

.content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-left: auto;
  margin-right: auto;
  gap: 1rem;
}

.content-box {
  display: flex;
  gap: 1rem;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  margin-bottom: 2rem;
}

/* Sub-heading removed - not used in any templates */

/* Table-cosmos styles removed - replaced with Bootstrap tables */

/* Icon size utilities removed - not used in any templates */

/* is-flex removed - use Bootstrap d-flex instead */