/* Tasarım Token'ları - Kurumsal Renk Paleti */
:root {
  /* Brand Colors - EmlakYonetim.com.tr */
  --color-primary: 31 60 124;        /* #1F3C7C - Bay of Many */
  --color-primary-dark: 23 48 97;     /* #173061 - Primary Dark */
  --color-ink: 19 22 47;              /* #13162F - Ebony */

  /* Surface Colors */
  --color-bg: 255 255 255;           /* #FFFFFF - White */
  --color-surface-soft: 244 246 253;  /* #F4F6FD - Background Soft */

  /* Text Colors */
  --color-fg: 19 22 47;               /* #13162F - Headings */
  --color-fg-muted: 71 85 105;        /* #475569 - Body Text */

  /* Status Colors */
  --color-success: 34 197 94;         /* #22C55E - Green */
  --color-warning: 245 158 11;        /* #F59E0B - Amber */
  --color-error: 239 68 68;           /* #EF4444 - Red */
  --color-info: 59 130 246;           /* #3B82F6 - Blue */

  /* Design Tokens */
  --radius: 12px;
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.1);
}

/* Dark Mode */
.dark {
  --color-bg: 17 24 39;               /* slate-900 */
  --color-fg: 241 245 249;            /* slate-100 */
  --color-surface-soft: 30 41 59;     /* slate-800 */
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  color: rgb(19, 22, 47);
  background-color: rgb(244, 246, 253);
}

/* Utility Classes */
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.grid { display: grid !important; }

/* Flexbox */
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }
.items-stretch { align-items: stretch !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-end { justify-content: flex-end !important; }
.justify-start { justify-content: flex-start !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-1 { flex: 1 1 0% !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }

/* Spacing */
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.pl-3 { padding-left: 0.75rem !important; }
.pl-10 { padding-left: 2.5rem !important; }
.pr-3 { padding-right: 0.75rem !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-4 { margin-right: 1rem !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-4 { margin-left: 1rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }

/* Width & Height */
.w-full { width: 100% !important; }
.w-10 { width: 2.5rem !important; }
.w-12 { width: 3rem !important; }
.w-48 { width: 12rem !important; }
.w-96 { width: 24rem !important; }
.h-10 { height: 2.5rem !important; }
.h-12 { height: 3rem !important; }
.h-16 { height: 4rem !important; }
.h-full { height: 100% !important; }
.min-h-screen { min-height: 100vh !important; }
.max-w-md { max-width: 28rem !important; }
.max-w-2xl { max-width: 42rem !important; }

/* Positioning */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.inset-0 { top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; }
.top-20 { top: 5rem !important; }
.right-0 { right: 0 !important; }
.z-50 { z-index: 50 !important; }
.z-40 { z-index: 40 !important; }
.z-30 { z-index: 30 !important; }

/* Overflow */
.overflow-x-auto { overflow-x: auto !important; }
.overflow-y-auto { overflow-y: auto !important; }
.overflow-hidden { overflow: hidden !important; }

/* Border */
.border { border-width: 1px !important; }
.border-t { border-top-width: 1px !important; }
.border-gray-200 { border-color: #e5e7eb !important; }
.border-gray-300 { border-color: #d1d5db !important; }
.rounded-md { border-radius: 0.375rem !important; }
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-full { border-radius: 9999px !important; }

/* Background */
.bg-white { background-color: #ffffff !important; }
.bg-gray-50 { background-color: #f9fafb !important; }
.bg-gray-100 { background-color: #f3f4f6 !important; }
.bg-gray-600 { background-color: #4b5563 !important; }
.bg-opacity-50 { background-color: rgba(75, 85, 99, 0.5) !important; }
.bg-primary { background-color: rgb(31, 60, 124) !important; }
.bg-yellow-50 { background-color: #fefce8 !important; }
.bg-yellow-100 { background-color: #fef3c7 !important; }
.bg-blue-100 { background-color: #dbeafe !important; }
.bg-green-100 { background-color: #dcfce7 !important; }
.bg-red-100 { background-color: #fee2e2 !important; }

/* Text */
.text-white { color: #ffffff !important; }
.text-gray-400 { color: #9ca3af !important; }
.text-gray-500 { color: #6b7280 !important; }
.text-gray-600 { color: #4b5560 !important; }
.text-gray-700 { color: #374151 !important; }
.text-gray-900 { color: #111827 !important; }
.text-red-500 { color: #ef4444 !important; }
.text-sm { font-size: 0.875rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }
.text-3xl { font-size: 1.875rem !important; }
.text-4xl { font-size: 2.25rem !important; }
.text-6xl { font-size: 3.75rem !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }

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

/* Responsive */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  .sm\:px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:items-center { align-items: center !important; }
  .sm\:justify-between { justify-content: space-between !important; }
  .sm\:mt-0 { margin-top: 0 !important; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
}

/* Semantik Sınıflar - Kurumsal Tasarım Sistemi */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  background-color: rgb(31, 60, 124);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: rgb(23, 48, 97);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  background-color: white;
  color: rgb(19, 22, 47);
  border: 1px solid #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-1px);
}

.btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  background-color: #059669;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.btn-success:hover {
  background-color: #047857;
  transform: translateY(-1px);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  background-color: #dc2626;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.btn-danger:hover {
  background-color: #b91c1c;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  background-color: transparent;
  color: rgb(31, 60, 124);
  border: 1px solid rgb(31, 60, 124);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.btn-outline:hover {
  background-color: rgb(31, 60, 124);
  color: white;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px !important;
  font-size: 12px !important;
}

.btn-full {
  width: 100%;
}

/* Card Components */
.card {
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 24px;
}

.card-elevated {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.card-header {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: rgb(19, 22, 47);
  margin: 0;
}

.card-body {
  padding: 0;
}

/* Form Components */
.form-input {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 8px 12px;
  font-size: 14px;
  color: #111827;
  background-color: white;
  transition: all 0.2s ease-in-out;
}

.form-input:focus {
  outline: none;
  border-color: rgb(31, 60, 124);
  box-shadow: 0 0 0 1px rgb(31, 60, 124);
}

.form-input:hover {
  border-color: #9ca3af;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

.form-help {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

/* Table Components */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.table-header {
  background-color: #f9fafb;
}

.table-header-cell {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e5e7eb;
}

.table-body {
  background-color: white;
}

.table-cell {
  padding: 12px 16px;
  font-size: 14px;
  color: #111827;
  border-bottom: 1px solid #f3f4f6;
}

.table-cell:hover {
  background-color: #f9fafb;
}

/* Alert Components */
.alert {
  border-radius: 8px;
  padding: 16px;
  border: 1px solid;
  margin: 8px 0;
  display: flex;
  align-items: center;
}

.alert-success {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.alert-warning {
  background-color: #fffbeb;
  border-color: #fed7aa;
  color: #92400e;
}

.alert-error {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.alert-info {
  background-color: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.alert-icon {
  margin-right: 12px;
  font-size: 18px;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  min-width: fit-content;
}

.badge-primary {
  background-color: rgb(31, 60, 124);
  color: white;
}

.badge-secondary {
  background-color: #6b7280;
  color: white;
}

.badge-success {
  background-color: #059669;
  color: white;
}

.badge-warning {
  background-color: #d97706;
  color: white;
}

.badge-danger {
  background-color: #dc2626;
  color: white;
}

.badge-info {
  background-color: #2563eb;
  color: white;
}

.badge-success {
  background-color: #059669;
  color: white;
}

.badge-warning {
  background-color: #d97706;
  color: white;
}

.badge-error {
  background-color: #dc2626;
  color: white;
}

.badge-info {
  background-color: #2563eb;
  color: white;
}

/* Loading States */
.skeleton {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  background-color: #e5e7eb;
  border-radius: 4px;
}

.spinner {
  animation: spin 1s linear infinite;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  border-top-color: rgb(31, 60, 124);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Space Utilities */
.space-y-3 > * + * {
  margin-top: 0.75rem;
}

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

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.space-x-1 > * + * {
  margin-left: 0.25rem;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-3 > * + * {
  margin-left: 0.75rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-x-8 > * + * {
  margin-left: 2rem;
}

/* Additional Utilities */
.pointer-events-none {
  pointer-events: none;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus States */
.focus\:outline-none:focus {
  outline: none;
}

.focus\:ring-primary:focus {
  box-shadow: 0 0 0 3px rgba(31, 60, 124, 0.1);
}

.focus\:border-primary:focus {
  border-color: rgb(31, 60, 124);
}

/* Hover States */
.hover\:text-gray-200:hover {
  color: #e5e7eb;
}

.hover\:text-gray-600:hover {
  color: #4b5563;
}

.hover\:bg-gray-100:hover {
  background-color: #f3f4f6;
}

.hover\:bg-gray-200:hover {
  background-color: #e5e7eb;
}

.hover\:text-primary:hover {
  color: rgb(31, 60, 124);
}

.hover\:text-primary-dark:hover {
  color: rgb(23, 48, 97);
}

/* Disabled States */
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}

/* Text Utilities */
.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}

.capitalize {
  text-transform: capitalize;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Border Utilities */
.border-solid {
  border-style: solid;
}

.border-dashed {
  border-style: dashed;
}

.border-dotted {
  border-style: dotted;
}

/* Shadow Utilities */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Opacity */
.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

.opacity-100 {
  opacity: 1;
}

/* Cursor */
.cursor-pointer {
  cursor: pointer;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.cursor-default {
  cursor: default;
}

/* Select */
.select-none {
  user-select: none;
}

/* Transform */
.transform {
  transform: translateZ(0);
}

.scale-95 {
  transform: scale(0.95);
}

.scale-100 {
  transform: scale(1);
}

.scale-105 {
  transform: scale(1.05);
}

/* Transition */
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Animation */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* File Upload Components */
.file-upload {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: white;
}

.file-upload:hover {
  border-color: rgb(31, 60, 124);
  background-color: #f9fafb;
}

.file-upload.dragover {
  border-color: rgb(31, 60, 124);
  background-color: #f0f9ff;
}

.upload-preview {
  margin-top: 15px;
}

.upload-item {
  display: flex;
  align-items: center;
  background: #f9fafb;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #e5e7eb;
}

.upload-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 10px;
}

.upload-info {
  flex-grow: 1;
}

.upload-remove {
  color: #dc2626;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.upload-remove:hover {
  background-color: #fee2e2;
}

/* Priority Colors */
.priority-high {
  color: #dc2626;
  font-weight: 600;
}

.priority-medium {
  color: #d97706;
  font-weight: 600;
}

.priority-low {
  color: #059669;
  font-weight: 600;
}

/* Form Sections */
.form-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.form-section-title {
  color: rgb(19, 22, 47);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgb(31, 60, 124);
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
}

/* Enhanced Badge Styles */
.badge-lg {
  padding: 8px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.badge-outline {
  background-color: transparent !important;
  border: 2px solid currentColor !important;
}

/* Required Field Indicator */
.form-label.required::after,
.required::after {
  content: " *";
  color: #dc2626;
  font-weight: bold;
}

/* Sticky Header */
.sticky {
  position: sticky !important;
}

.top-0 {
  top: 0 !important;
}

/* Enhanced Grid Layouts */
.lg\:col-span-3 {
  grid-column: span 3 / span 3 !important;
}

.lg\:col-span-4 {
  grid-column: span 4 / span 4 !important;
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  
  .lg\:col-span-3 {
    grid-column: span 3 / span 3 !important;
  }
  
  .lg\:flex-row {
    flex-direction: row !important;
  }
  
  .lg\:items-center {
    align-items: center !important;
  }
  
  .lg\:justify-between {
    justify-content: space-between !important;
  }
  
  .lg\:text-3xl {
    font-size: 1.875rem !important;
  }
}

/* Progress Step Styles */
.progress-step {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
}

.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  width: 100%;
  height: 2px;
  background-color: #e5e7eb;
  transform: translateY(-50%);
  z-index: 1;
}

.progress-step.completed:not(:last-child)::after {
  background-color: rgb(31, 60, 124);
}

/* Enhanced Modal Styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}

/* Status-specific Colors */
.text-status-pending {
  color: #d97706 !important;
}

.text-status-inprogress {
  color: #2563eb !important;
}

.text-status-completed {
  color: #059669 !important;
}

.text-status-cancelled {
  color: #dc2626 !important;
}

.text-status-onhold {
  color: #6b7280 !important;
}

.bg-status-pending {
  background-color: #fef3c7 !important;
}

.bg-status-inprogress {
  background-color: #dbeafe !important;
}

.bg-status-completed {
  background-color: #d1fae5 !important;
}

.bg-status-cancelled {
  background-color: #fee2e2 !important;
}

.bg-status-onhold {
  background-color: #f3f4f6 !important;
}

/* Enhanced Touch Targets for Mobile */
@media (max-width: 767px) {
  .btn-sm {
    padding: 12px 16px !important;
    font-size: 14px !important;
    min-height: 44px !important;
  }
  
  .form-input {
    padding: 12px 16px !important;
    font-size: 16px !important;
    min-height: 44px !important;
  }
  
  .card {
    padding: 16px !important;
  }
  
  .card-header {
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
  }
}

/* Loading Button Animation */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: inherit;
  border-radius: inherit;
  opacity: 0.7;
}

/* Smooth Transitions */
.transition-all {
  transition: all 0.2s ease-in-out !important;
}

.transition-transform {
  transition: transform 0.2s ease-in-out !important;
}

/* Additional Utilities */
.text-muted {
  color: #6b7280 !important;
}

.display-4 {
  font-size: 2.5rem !important;
}

.text-decoration-none {
  text-decoration: none !important;
}

.text-decoration-none:hover {
  text-decoration: underline !important;
}

/* Utility Classes for UX Improvements */
.min-w-0 {
  min-width: 0 !important;
}

.truncate {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.whitespace-pre-wrap {
  white-space: pre-wrap !important;
}

/* Focus Ring Enhancement */
.focus-ring:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(31, 60, 124, 0.1) !important;
  border-color: rgb(31, 60, 124) !important;
}

/* Custom Styles for Better UX */
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-success:active {
  transform: translateY(0);
}

.btn-danger:active {
  transform: translateY(0);
}

.btn-outline:active {
  transform: translateY(0);
}

/* Table Row Hover Effect */
.table tbody tr:hover {
  background-color: #f9fafb;
}

/* Form Input Focus Ring */
.form-input:focus {
  outline: none;
  border-color: rgb(31, 60, 124);
  box-shadow: 0 0 0 3px rgba(31, 60, 124, 0.1);
}

/* Card Hover Effect */
.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
  transition: all 0.2s ease-in-out;
}

/* Badge Hover Effect */
.badge:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease-in-out;
}

/* Loading Button State */
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-success:disabled,
.btn-danger:disabled,
.btn-outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary:disabled:hover,
.btn-secondary:disabled:hover,
.btn-success:disabled:hover,
.btn-danger:disabled:hover,
.btn-outline:disabled:hover {
  transform: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Form Controls - Radio and Checkbox */
.form-radio {
  width: 1rem !important;
  height: 1rem !important;
  border-radius: 50% !important;
  border: 2px solid #d1d5db !important;
  background-color: white !important;
  transition: all 0.2s ease-in-out !important;
  cursor: pointer !important;
}

.form-radio:checked {
  background-color: currentColor !important;
  border-color: currentColor !important;
  background-image: radial-gradient(circle, white 30%, transparent 30%) !important;
}

.form-radio:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(31, 60, 124, 0.1) !important;
}

.form-checkbox {
  width: 1rem !important;
  height: 1rem !important;
  border-radius: 4px !important;
  border: 2px solid #d1d5db !important;
  background-color: white !important;
  transition: all 0.2s ease-in-out !important;
  cursor: pointer !important;
}

.form-checkbox:checked {
  background-color: currentColor !important;
  border-color: currentColor !important;
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m13.854 3.646-7.5 7.5a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6 10.293l7.146-7.147a.5.5 0 0 1 .708.708z'/%3e%3c/svg%3e") !important;
}

.form-checkbox:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(31, 60, 124, 0.1) !important;
}

/* Text Color Utilities for Form Controls */
.text-red-500 { color: #ef4444 !important; }
.text-red-600 { color: #dc2626 !important; }
.text-yellow-500 { color: #eab308 !important; }
.text-yellow-600 { color: #ca8a04 !important; }
.text-green-500 { color: #22c55e !important; }
.text-green-600 { color: #16a34a !important; }
.text-blue-500 { color: #3b82f6 !important; }
.text-blue-600 { color: #2563eb !important; }
.text-blue-700 { color: #1d4ed8 !important; }

/* Background Color Utilities */
.bg-blue-50 { background-color: #eff6ff !important; }

/* Border Utilities */
.border-blue-300 { border-color: #93c5fd !important; }

/* Form Enhancement */
.form-group {
  margin-bottom: 1rem;
}

/* Interactive States */
.form-control:disabled,
.form-input:disabled {
  background-color: #f3f4f6 !important;
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

/* Validation States */
.form-control.is-valid,
.form-input.is-valid {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important;
}

.form-control.is-invalid,
.form-input.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}