/* ═══════════════════════════════════════════
   UIKit Pro - ugilabs.com — Component Styles
═══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: none;
  line-height: 1;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:active { transform: scale(.97); }

.btn-xs  { padding: 5px 10px;  font-size: .72rem; border-radius: var(--radius-sm); }
.btn-sm  { padding: 8px 16px;  font-size: .8rem;  }
.btn-md  { padding: 10px 20px; font-size: .875rem; }
.btn-lg  { padding: 13px 28px; font-size: 1rem;    }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 4px 14px rgba(99,102,241,.4); }

.btn-secondary {
  background: var(--secondary);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--secondary-dark); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-2); }

.btn-ghost-white {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.22); }

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover { background: #dc2626; }

.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

/* ══════════════════════════════════════════
   INPUTS & FORMS
══════════════════════════════════════════ */
.input-group { display: flex; flex-direction: column; gap: 6px; }

.input-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-2);
}
.input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .875rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.input.input-error {
  border-color: var(--danger);
}
.input.input-error:focus {
  box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}
.input.input-success {
  border-color: var(--success);
}
.input-hint { font-size: .75rem; color: var(--text-3); }
.input-hint-error { color: var(--danger); }
.input-hint-success { color: var(--success); }

.select-wrapper { position: relative; }
.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-3);
  font-size: .8rem;
}
.select { appearance: none; padding-right: 32px; }

/* ══════════════════════════════════════════
   BADGE & CHIP
══════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  line-height: 1.4;
}
.badge-primary  { background: var(--primary-light); color: var(--primary-dark); }
.badge-success  { background: #d1fae5; color: #065f46; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-neutral  { background: #f1f5f9; color: #475569; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  padding: 3px 8px 3px 10px;
  border-radius: var(--radius-full);
  font-size: .78rem;
  font-weight: 500;
}
.chip-remove {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  color: var(--text-3);
  transition: background var(--transition), color var(--transition);
}
.chip-remove:hover { background: var(--border); color: var(--text); }

/* ══════════════════════════════════════════
   ALERT
══════════════════════════════════════════ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: .83rem;
  font-weight: 500;
  border: 1.5px solid;
}
.alert-icon { font-size: .9rem; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: #f0fdf4; border-color: #86efac; color: #166534; }
.alert-warning { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.alert-danger  { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.alert-info    { background: #eff6ff; border-color: #93c5fd; color: #1e40af; }

/* ══════════════════════════════════════════
   CARD
══════════════════════════════════════════ */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-img-placeholder {
  height: 80px;
  background: linear-gradient(135deg, var(--primary-light), #ddd6fe);
}
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-size: .9rem; font-weight: 700; }
.card-text { font-size: .78rem; color: var(--text-2); }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.card-price { font-size: 1rem; font-weight: 800; color: var(--primary); }

.card-demo { max-width: 180px; }
.preview-card-demo { display: flex; justify-content: center; width: 100%; }

/* ══════════════════════════════════════════
   DROPDOWN
══════════════════════════════════════════ */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 6px;
  z-index: 200;
  animation: dropDown .15s ease;
}
@keyframes dropDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-item {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: var(--text);
  transition: background var(--transition);
}
.dropdown-item:hover { background: var(--bg-2); }
.dropdown-item-danger { color: var(--danger); }
.dropdown-item-danger:hover { background: #fef2f2; }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* ══════════════════════════════════════════
   TABS
══════════════════════════════════════════ */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  gap: 2px;
}
.tab {
  padding: 8px 14px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content {
  display: none;
  padding: 12px 0 0;
  font-size: .83rem;
  color: var(--text-2);
}
.tab-content.active { display: block; }

/* ══════════════════════════════════════════
   PROGRESS
══════════════════════════════════════════ */
.preview-progress { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.progress-label { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 600; color: var(--text-2); }
.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width .6s ease;
}
.progress-fill-warning { background: var(--warning); }
.progress-fill-danger  { background: var(--danger); }
.progress-fill-success { background: var(--success); }

/* ══════════════════════════════════════════
   TOGGLE / SWITCH
══════════════════════════════════════════ */
.preview-toggles { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 500;
}
.toggle {
  width: 40px; height: 22px;
  background: var(--border);
  border-radius: var(--radius-full);
  position: relative;
  transition: background var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}
.toggle::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.toggle.active { background: var(--primary); }
.toggle.active::after { transform: translateX(18px); }

/* ══════════════════════════════════════════
   CHECKBOX & RADIO
══════════════════════════════════════════ */
.preview-checks { display: flex; flex-direction: column; gap: 8px; }
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: .85rem;
}
.check, .radio {
  appearance: none;
  width: 17px; height: 17px;
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
  flex-shrink: 0;
  background: var(--bg);
}
.radio { border-radius: 50%; }
.check:checked, .radio:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.check:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.radio:checked::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
}

/* ══════════════════════════════════════════
   AVATAR
══════════════════════════════════════════ */
.avatar-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}
.avatar-xl  { width: 56px; height: 56px; font-size: .9rem; }
.avatar-lg  { width: 44px; height: 44px; font-size: .8rem; }
.avatar-md  { width: 36px; height: 36px; font-size: .72rem; }
.avatar-sm  { width: 28px; height: 28px; font-size: .65rem; }
.avatar-xs  { width: 22px; height: 22px; font-size: .58rem; }
.avatar-online::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.avatar-more {
  background: var(--secondary);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-2);
}

/* ══════════════════════════════════════════
   TOOLTIP
══════════════════════════════════════════ */
.tooltip-wrap { position: relative; display: inline-flex; }
.tooltip-wrap:hover .tooltip { opacity: 1; pointer-events: auto; }
.tooltip {
  position: absolute;
  background: var(--bg-dark);
  color: #f8fafc;
  font-size: .75rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 500;
}
.tooltip-top { bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.tooltip-bottom { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.tooltip-top::after, .tooltip-bottom::after {
  content: '';
  position: absolute;
  left: 50%; transform: translateX(-50%);
  border: 5px solid transparent;
}
.tooltip-top::after { top: 100%; border-top-color: var(--bg-dark); }
.tooltip-bottom::after { bottom: 100%; border-bottom-color: var(--bg-dark); }

/* ══════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════ */
.breadcrumb { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.breadcrumb-item { font-size: .8rem; color: var(--text-2); transition: color var(--transition); }
a.breadcrumb-item:hover { color: var(--primary); }
.breadcrumb-sep { font-size: .75rem; color: var(--text-3); }
.breadcrumb-active { color: var(--text); font-weight: 600; }

/* ══════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════ */
.pagination { display: flex; align-items: center; gap: 4px; }
.page-btn {
  min-width: 32px; height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-dots { font-size: .85rem; color: var(--text-3); padding: 0 4px; }

/* ══════════════════════════════════════════
   TABLE
══════════════════════════════════════════ */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-2);
  font-weight: 700;
  font-size: .75rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--bg-2); }

/* ══════════════════════════════════════════
   ACCORDION
══════════════════════════════════════════ */
.accordion { display: flex; flex-direction: column; gap: 6px; }
.accordion-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: .85rem;
  font-weight: 600;
  background: var(--bg);
  text-align: left;
  transition: background var(--transition);
}
.accordion-header:hover { background: var(--bg-2); }
.acc-icon { transition: transform var(--transition); font-size: .75rem; color: var(--text-3); }
.accordion-item.open .acc-icon { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 0 16px 14px;
  font-size: .83rem;
  color: var(--text-2);
  line-height: 1.6;
}
.accordion-item.open .accordion-body { display: block; }

/* ══════════════════════════════════════════
   SKELETON
══════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-demo { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.skeleton-row { display: flex; align-items: center; gap: 10px; }
.skeleton-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.skeleton-line { height: 12px; border-radius: var(--radius-full); width: 100%; }
.skeleton-block { height: 80px; border-radius: var(--radius); width: 100%; }

/* ══════════════════════════════════════════
   STAT CARDS
══════════════════════════════════════════ */
.stat-cards-demo { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.stat-card-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.stat-card-value { font-size: 1rem; font-weight: 800; }
.stat-card-label { font-size: .72rem; color: var(--text-2); }
.stat-card-change { font-size: .72rem; font-weight: 700; }
.stat-card-change.positive { color: var(--success); }
.stat-card-change.negative { color: var(--danger); }

/* ══════════════════════════════════════════
   PREVIEW HELPERS
══════════════════════════════════════════ */
.preview-buttons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.preview-badges  { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.preview-alerts  { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.preview-form    { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.tabs-demo       { width: 100%; }

/* ══════════════════════════════════════════
   SPINNER
══════════════════════════════════════════ */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
.spinner-sm { width: 20px; height: 20px; border-width: 2px; }
.spinner-lg { width: 48px; height: 48px; border-width: 4px; }
.spinner-success { border-top-color: var(--success); }
.spinner-warning { border-top-color: var(--warning); }
.spinner-danger  { border-top-color: var(--danger);  }
@keyframes spin { to { transform: rotate(360deg); } }
.preview-spinner { display: flex; align-items: center; gap: 16px; }

/* ══════════════════════════════════════════
   RATING
══════════════════════════════════════════ */
.rating { display: inline-flex; gap: 4px; }
.star {
  font-size: 1.25rem;
  color: var(--border);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
  line-height: 1;
}
.star.filled, .star.hover { color: #f59e0b; }
.star:hover { transform: scale(1.15); }
.rating-label { font-size: .8rem; color: var(--text-2); font-weight: 600; }
.rating-wrap { display: flex; align-items: center; gap: 10px; }

/* ══════════════════════════════════════════
   SLIDER / RANGE
══════════════════════════════════════════ */
.slider-wrap { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.slider-label-row { display: flex; justify-content: space-between; align-items: center; }
.slider-label { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.slider-value { font-size: .8rem; font-weight: 700; color: var(--primary); }
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%; height: 6px;
  border-radius: var(--radius-full);
  background: var(--border);
  outline: none;
  cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 1px 4px rgba(99,102,241,.4);
  transition: transform var(--transition);
}
.slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  box-shadow: 0 1px 4px rgba(99,102,241,.4);
}

/* ══════════════════════════════════════════
   STEPPER (FORM STEPS)
══════════════════════════════════════════ */
.stepper { display: flex; align-items: center; width: 100%; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; position: relative; }
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}
.step-item.done::after, .step-item.active::after { background: var(--primary); }
.step-circle {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  color: var(--text-2);
  position: relative; z-index: 1;
  transition: all var(--transition);
}
.step-item.done  .step-circle { background: var(--primary); border-color: var(--primary); color: #fff; }
.step-item.active .step-circle { border-color: var(--primary); color: var(--primary); }
.step-name { font-size: .7rem; font-weight: 600; color: var(--text-3); text-align: center; }
.step-item.done .step-name, .step-item.active .step-name { color: var(--primary); }

/* ══════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 16px;
  text-align: center;
}
.empty-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--text-3);
}
.empty-title { font-size: .95rem; font-weight: 700; color: var(--text); }
.empty-desc  { font-size: .8rem; color: var(--text-2); max-width: 220px; line-height: 1.5; }

/* ══════════════════════════════════════════
   SIDEBAR (MINI NAV)
══════════════════════════════════════════ */
.sidebar-demo {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  width: 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.sidebar-item:hover { background: var(--bg-2); color: var(--text); }
.sidebar-item.active { background: var(--primary-light); color: var(--primary); font-weight: 700; }
.sidebar-icon { font-size: .9rem; flex-shrink: 0; }
.sidebar-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ══════════════════════════════════════════
   TEXTAREA
══════════════════════════════════════════ */
.textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .875rem;
  color: var(--text);
  background: var(--bg);
  resize: vertical;
  min-height: 80px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.5;
}
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ══════════════════════════════════════════
   FILE UPLOAD
══════════════════════════════════════════ */
.file-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  text-align: center;
}
.file-drop:hover { border-color: var(--primary); background: var(--primary-light); }
.file-drop-icon { font-size: 1.5rem; color: var(--text-3); }
.file-drop-title { font-size: .85rem; font-weight: 600; color: var(--text); }
.file-drop-sub   { font-size: .75rem; color: var(--text-3); }

/* ══════════════════════════════════════════
   SEARCH INPUT
══════════════════════════════════════════ */
.search-wrap { position: relative; width: 100%; }
.search-icon {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: .9rem;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 9px 12px 9px 32px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: .875rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.search-input::placeholder { color: var(--text-3); }

/* ══════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════ */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider-text { font-size: .75rem; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.divider-plain { height: 1px; background: var(--border); width: 100%; }

/* ══════════════════════════════════════════
   LIST GROUP
══════════════════════════════════════════ */
.list-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  font-size: .85rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background var(--transition);
  gap: 10px;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--bg-2); }
.list-item-left { display: flex; align-items: center; gap: 10px; }
.list-item-icon { font-size: 1rem; color: var(--text-3); flex-shrink: 0; }
.list-item-title { font-weight: 600; color: var(--text); }
.list-item-sub   { font-size: .75rem; color: var(--text-2); }

/* ══════════════════════════════════════════
   TIMELINE
══════════════════════════════════════════ */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.timeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}
.timeline-dot.success { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.timeline-dot.warning { background: var(--warning); box-shadow: 0 0 0 2px var(--warning); }
.timeline-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 4px;
}
.timeline-item:last-child .timeline-line { display: none; }
.timeline-content { padding-top: 0; }
.timeline-title { font-size: .85rem; font-weight: 700; color: var(--text); }
.timeline-time  { font-size: .72rem; color: var(--text-3); margin-bottom: 2px; }
.timeline-desc  { font-size: .78rem; color: var(--text-2); line-height: 1.5; }

/* ══════════════════════════════════════════
   CALLOUT
══════════════════════════════════════════ */
.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
}
.callout-warning { border-left-color: var(--warning); background: #fffbeb; }
.callout-danger  { border-left-color: var(--danger);  background: #fef2f2; }
.callout-success { border-left-color: var(--success); background: #f0fdf4; }
.callout-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.callout-body { }
.callout-title { font-size: .85rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.callout-text  { font-size: .8rem; color: var(--text-2); line-height: 1.5; }

/* ══════════════════════════════════════════
   TAG INPUT
══════════════════════════════════════════ */
.tag-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: text;
  min-height: 42px;
  align-items: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tag-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: .75rem;
  font-weight: 600;
  padding: 2px 8px 2px 10px;
  border-radius: var(--radius-full);
}
.tag-item-remove {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  color: var(--primary);
  transition: background var(--transition);
}
.tag-item-remove:hover { background: var(--primary); color: #fff; }
.tag-input-field {
  border: none; outline: none;
  font-size: .8rem; font-family: var(--font);
  color: var(--text);
  background: transparent;
  min-width: 80px;
  flex: 1;
}

/* ══════════════════════════════════════════
   NOTIFICATION BADGE (BELL)
══════════════════════════════════════════ */
.notif-btn-wrap { position: relative; display: inline-flex; }
.notif-dot {
  position: absolute;
  top: 0; right: 0;
  width: 10px; height: 10px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.notif-count {
  position: absolute;
  top: -4px; right: -6px;
  background: var(--danger);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg);
  line-height: 1.4;
}
.icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.icon-btn:hover { background: var(--bg-2); border-color: var(--primary); }
.preview-notif { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ══════════════════════════════════════════
   CODE BLOCK
══════════════════════════════════════════ */
.code-snippet {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: .78rem;
  line-height: 1.6;
  overflow-x: auto;
  position: relative;
}
.code-snippet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  padding: 8px 14px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: .72rem;
  color: #94a3b8;
  font-family: var(--font);
}
.code-snippet-header + .code-snippet { border-radius: 0 0 var(--radius) var(--radius); }
.code-copy-btn {
  background: rgba(255,255,255,.08);
  color: #94a3b8;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: .7rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.code-copy-btn:hover { background: rgba(255,255,255,.16); color: #f8fafc; }
.code-kw   { color: #a78bfa; }
.code-str  { color: #86efac; }
.code-fn   { color: #67e8f9; }
.code-num  { color: #fbbf24; }
.code-cmt  { color: #64748b; }

/* ══════════════════════════════════════════
   COLOR SWATCH (COLOR PICKER PREVIEW)
══════════════════════════════════════════ */
.color-palette { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.selected { border-color: var(--text); }
.color-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.color-thumb {
  width: 24px; height: 24px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.color-hex {
  font-size: .82rem;
  font-family: monospace;
  color: var(--text);
  border: none; outline: none;
  background: transparent;
  width: 80px;
}

/* ══════════════════════════════════════════
   DATE INPUT
══════════════════════════════════════════ */
.date-input-wrap { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.date-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .875rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.date-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
