@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&family=Geist:wght@100..900&family=Inter:wght@100..900&display=swap');

:root {
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #e4e4e7;
  border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #27272a;
}

::-webkit-scrollbar-thumb:hover {
  background: #d4d4d8;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Base style resets and scroll behaviour */
html {
  scroll-behavior: smooth;
}

/* Flat Professional Card Style (replacing linear/glass panels) */
.card {
  background-color: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem; /* rounded-xl */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .card {
  background-color: #09090b; /* zinc-950 */
  border: 1px solid #27272a; /* zinc-800 */
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.card-hover:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.dark .card-hover:hover {
  border-color: #3f3f46;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
}

/* Modern Form Elements */
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.375rem;
}

.dark .form-label {
  color: #a1a1aa;
}

.form-input {
  width: 100%;
  font-size: 0.875rem;
  background-color: #ffffff;
  border: 1px solid #e4e4e7;
  color: #09090b;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem; /* rounded-lg */
  transition: all 150ms ease;
}

.dark .form-input {
  background-color: #09090b;
  border: 1px solid #27272a;
  color: #f4f4f5;
}

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

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

/* Sleek Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0 1rem;
  height: 2.25rem; /* 36px standard height */
  white-space: nowrap;
  border-radius: 0.5rem; /* rounded-lg */
  transition: all 150ms ease;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #18181b;
  color: #ffffff;
  border: 1px solid #27272a;
}

.dark .btn-primary {
  background-color: #f4f4f5;
  color: #09090b;
  border: 1px solid #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background-color: #27272a;
}

.dark .btn-primary:hover:not(:disabled) {
  background-color: #e4e4e7;
}

.btn-secondary {
  background-color: #ffffff;
  color: #27272a;
  border: 1px solid #e4e4e7;
}

.dark .btn-secondary {
  background-color: #09090b;
  color: #a1a1aa;
  border: 1px solid #27272a;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #f4f4f5;
  color: #09090b;
}

.dark .btn-secondary:hover:not(:disabled) {
  background-color: #18181b;
  color: #f4f4f5;
}

.btn-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.dark .btn-danger {
  background-color: #450a0a;
  color: #fca5a5;
  border: 1px solid #7f1d1d;
}

.btn-danger:hover:not(:disabled) {
  background-color: #fee2e2;
}

.dark .btn-danger:hover:not(:disabled) {
  background-color: #7f1d1d;
  color: #fecaca;
}

/* Elegant Tables */
.table-container {
  overflow-x: auto;
  border-radius: 0.5rem;
  border: 1px solid #e4e4e7;
}

.dark .table-container {
  border: 1px solid #27272a;
}

.table-head-row {
  background-color: #f8fafc;
  border-bottom: 1px solid #e4e4e7;
}

.dark .table-head-row {
  background-color: #09090b;
  border-bottom: 1px solid #27272a;
}

.table-row-hover:hover {
  background-color: #f8fafc;
}

.dark .table-row-hover:hover {
  background-color: #18181b;
}

/* Alerts */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  display: flex;
  gap: 0.75rem;
  line-height: 1.5;
}

.alert-error {
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  color: #991b1b;
}

.dark .alert-error {
  background-color: rgba(127, 29, 29, 0.2);
  border: 1px solid rgba(127, 29, 29, 0.4);
  color: #fca5a5;
}

.alert-success {
  background-color: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #166534;
}

.dark .alert-success {
  background-color: rgba(20, 83, 45, 0.2);
  border: 1px solid rgba(20, 83, 45, 0.4);
  color: #86efac;
}

.alert-info {
  background-color: #f0f9ff;
  border: 1px solid #e0f2fe;
  color: #075985;
}

.dark .alert-info {
  background-color: rgba(3, 73, 114, 0.2);
  border: 1px solid rgba(3, 73, 114, 0.4);
  color: #7dd3fc;
}

/* Skeleton Loading Anim */
.skeleton {
  background: #f1f5f9;
  background-image: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
}

.dark .skeleton {
  background: #18181b;
  background-image: linear-gradient(90deg, #18181b 25%, #27272a 37%, #18181b 63%);
  background-size: 400% 100%;
}

@keyframes skeleton-loading {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* Animation Utilities */
.fade-in {
  animation: fadeIn 200ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-up {
  animation: slideUp 250ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

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

/* Hotwire Turbo Top Progress Bar (GitHub / YouTube Style) */
.turbo-progress-bar {
  height: 3px !important;
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899) !important;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.7);
}


