@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables - shadcn/ui theme configuration */
:root {
  /* Color scheme - professional automotive service theme */
  --background: oklch(0.99 0 0);
  --foreground: oklch(0.15 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.15 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.15 0 0);
  --primary: oklch(0.42 0.15 250);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.96 0.01 250);
  --secondary-foreground: oklch(0.15 0 0);
  --muted: oklch(0.96 0.01 250);
  --muted-foreground: oklch(0.52 0.02 250);
  --accent: oklch(0.55 0.18 195);
  --accent-foreground: oklch(0.99 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.99 0 0);
  --border: oklch(0.9 0.01 250);
  --input: oklch(0.9 0.01 250);
  --ring: oklch(0.42 0.15 250);
  --radius: 0.5rem;
  --sidebar: oklch(0.98 0.005 250);
  --sidebar-foreground: oklch(0.15 0 0);
  --sidebar-primary: oklch(0.42 0.15 250);
  --sidebar-primary-foreground: oklch(0.99 0 0);
  --sidebar-accent: oklch(0.94 0.01 250);
  --sidebar-accent-foreground: oklch(0.15 0 0);
  --sidebar-border: oklch(0.9 0.01 250);
  --sidebar-ring: oklch(0.42 0.15 250);
}

.dark {
  --background: oklch(0.12 0.01 250);
  --foreground: oklch(0.96 0.01 250);
  --card: oklch(0.15 0.01 250);
  --card-foreground: oklch(0.96 0.01 250);
  --popover: oklch(0.15 0.01 250);
  --popover-foreground: oklch(0.96 0.01 250);
  --primary: oklch(0.55 0.18 250);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.2 0.02 250);
  --secondary-foreground: oklch(0.96 0.01 250);
  --muted: oklch(0.2 0.02 250);
  --muted-foreground: oklch(0.6 0.02 250);
  --accent: oklch(0.55 0.18 195);
  --accent-foreground: oklch(0.99 0 0);
  --destructive: oklch(0.5 0.2 30);
  --destructive-foreground: oklch(0.99 0 0);
  --border: oklch(0.22 0.02 250);
  --input: oklch(0.22 0.02 250);
  --ring: oklch(0.55 0.18 250);
  --sidebar: oklch(0.15 0.01 250);
  --sidebar-foreground: oklch(0.96 0.01 250);
  --sidebar-primary: oklch(0.55 0.18 250);
  --sidebar-primary-foreground: oklch(0.99 0 0);
  --sidebar-accent: oklch(0.2 0.02 250);
  --sidebar-accent-foreground: oklch(0.96 0.01 250);
  --sidebar-border: oklch(0.22 0.02 250);
  --sidebar-ring: oklch(0.55 0.18 250);
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* shadcn/ui Sidebar Component */
.sidebar-wrapper {
  --sidebar-width: 16rem;
  --sidebar-width-icon: 3rem;
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  position: fixed;
  inset-y: 0;
  z-index: 10;
  display: none;
  height: 100vh;
  width: var(--sidebar-width);
  flex-direction: column;
  background-color: var(--sidebar);
  border-right: 1px solid var(--sidebar-border);
  transition: width 0.2s ease-linear;
}

@media (min-width: 768px) {
  .sidebar {
    display: flex;
  }
}

.sidebar.collapsed {
  width: var(--sidebar-width-icon);
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
}

.sidebar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  padding: 0.5rem;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  list-style: none;
}

.sidebar-menu-item {
  position: relative;
}

.sidebar-menu-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  padding: 0.5rem;
  text-align: left;
  text-decoration: none;
  color: var(--sidebar-foreground);
  border-radius: var(--radius);
  transition: background-color 0.2s;
  font-size: 0.875rem;
}

.sidebar-menu-button:hover {
  background-color: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
}

.sidebar-menu-button.active {
  background-color: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
  font-weight: 500;
}

.sidebar-menu-button svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.sidebar.collapsed .sidebar-menu-button span {
  display: none;
}

.sidebar-inset {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 768px) {
  .sidebar-inset {
    margin-left: var(--sidebar-width);
  }
  
  .sidebar.collapsed + .sidebar-inset {
    margin-left: var(--sidebar-width-icon);
  }
}

/* shadcn/ui Header Component */
.header {
  display: flex;
  height: 4rem;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-left: 1rem;
  padding-right: 1rem;
}

.sidebar-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s;
}

.sidebar-trigger:hover {
  background-color: var(--accent);
}

.sidebar-trigger svg {
  width: 1rem;
  height: 1rem;
}

.separator {
  flex-shrink: 0;
  background-color: var(--border);
  width: 1px;
  height: 1rem;
}

/* shadcn/ui Breadcrumb Component */
.breadcrumb {
  display: flex;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.breadcrumb-page {
  color: var(--foreground);
  font-weight: normal;
}

.breadcrumb-link {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: var(--foreground);
}

.breadcrumb-separator {
  color: var(--muted-foreground);
  margin: 0 0.5rem;
}

/* shadcn/ui Card Component */
.card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--card-foreground);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.card-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 0.5rem;
}

.card-header.column {
  flex-direction: column;
  align-items: start;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 500;
}

.card-title.large {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.card-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.card-content {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.card-content.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.card-content.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.card-content.space-y-4 > * + * {
  margin-top: 1rem;
}

/* shadcn/ui Badge Component */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}

.badge.default {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.badge.secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.badge.destructive {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
}

.badge.outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

/* shadcn/ui Progress Component */
.progress {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 9999px;
  height: 0.5rem;
  background-color: oklch(from var(--primary) l c h / 0.2);
}

.progress-indicator {
  height: 100%;
  width: 100%;
  flex: 1;
  background-color: var(--primary);
  transition: transform 0.3s;
}

/* shadcn/ui Button Component */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  padding: 0.5rem 1rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  width: auto;
  min-width: fit-content;
}

.button:hover {
  opacity: 0.9;
}

.button.outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.button.outline:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.button.destructive {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
}

.button.destructive:hover {
  background-color: var(--destructive);
  opacity: 0.9;
}

.button.outline.destructive {
  border-color: var(--destructive);
  color: var(--destructive);
}

.button.outline.destructive:hover {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
}

/* shadcn/ui Input Component */
.input {
  display: flex;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  background-color: var(--background);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px oklch(from var(--ring) l c h / 0.2);
}

.input::placeholder {
  color: var(--muted-foreground);
}

/* shadcn/ui Textarea Component */
.textarea {
  display: flex;
  width: 100%;
  min-height: 5rem;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  background-color: var(--background);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: all 0.2s;
  resize: vertical;
  font-family: inherit;
}

.textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px oklch(from var(--ring) l c h / 0.2);
}

.textarea::placeholder {
  color: var(--muted-foreground);
}

/* shadcn/ui Label Component */
.label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* shadcn/ui Dialog/Modal Component */
.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog-overlay.hidden {
  display: none;
}

.dialog-overlay.closing {
  animation: fadeOut 0.2s ease-out;
}

.dialog-content {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 50;
  display: grid;
  width: 100%;
  max-width: calc(100% - 2rem);
  transform: translate(-50%, -50%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--background);
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  gap: 1rem;
  animation: dialogIn 0.2s ease-out;
}

.dialog-content.closing {
  animation: dialogOut 0.2s ease-out;
}

@media (min-width: 640px) {
  .dialog-content {
    max-width: 32rem;
  }
}

.dialog-content.max-w-2xl {
  max-width: 42rem;
}

.dialog-content.max-w-xl {
  max-width: 36rem;
}

.dialog-content.max-w-lg {
  max-width: 32rem;
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border-radius: 0.25rem;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.dialog-close:hover {
  opacity: 1;
}

.dialog-close svg {
  width: 1rem;
  height: 1rem;
}

.dialog-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

@media (min-width: 640px) {
  .dialog-header {
    text-align: left;
  }
}

.dialog-title {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  line-height: 1;
}

.dialog-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.dialog-footer {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .dialog-footer {
    flex-direction: row;
    justify-content: flex-end;
  }
}

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

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

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes dialogOut {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.95);
  }
}

/* shadcn/ui Table Component */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table-header {
  border-bottom: 1px solid var(--border);
}

.table-row {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
}

.table-row:hover {
  background-color: var(--muted);
}

.table-head {
  padding: 0.75rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.table-cell {
  padding: 0.75rem;
  font-size: 0.875rem;
}

/* shadcn/ui Tabs Component */
.tabs {
  width: 100%;
}

.tabs-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background-color: var(--muted);
  padding: 0.25rem;
  gap: 0.25rem;
}

.tabs-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: calc(var(--radius) - 2px);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--muted-foreground);
}

.tabs-trigger:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.tabs-trigger.active {
  background-color: var(--background);
  color: var(--foreground);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.tabs-content {
  margin-top: 1.5rem;
}

/* shadcn/ui Switch/Toggle Component */
.switch {
  position: relative;
  display: inline-flex;
  width: 2.75rem;
  height: 1.5rem;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 9999px;
  border: none;
  background-color: var(--input);
  transition: background-color 0.2s;
}

.switch:checked {
  background-color: var(--primary);
}

.switch::before {
  content: '';
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: white;
  transition: transform 0.2s;
  transform: translateX(0.125rem);
  top: 0.125rem;
}

.switch:checked::before {
  transform: translateX(1.375rem);
}

/* Avatar Component */
.avatar {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: var(--radius);
  height: 2rem;
  width: 2rem;
}

.avatar-fallback {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background-color: var(--muted);
}

/* Search Component */
.search-container {
  position: relative;
  display: none;
  align-items: center;
  cursor: pointer;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .search-container {
    display: flex;
  }
}

.search-input {
  padding-left: 2rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 18.75rem;
  background-color: var(--background);
  transition: background-color 0.2s;
}

.search-input:hover {
  background-color: var(--accent);
}

.search-icon {
  position: absolute;
  left: 0.5rem;
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
}

/* Notifications Component */
.notifications-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.notifications-button:hover {
  background-color: var(--accent);
}

.notifications-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  display: flex;
  height: 1.25rem;
  width: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--destructive);
  color: var(--destructive-foreground);
  font-size: 0.625rem;
}

/* Facebook-like Notifications Dropdown */
.notifications-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 380px;
  max-width: min(380px, calc(100vw - 2rem));
  background-color: var(--card);
  border-radius: 0.75rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.4);
  z-index: 40;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.notifications-dropdown.hidden {
  display: none;
}

@media (max-width: 640px) {
  .notifications-dropdown {
    right: -1rem;
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
  }
}

.notifications-dropdown-header {
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, rgba(37, 99, 235, 0.06), rgba(59, 130, 246, 0.02));
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.notifications-dropdown-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
}

.notifications-mark-all {
  font-size: 0.75rem;
  color: var(--primary);
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.notifications-mark-all:hover {
  background-color: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.notifications-dropdown-content {
  max-height: 420px;
  overflow-y: auto;
  padding: 0.35rem 0.25rem 0.35rem 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.8) transparent;
}

.notifications-dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.notifications-dropdown-content::-webkit-scrollbar-track {
  background: transparent;
}

.notifications-dropdown-content::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.8);
  border-radius: 9999px;
}

.notification-item-compact {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem 0.55rem 0.45rem;
  border-radius: 0.85rem;
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.notification-item-compact:hover {
  background-color: rgba(148, 163, 184, 0.15);
  transform: translateY(-1px);
}

.notification-item-compact.unread {
  background-color: rgba(59, 130, 246, 0.12);
}

.notification-avatar {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
}

.notification-avatar.urgent {
  background: radial-gradient(circle at 30% 10%, #fee2e2, #b91c1c);
}

.notification-avatar.warning {
  background: radial-gradient(circle at 30% 10%, #ffedd5, #c2410c);
}

.notification-avatar.info {
  background: radial-gradient(circle at 30% 10%, #dbeafe, #1d4ed8);
}

.notification-avatar.success {
  background: radial-gradient(circle at 30% 10%, #dcfce7, #15803d);
}

.notification-avatar.payment {
  background: radial-gradient(circle at 30% 10%, #ede9fe, #6d28d9);
}

.notification-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.notification-item-text {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
}

.notification-item-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.35;
}

.notification-item-time {
  font-size: 0.72rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  font-weight: 500;
}

.notification-item-description {
  font-size: 0.78rem;
  color: var(--muted-foreground);
  line-height: 1.45;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.notification-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background-color: #2563eb;
  flex-shrink: 0;
  margin-left: 0.3rem;
  margin-top: 0.45rem;
}

.urgent-dot {
  background-color: #ef4444;
}

.warning-dot {
  background-color: #f97316;
}

.info-dot {
  background-color: #3b82f6;
}

.notifications-dropdown-footer {
  padding: 0.6rem 0.9rem 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background-color: rgba(15, 23, 42, 0.98);
  text-align: center;
}

.notifications-view-all {
  font-size: 0.78rem;
  font-weight: 500;
  color: #e5e7eb;
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(17, 24, 39, 0.95));
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.notifications-view-all:hover {
  border-color: rgba(209, 213, 219, 0.9);
  background: linear-gradient(to right, rgba(31, 41, 55, 1), rgba(17, 24, 39, 1));
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .notification-item-compact {
    padding: 0.5rem 0.5rem 0.5rem 0.4rem;
  }

  .notification-avatar {
    width: 2rem;
    height: 2rem;
  }

  .notification-item-title {
    font-size: 0.8rem;
  }

  .notification-item-description {
    font-size: 0.76rem;
  }
}

/* Main Content */
.main-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   Form Components Styles (shadcn/ui compatible)
   ============================================ */

/* Modern Select/Dropdown Component */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  background-color: var(--background);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s;
}

.select-trigger:hover {
  border-color: var(--ring);
}

.select-trigger:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px oklch(from var(--ring) l c h / 0.2);
}

.select-trigger .select-value {
  flex: 1;
  text-align: left;
}

.select-trigger .select-icon {
  width: 1rem;
  height: 1rem;
  opacity: 0.5;
  transition: transform 0.2s;
}

.select-wrapper.open .select-trigger .select-icon {
  transform: rotate(180deg);
}

.select-content {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 20rem;
  overflow-y: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--background);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: none;
}

.select-wrapper.open .select-content {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

.select-options {
  list-style: none;
  margin: 0;
  padding: 0.25rem;
}

.select-option {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: background-color 0.15s;
  color: var(--foreground);
}

.select-option:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.select-option.selected {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.select-option:focus {
  outline: none;
  background-color: var(--accent);
  color: var(--accent-foreground);
}

/* Autocomplete Component */
.autocomplete-wrapper {
  position: relative;
  width: 100%;
}

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 20rem;
  overflow-y: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--background);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: none;
}

.autocomplete-dropdown.show {
  display: block;
}

.autocomplete-item {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.15s;
  color: var(--foreground);
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.autocomplete-item mark {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0;
  font-weight: 600;
}

.autocomplete-no-results {
  padding: 0.75rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Date Picker Component */
.datepicker-wrapper {
  position: relative;
  width: 100%;
}

.datepicker-wrapper .input {
  padding-right: 2.5rem;
}

.datepicker-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  pointer-events: none;
}

/* File Upload Component */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background-color: var(--background);
}

.file-upload-area:hover {
  border-color: var(--primary);
  background-color: oklch(from var(--primary) l c h / 0.05);
}

.file-upload-area.drag-over {
  border-color: var(--primary);
  background-color: oklch(from var(--primary) l c h / 0.1);
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.file-upload-icon {
  width: 3rem;
  height: 3rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.file-upload-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.file-upload-hint {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.file-upload-list {
  margin-top: 1rem;
  display: none;
}

.file-upload-list:not(:empty) {
  display: block;
}

.file-upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--background);
  margin-bottom: 0.5rem;
}

.file-upload-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.file-upload-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.file-upload-size {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.file-upload-remove {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: none;
  background-color: var(--destructive);
  color: var(--destructive-foreground);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  margin-left: 0.75rem;
}

.file-upload-remove:hover {
  opacity: 0.8;
}

/* Checkbox Component */
.custom-checkbox-ui {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: calc(var(--radius) - 2px);
  border: 2px solid var(--input);
  background-color: var(--background);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.custom-checkbox-ui:hover {
  border-color: var(--ring);
}

.custom-checkbox-ui.checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.custom-checkbox-ui.checked::after {
  content: '';
  position: absolute;
  width: 0.25rem;
  height: 0.5rem;
  border: solid var(--primary-foreground);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  top: 0.125rem;
  left: 0.25rem;
}

/* Radio Component */
.custom-radio-ui {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--input);
  background-color: var(--background);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.custom-radio-ui:hover {
  border-color: var(--ring);
}

.custom-radio-ui.checked {
  border-color: var(--primary);
}

.custom-radio-ui.checked::after {
  content: '';
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--primary);
}

/* Form Field Error */
.field-error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--destructive);
}

.input.error,
.select-trigger.error,
.textarea.error {
  border-color: var(--destructive);
}

.input.error:focus,
.select-trigger.error:focus,
.textarea.error:focus {
  box-shadow: 0 0 0 2px oklch(from var(--destructive) l c h / 0.2);
}

/* Kanban Board Styles */
.kanban-card.dragging {
  opacity: 0.5;
}

.card-content.drag-over {
  background-color: oklch(from var(--primary) l c h / 0.1);
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
}

.kanban-card {
  transition: all 0.2s;
}

.kanban-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Kanban horizontal scroll container */
.kanban-scroll {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.kanban-columns {
  display: flex;
  gap: 1rem;
  min-width: max-content; /* Kolonlar daralmadan yatayda genişlesin */
}

.button.size-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  height: auto;
}

/* Form Validation Styles */
.field-error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--destructive);
}

.input.error,
.textarea.error,
select.error {
  border-color: var(--destructive);
}

.input.error:focus,
.textarea.error:focus,
select.error:focus {
  border-color: var(--destructive);
  box-shadow: 0 0 0 2px oklch(from var(--destructive) l c h / 0.2);
}

/* Select Search Component */
.select-search-wrapper {
  position: relative;
  width: 100%;
}

.select-search-selected {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--foreground);
  min-height: 2.25rem;
  display: flex;
  align-items: center;
}

.select-search-wrapper.open .select-search-selected {
  display: none;
}

.select-search-input {
  display: none;
}

.select-search-wrapper.open .select-search-input {
  display: block;
}

.select-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  margin-top: 0.25rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-height: 15rem;
  overflow-y: auto;
  display: none;
}

.select-search-wrapper.open .select-search-dropdown {
  display: block;
}

.select-search-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.select-search-item:hover {
  background-color: var(--accent);
}

.select-search-item.selected {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.select-search-item.no-results {
  color: var(--muted-foreground);
  cursor: default;
}

/* Autocomplete Component */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  margin-top: 0.25rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-height: 15rem;
  overflow-y: auto;
  display: none;
}

.autocomplete-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.autocomplete-item:hover {
  background-color: var(--accent);
}

/* File Upload Component */
.file-upload-wrapper {
  width: 100%;
}

.file-upload-button {
  margin-bottom: 0.5rem;
}

.file-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.file-upload-image {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.file-upload-list {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.file-upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  background-color: var(--muted);
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.file-upload-name {
  flex: 1;
  margin-right: 0.5rem;
}

.file-upload-size {
  color: var(--muted-foreground);
  margin-right: 0.5rem;
  font-size: 0.75rem;
}

.file-upload-remove {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: var(--destructive);
  font-size: 1.25rem;
  line-height: 1;
  transition: background-color 0.2s;
}

.file-upload-remove:hover {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
}

/* Dynamic Form Fields */
.template-field {
  display: none;
}

[data-field-item] {
  position: relative;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

[data-remove-field] {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background-color: var(--destructive);
  color: var(--destructive-foreground);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

[data-remove-field]:hover {
  opacity: 0.9;
}

/* Date Display */
.date-display {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}