/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps.
 */

/* ========================================
   Modern Card Styles
   ======================================== */
.card {
  background: white;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  transition: all 0.2s ease;
}

.card:hover {
  border-color: #e2e8f0;
  box-shadow: 0 4px 12px 0 rgb(0 0 0 / 0.1);
  transform: translateY(-1px);
}

.dark .card {
  background: #334155;
  border-color: #475569;
}

.dark .card:hover {
  border-color: #64748b;
}

/* ========================================
   Modern Button Styles
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  box-shadow: 0 1px 3px 0 rgb(99 102 241 / 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 4px 12px 0 rgb(99 102 241 / 0.4);
}

.btn-secondary {
  background: white;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.dark .btn-secondary {
  background: #475569;
  color: #f1f5f9;
  border-color: #64748b;
}

.dark .btn-secondary:hover {
  background: #64748b;
}

/* ========================================
   Status Badges
   ======================================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  gap: 0.375rem;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

.dark .status-active {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.dark .status-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.status-inactive {
  background: #f1f5f9;
  color: #64748b;
}

.dark .status-inactive {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

/* ========================================
   Form Inputs - Modern Style
   ======================================== */
.form-input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fafbfc;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #6366f1;
  background: white;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.dark .form-input {
  background: #1e293b;
  border-color: #475569;
  color: #f1f5f9;
}

.dark .form-input:focus {
  background: #334155;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.form-input::placeholder {
  color: #94a3b8;
}

.dark .form-input::placeholder {
  color: #64748b;
}

/* ========================================
   Modern Table Styles
   ======================================== */
.table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-modern thead th {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.dark .table-modern thead th {
  background: #1e293b;
  color: #94a3b8;
  border-color: #475569;
}

.table-modern tbody tr {
  transition: background 0.15s ease;
}

.table-modern tbody tr:hover {
  background: #f8fafc;
}

.dark .table-modern tbody tr:hover {
  background: #1e293b;
}

.table-modern tbody td {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.dark .table-modern tbody td {
  border-color: #334155;
  color: #e2e8f0;
}

/* ========================================
   Empty States
   ======================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-state-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.dark .empty-state-icon {
  background: #334155;
}

.empty-state-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.dark .empty-state-title {
  color: #f1f5f9;
}

.empty-state-description {
  font-size: 0.875rem;
  color: #64748b;
  max-width: 20rem;
}

.dark .empty-state-description {
  color: #94a3b8;
}

/* ========================================
   ActionText Styles
   ======================================== */
trix-editor {
  min-height: 300px;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: #fafbfc;
}

trix-editor:focus {
  outline: none;
  border-color: #6366f1;
  background: white;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.dark trix-editor {
  background: #1e293b;
  border-color: #475569;
  color: #f1f5f9;
}

.dark trix-editor:focus {
  background: #334155;
  border-color: #818cf8;
}

trix-toolbar {
  padding: 0.5rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-bottom: none;
  border-radius: 0.75rem 0.75rem 0 0;
}

.dark trix-toolbar {
  background-color: #1e293b;
  border-color: #475569;
}

trix-toolbar .trix-button-group {
  border-color: #e2e8f0;
}

.dark trix-toolbar .trix-button-group {
  border-color: #475569;
}

trix-toolbar .trix-button {
  border-bottom: none;
}

trix-toolbar .trix-button.trix-active {
  background-color: #e2e8f0;
}

.dark trix-toolbar .trix-button.trix-active {
  background-color: #475569;
}

/* ActionText content styling */
.trix-content {
  max-width: 100%;
}

.trix-content h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.trix-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.trix-content p {
  margin-bottom: 1rem;
}

.trix-content ul, .trix-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.trix-content ul {
  list-style-type: disc;
}

.trix-content ol {
  list-style-type: decimal;
}

.trix-content li {
  margin-bottom: 0.25rem;
}

.trix-content blockquote {
  border-left: 4px solid #6366f1;
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1rem;
  color: #64748b;
  font-style: italic;
}

.dark .trix-content blockquote {
  color: #94a3b8;
}

.trix-content a {
  color: #4f46e5;
  text-decoration: underline;
}

.dark .trix-content a {
  color: #818cf8;
}

.trix-content strong {
  font-weight: 700;
}

.trix-content em {
  font-style: italic;
}

/* ========================================
   Focus Ring Utilities
   ======================================== */
.focus-ring {
  outline: none;
}

.focus-ring:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.dark .focus-ring:focus-visible {
  outline-color: #818cf8;
}

/* ========================================
   Gradient Text
   ======================================== */
.gradient-text {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
