/* ─── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c0c0c0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a0a0a0; }
.dark ::-webkit-scrollbar-thumb { background: #4b5563; }
.dark ::-webkit-scrollbar-thumb:hover { background: #6b7280; }

/* ─── Checkbox accent ────────────────────────────────────────────── */
input[type="checkbox"] { accent-color: #007bff; }

/* ─── Card entrance animation ────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.4s ease-out forwards; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ─── Sidebar accordion chevron rotation ────────────────────────── */
.sidebar-chevron.rotate-90 { transform: rotate(90deg); }

/* ─── Sidebar collapsed: hide children smoothly ────────────────── */
.sidebar-children {
  overflow: hidden;
  transition: max-height 0.25s ease;
}

/* ─── Main content margin transition ────────────────────────────── */
#mainContent {
  transition: margin-left 0.3s ease;
}

/* ─── Sidebar hover-float (collapsed peek) ──────────────────────── */
.sidebar-hover-float {
  box-shadow: 4px 0 24px rgba(0,0,0,0.12);
}
.dark .sidebar-hover-float {
  box-shadow: 4px 0 24px rgba(0,0,0,0.4);
}

/* ─── Theme toggle active button ─────────────────────────────────── */
.theme-btn-active {
  background: #ffffff;
  color: #343a40;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.dark .theme-btn-active {
  background: #374151;
  color: #f9fafb;
}

/* ─── Sidebar active states ──────────────────────────────────────── */
/* Light mode — Stripe blue #0570de */
.sidebar-active-direct {
  color: #0570de;
  background-color: rgba(5,112,222,0.07);
  border-color: #0570de !important;
  font-weight: 500;
}
.sidebar-active-parent { color: #0570de; font-weight: 500; }
.sidebar-active-child {
  color: #0570de;
  background-color: rgba(5,112,222,0.07);
  font-weight: 500;
}
/* Dark mode overrides */
.dark .sidebar-active-direct {
  color: #fff;
  background-color: rgba(5,112,222,0.25);
  border-color: #0570de !important;
  font-weight: 500;
}
.dark .sidebar-active-parent { color: #fff; font-weight: 500; }
.dark .sidebar-active-child {
  color: #fff;
  background-color: rgba(255,255,255,0.15);
  font-weight: 500;
}

/* ─── Typography improvements (Tailadmin-inspired) ──────────────── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Shadow improvements ────────────────────────────────────────── */
.card-shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
.card-shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ─── Button styles (Tailadmin-inspired) ────────────────────────── */
.btn-primary {
  background-color: #007bff;
  color: white;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
}

/* ─── Badge styles ───────────────────────────────────────────────── */
.badge-success {
  background-color: #d4edda;
  color: #155724;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.badge-warning {
  background-color: #fff3cd;
  color: #856404;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.badge-danger {
  background-color: #f8d7da;
  color: #721c24;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ─── Toggle switch (settings page) ─────────────────────────────── */
.toggle-track {
  width: 44px; height: 24px;
  border-radius: 12px;
  background: #e0e0e0;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-track.on { background: #007bff; }
.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-track.on::after { left: 22px; }

/* ─── Form Controls ───────────────────────────────────────────────── */
.dark select { color-scheme: dark; }
input[type="range"] { accent-color: #007bff; cursor: pointer; }
input[type="radio"] { accent-color: #007bff; }
.drop-zone-active { border-color: #007bff !important; background-color: rgba(0,123,255,0.04); }
.dark .drop-zone-active { background-color: rgba(0,123,255,0.10); }
input[type="checkbox"]:indeterminate { accent-color: #007bff; }
.multiselect-dropdown { max-height: 220px; overflow-y: auto; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.input-error { border-color: #dc3545 !important; }
.input-success { border-color: #28a745 !important; }
.input-error:focus { outline: none; box-shadow: 0 0 0 2px rgba(220,53,69,0.2); }
.input-success:focus { outline: none; box-shadow: 0 0 0 2px rgba(40,167,69,0.2); }

/* ─── Modals & Drawers ────────────────────────────────────────────── */
.modal-backdrop { background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); }
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-enter { animation: modalSlideIn 0.2s ease-out forwards; }
@keyframes drawerSlideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.drawer-enter { animation: drawerSlideIn 0.25s ease-out forwards; }

/* ─── Tables ──────────────────────────────────────────────────────── */
.sort-btn { cursor: pointer; user-select: none; }
.sort-btn .sort-icon { opacity: 0.35; transition: opacity 0.15s, transform 0.15s; }
.sort-btn:hover .sort-icon,
.sort-btn.asc .sort-icon,
.sort-btn.desc .sort-icon { opacity: 1; }
.sort-btn.desc .sort-icon { transform: rotate(180deg); }

/* Responsive table — any immediate parent div becomes horizontally scrollable.
   :has() specificity (0,1,1) beats Tailwind's overflow-hidden (0,1,0) so no page edits needed. */
div:has(> table.kf-table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Compact, minimalistic table */
.kf-table { width: 100%; font-size: 0.8125rem; text-align: left; border-collapse: collapse; }
.kf-table thead { background: #f8fafc; }
.dark .kf-table thead { background: rgba(255,255,255,0.03); }
.kf-table th {
  padding: 0.5rem 0.875rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
.dark .kf-table th { color: #6b7280; border-bottom-color: rgba(255,255,255,0.07); }
.kf-table td {
  padding: 0.5rem 0.875rem;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.dark .kf-table td { color: #cbd5e1; border-bottom-color: rgba(255,255,255,0.05); }
.kf-table tbody tr { transition: background 0.12s ease; }
/* Solid hover — no opacity, clear contrast in both modes */
.kf-table tbody tr:hover { background: #f0f7ff; }
.dark .kf-table tbody tr:hover { background: #1e2d3d; }
.kf-table tbody tr:last-child td { border-bottom: none; }
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skeleton-row {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 4px;
}
.dark .skeleton-row {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
  background-size: 600px 100%;
}

/* ─── Badges & Chips ──────────────────────────────────────────────── */
.chip-remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  cursor: pointer; transition: background 0.15s;
}
.chip-remove:hover { background: rgba(0,0,0,0.12); }
.dark .chip-remove:hover { background: rgba(255,255,255,0.15); }
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}
.dot-pulse { animation: pulse-dot 1.8s ease-in-out infinite; }

/* ─── Tooltips ────────────────────────────────────────────────────── */
.tooltip-box {
  position: fixed; z-index: 9999;
  padding: 6px 10px;
  background: #1f2937; color: #f9fafb;
  font-size: 12px; border-radius: 6px; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity 0.15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.dark .tooltip-box { background: #4b5563; color: #f3f4f6; }
.tooltip-box.show { opacity: 1; }
.tooltip-box::after {
  content: ''; position: absolute;
  border: 5px solid transparent;
}
.tooltip-box[data-pos="top"]::after {
  top: 100%; left: 50%; transform: translateX(-50%);
  border-top-color: #1f2937;
}
.tooltip-box[data-pos="bottom"]::after {
  bottom: 100%; left: 50%; transform: translateX(-50%);
  border-bottom-color: #1f2937;
}
.tooltip-box[data-pos="left"]::after {
  left: 100%; top: 50%; transform: translateY(-50%);
  border-left-color: #1f2937;
}
.tooltip-box[data-pos="right"]::after {
  right: 100%; top: 50%; transform: translateY(-50%);
  border-right-color: #1f2937;
}
.dark .tooltip-box[data-pos="top"]::after    { border-top-color:    #4b5563; }
.dark .tooltip-box[data-pos="bottom"]::after { border-bottom-color: #4b5563; }
.dark .tooltip-box[data-pos="left"]::after   { border-left-color:   #4b5563; }
.dark .tooltip-box[data-pos="right"]::after  { border-right-color:  #4b5563; }

/* ─── Spinner (buttons) ───────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.fa-spin { animation: spin 0.8s linear infinite; }

/* ─── Chat Bubbles ───────────────────────────────────────────────── */
.chat-bubble-sent {
  background: #007bff; color: #fff;
  border-radius: 18px 18px 4px 18px;
  padding: 10px 16px; max-width: 75%;
  word-wrap: break-word;
}
.chat-bubble-received {
  background: #f0f0f0; color: #343a40;
  border-radius: 18px 18px 18px 4px;
  padding: 10px 16px; max-width: 75%;
  word-wrap: break-word;
}
.dark .chat-bubble-received { background: #374151; color: #f3f4f6; }

/* ─── Typing Indicator ──────────────────────────────────────────── */
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}
.typing-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #9ca3af; display: inline-block;
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

/* ─── Chat Widget ────────────────────────────────────────────────── */
@keyframes widgetPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,123,255,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(0,123,255,0); }
}
.chat-widget-pulse { animation: widgetPulse 2s ease-in-out 3; }

/* ─── Email/Mailbox ──────────────────────────────────────────────── */
.email-row-unread { font-weight: 600; border-left: 3px solid #007bff; }
.email-star-active { color: #f59e0b !important; }

/* Resizer handle */
.mailbox-resizer {
  width: 5px; cursor: col-resize; position: relative;
  background: transparent; flex-shrink: 0; z-index: 5;
  transition: background 0.15s;
}
.mailbox-resizer::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  left: 1px; width: 3px; border-radius: 2px;
  background: transparent; transition: background 0.15s;
}
.mailbox-resizer:hover::after,
.mailbox-resizer.dragging::after { background: #007bff; }
.mailbox-resizer:hover, .mailbox-resizer.dragging { background: rgba(0,123,255,0.06); }
.dark .mailbox-resizer:hover, .dark .mailbox-resizer.dragging { background: rgba(0,123,255,0.12); }

/* View density modes */
.email-view-compact .email-row { padding-top: 4px !important; padding-bottom: 4px !important; }
.email-view-compact .email-row .email-preview { display: none; }
.email-view-compact .email-row .email-avatar { width: 24px; height: 24px; font-size: 10px; }
.email-view-compact .email-row .email-sender-line { margin-bottom: 0 !important; }

.email-view-comfortable .email-row { padding-top: 14px !important; padding-bottom: 14px !important; }
.email-view-comfortable .email-row .email-preview { display: block; margin-top: 4px; }
.email-view-comfortable .email-row .email-avatar { width: 40px; height: 40px; font-size: 14px; }

/* ─── Calendar ───────────────────────────────────────────────────── */
.calendar-today {
  background: #007bff; color: #fff !important;
  border-radius: 50%; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.calendar-event-bar {
  font-size: 11px; padding: 1px 6px;
  border-radius: 4px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  cursor: pointer;
}

/* ─── Kanban ─────────────────────────────────────────────────────── */
.kanban-card-dragging { opacity: 0.5; transform: rotate(2deg); }

/* ─── Order Timeline ─────────────────────────────────────────────── */
.timeline-step {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; border: 2px solid #e0e0e0;
  background: #fff; color: #6c757d;
  position: relative; z-index: 1;
}
.timeline-step.active { border-color: #007bff; background: #007bff; color: #fff; }
.timeline-step.completed { border-color: #28a745; background: #28a745; color: #fff; }
.dark .timeline-step { background: #1f2937; border-color: #4b5563; color: #9ca3af; }
.dark .timeline-step.active { border-color: #007bff; background: #007bff; color: #fff; }
.dark .timeline-step.completed { border-color: #28a745; background: #28a745; color: #fff; }
.timeline-connector {
  height: 2px; flex: 1; background: #e0e0e0;
  position: relative; top: 0;
}
.timeline-connector.completed { background: #28a745; }
.dark .timeline-connector { background: #4b5563; }
.dark .timeline-connector.completed { background: #28a745; }

/* ─── Print (Invoices) ───────────────────────────────────────────── */
@media print {
  #sidebar, #mainContent > header, #notificationOverlay, #notificationPanel,
  #mobileOverlay, #chatWidget, .no-print { display: none !important; }
  #mainContent { margin-left: 0 !important; }
  body { background: #fff !important; }
  .print-area { box-shadow: none !important; border: none !important; }
}

/* ─── Countdown (Maintenance) ────────────────────────────────────── */
.countdown-box {
  min-width: 80px; padding: 16px 8px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-align: center;
}
.dark .countdown-box { background: #1f2937; }

/* ─── Activity Timeline ─────────────────────────────────────────── */
.activity-timeline-item {
  position: relative; padding-left: 32px;
}
.activity-timeline-item::before {
  content: ''; position: absolute; left: 11px; top: 28px;
  bottom: -12px; width: 2px; background: #e0e0e0;
}
.activity-timeline-item:last-child::before { display: none; }
.dark .activity-timeline-item::before { background: #4b5563; }

/* ─── Premium Button System (.kf-btn) ───────────────────────────── */
.kf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.4rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.kf-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Primary */
.kf-btn-primary {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
  box-shadow: 0 1px 2px rgba(0,123,255,0.25);
}
.kf-btn-primary:hover:not(:disabled) {
  background: #0062cc;
  border-color: #0062cc;
  box-shadow: 0 3px 8px rgba(0,123,255,0.3);
  transform: translateY(-1px);
}
.kf-btn-primary:active:not(:disabled) { transform: translateY(0); box-shadow: none; }

/* Secondary / Ghost */
.kf-btn-secondary {
  background: transparent;
  color: #374151;
  border-color: #d1d5db;
}
.kf-btn-secondary:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #9ca3af;
}
.dark .kf-btn-secondary {
  color: #d1d5db;
  border-color: #4b5563;
}
.dark .kf-btn-secondary:hover:not(:disabled) {
  background: #374151;
  border-color: #6b7280;
}

/* Danger */
.kf-btn-danger {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
  box-shadow: 0 1px 2px rgba(220,38,38,0.2);
}
.kf-btn-danger:hover:not(:disabled) {
  background: #b91c1c;
  border-color: #b91c1c;
  box-shadow: 0 3px 8px rgba(220,38,38,0.3);
  transform: translateY(-1px);
}

/* Success */
.kf-btn-success {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
  box-shadow: 0 1px 2px rgba(22,163,74,0.2);
}
.kf-btn-success:hover:not(:disabled) {
  background: #15803d;
  border-color: #15803d;
  box-shadow: 0 3px 8px rgba(22,163,74,0.3);
  transform: translateY(-1px);
}

/* Ghost (text only) */
.kf-btn-ghost {
  background: transparent;
  color: #6b7280;
  border-color: transparent;
}
.kf-btn-ghost:hover:not(:disabled) {
  background: #f3f4f6;
  color: #374151;
}
.dark .kf-btn-ghost { color: #9ca3af; }
.dark .kf-btn-ghost:hover:not(:disabled) { background: #1f2937; color: #e5e7eb; }

/* Sizes */
.kf-btn-xs { padding: 0.25rem 0.625rem; font-size: 0.75rem; border-radius: 0.35rem; }
.kf-btn-lg { padding: 0.6rem 1.25rem; font-size: 0.9375rem; border-radius: 0.5rem; }
.kf-btn-full { width: 100%; }

/* Icon-only */
.kf-btn-icon {
  padding: 0.4rem;
  aspect-ratio: 1;
  border-radius: 0.4rem;
}

/* ─── Table row entrance animation ───────────────────────────────── */
@keyframes tableRowIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.table-row-in { animation: tableRowIn 0.2s ease-out forwards; }

/* ─── Dropdown open animation ────────────────────────────────────── */
@keyframes dropdownOpen {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.dropdown-enter { animation: dropdownOpen 0.15s ease-out forwards; }

/* ─── Validation styles ──────────────────────────────────────────── */
.validation-summary-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  list-style: none;
}
.dark .validation-summary-errors {
  background: rgba(220,53,69,0.1);
  border-color: rgba(220,53,69,0.3);
}
.validation-summary-errors li {
  color: #dc2626;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}
.validation-summary-errors li:last-child { margin-bottom: 0; }
.field-validation-error {
  color: #dc2626;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
}
.dark .field-validation-error { color: #f87171; }

/* ─── Sidebar section label ──────────────────────────────────────── */
.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 0.75rem 0.75rem 0.25rem;
  user-select: none;
}
.dark .sidebar-section-label { color: #6b7280; }

/* ─── Touch targets (mobile accessibility) ───────────────────────── */
.touch-target { min-width: 44px; min-height: 44px; }

/* ─── Sort icon active color ─────────────────────────────────────── */
.sort-btn.asc .sort-icon,
.sort-btn.desc .sort-icon { color: #007bff; }

/* ─── iOS zoom prevention ────────────────────────────────────────── */
@media (max-width: 640px) {
  input, select, textarea { font-size: 16px; }
}

/* ─── Native select using kf-input styles ───────────────────────── */
select.kf-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  padding-right: 2rem;
}

/* ─── Premium input field (.kf-input) ───────────────────────────── */
.kf-input {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0.4rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  color: #1e293b;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  line-height: 1.5;
}
.kf-input:hover:not(:disabled) {
  border-color: #cbd5e1;
  background: #fff;
}
.kf-input:focus {
  border-color: #007bff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}
.kf-input::placeholder { color: #94a3b8; }
.kf-input:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 1;
}
/* Dark mode */
.dark .kf-input {
  background: #1e2533;
  border-color: #334155;
  color: #e2e8f0;
}
.dark .kf-input:hover:not(:disabled) {
  border-color: #475569;
  background: #253044;
}
.dark .kf-input:focus {
  border-color: #007bff;
  background: #253044;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.18);
}
.dark .kf-input::placeholder { color: #64748b; }
.dark .kf-input:disabled { background: #161e2e; color: #4b5563; }

/* Textarea variant */
.kf-input.kf-textarea { resize: vertical; min-height: 80px; }

/* Premium label */
.kf-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
  letter-spacing: 0.01em;
}
.dark .kf-label { color: #d1d5db; }

/* Input with icon prefix wrapper */
.kf-input-group {
  position: relative;
}
.kf-input-group .kf-input {
  padding-left: 2.5rem;
}
.kf-input-group .kf-input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.875rem;
  pointer-events: none;
  transition: color 0.15s;
}
.kf-input-group:focus-within .kf-input-icon { color: #007bff; }
.dark .kf-input-group .kf-input-icon { color: #64748b; }
.dark .kf-input-group:focus-within .kf-input-icon { color: #007bff; }

/* Field wrapper spacing */
.kf-field { margin-bottom: 1rem; }
.kf-field:last-of-type { margin-bottom: 0; }
