/* Booking System Custom Styles */
@import "tailwindcss";
@import "tw-animate-css";

@custom-variant dark (&:is(.dark *));

:root {
  /* MK Custom Colors */
  --mk-primary: #0c2a61;
  --mk-primary-color: var(--mk-primary);
  --mk-primary-hover: #09214e;
  --mk-primary-light: #1a3c78;
  --mk-primary-lighter: rgba(103, 139, 203, 0.26);
  --mk-primary-dark: #091f48;
  --mk-primary-darker: #061530;
  --mk-secondary: #5a6b8c;
  --mk-secondary-color: var(--mk-secondary);
  --mk-secondary-hover: #4e5d7a;
  --mk-secondary-light: #259472;
  --mk-secondary-lighter: #30ab89;
  --mk-secondary-dark: #53617c;
  --mk-secondary-darker: #0e4e37;
  --mk-accent: #ff6347;
  --mk-tertiary-color: var(--mk-accent);
  --mk-accent-hover: #e6583e;
  --mk-accent-light: #e29f3c;
  /* Semantic Design Tokens */
  --background: #ffffff;
  --foreground: #475569;
  --card: #f8fafc;
  --card-foreground: #374151;
  --popover: #ffffff;
  --popover-foreground: #475569;
  --primary: var(--mk-primary);
  --primary-foreground: #ffffff;
  --secondary: var(--mk-secondary);
  --secondary-foreground: #ffffff;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: var(--mk-accent);
  --accent-foreground: #ffffff;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #f8fafc;
  --ring: rgba(12, 42, 97, 0.2);
  --chart-1: var(--mk-primary);
  --chart-2: var(--mk-secondary);
  --chart-3: var(--mk-accent);
  --chart-4: #374151;
  --chart-5: #ffffff;
  --radius: 0.5rem;
  --sidebar: #ffffff;
  --sidebar-foreground: #475569;
  --sidebar-primary: var(--mk-primary);
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: var(--mk-secondary);
  --sidebar-accent-foreground: #ffffff;
  --sidebar-border: #e2e8f0;
  --sidebar-ring: rgba(12, 42, 97, 0.2);
}

.dark {
  --background: #0f172a;
  --foreground: #f1f5f9;
  --card: #1e293b;
  --card-foreground: #f1f5f9;
  --popover: #1e293b;
  --popover-foreground: #f1f5f9;
  --primary: var(--mk-primary-light);
  --primary-foreground: #ffffff;
  --secondary: var(--mk-secondary-light);
  --secondary-foreground: #ffffff;
  --muted: #334155;
  --muted-foreground: #94a3b8;
  --accent: var(--mk-accent);
  --accent-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #334155;
  --input: #1e293b;
  --ring: rgba(26, 60, 120, 0.3);
  --sidebar: #0f172a;
  --sidebar-foreground: #f1f5f9;
  --sidebar-primary: var(--mk-primary-light);
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: var(--mk-secondary-light);
  --sidebar-accent-foreground: #ffffff;
  --sidebar-border: #334155;
  --sidebar-ring: rgba(26, 60, 120, 0.3);
}

@theme inline {
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }

  body {
    @apply bg-background text-foreground;
  }
}

/* Base Variables */
:root {
  --mk-primary: #3b82f6;
  --mk-primary-dark: #2563eb;
  --mk-secondary: #64748b;
  --mk-success: #10b981;
  --mk-warning: #f59e0b;
  --mk-error: #ef4444;
  --mk-background: #f8fafc;
  --mk-surface: #ffffff;
  --mk-border: #e2e8f0;
  --mk-text-primary: #1e293b;
  --mk-text-secondary: #64748b;
  --mk-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --mk-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Layout Utilities */
.mk-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.mk-grid {
  display: grid;
}

.mk-grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.mk-grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mk-grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mk-grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mk-grid-cols-7 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mk-flex {
  display: flex;
}
.mk-flex-col {
  flex-direction: column;
}
.mk-flex-1 {
  flex: 1 1 0%;
}
.mk-flex-shrink-0 {
  flex-shrink: 0;
}

.mk-items-center {
  align-items: center;
}
.mk-items-start {
  align-items: flex-start;
}
.mk-justify-center {
  justify-content: center;
}
.mk-justify-between {
  justify-content: space-between;
}
.mk-justify-end {
  justify-content: flex-end;
}

/* Spacing */
.mk-gap-1 {
  gap: 0.25rem;
}
.mk-gap-2 {
  gap: 0.5rem;
}
.mk-gap-3 {
  gap: 0.75rem;
}
.mk-gap-4 {
  gap: 1rem;
}
.mk-gap-6 {
  gap: 1.5rem;
}
.mk-gap-8 {
  gap: 2rem;
}

.mk-space-x-2 > * + * {
  margin-left: 0.5rem;
}
.mk-space-x-3 > * + * {
  margin-left: 0.75rem;
}
.mk-space-y-2 > * + * {
  margin-top: 0.5rem;
}
.mk-space-y-3 > * + * {
  margin-top: 0.75rem;
}
.mk-space-y-4 > * + * {
  margin-top: 1rem;
}
.mk-space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* Padding & Margin */
.mk-p-2 {
  padding: 0.5rem;
}
.mk-p-3 {
  padding: 0.75rem;
}
.mk-p-4 {
  padding: 1rem;
}
.mk-p-5 {
  padding: 1.25rem;
}
.mk-p-6 {
  padding: 1.5rem;
}
.mk-p-8 {
  padding: 2rem;
}

.mk-px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.mk-px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.mk-px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.mk-px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.mk-py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.mk-py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.mk-py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.mk-py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.mk-m-4 {
  margin: 1rem;
}
.mk-mb-2 {
  margin-bottom: 0.5rem;
}
.mk-mb-3 {
  margin-bottom: 0.75rem;
}
.mk-mb-4 {
  margin-bottom: 1rem;
}
.mk-mb-6 {
  margin-bottom: 1.5rem;
}
.mk-mb-8 {
  margin-bottom: 2rem;
}

.mk-mt-1 {
  margin-top: 0.25rem;
}
.mk-mt-2 {
  margin-top: 0.5rem;
}
.mk-mt-4 {
  margin-top: 1rem;
}
.mk-mt-6 {
  margin-top: 1.5rem;
}
.mk-mt-8 {
  margin-top: 2rem;
}

.mk-ml-2 {
  margin-left: 0.5rem;
}
.mk-ml-3 {
  margin-left: 0.75rem;
}
.mk-ml-4 {
  margin-left: 1rem;
}

.mk-mr-2 {
  margin-right: 0.5rem;
}
.mk-mr-3 {
  margin-right: 0.75rem;
}

/* Sizing */
.mk-w-4 {
  width: 1rem;
}
.mk-w-5 {
  width: 1.25rem;
}
.mk-w-6 {
  width: 1.5rem;
}
.mk-w-8 {
  width: 2rem;
}
.mk-w-10 {
  width: 2.5rem;
}
.mk-w-12 {
  width: 3rem;
}
.mk-w-16 {
  width: 4rem;
}
.mk-w-20 {
  width: 5rem;
}
.mk-w-full {
  width: 100%;
}

.mk-h-1 {
  height: 0.25rem;
}
.mk-h-2 {
  height: 0.5rem;
}
.mk-h-4 {
  height: 1rem;
}
.mk-h-5 {
  height: 1.25rem;
}
.mk-h-6 {
  height: 1.5rem;
}
.mk-h-8 {
  height: 2rem;
}
.mk-h-10 {
  height: 2.5rem;
}
.mk-h-12 {
  height: 3rem;
}
.mk-h-16 {
  height: 4rem;
}
.mk-h-20 {
  height: 5rem;
}
.mk-h-48 {
  height: 12rem;
}
.mk-h-64 {
  height: 16rem;
}

.mk-min-h-screen {
  min-height: 100vh;
}
.mk-max-w-4xl {
  max-width: 56rem;
}
.mk-max-h-screen {
  max-height: 100vh;
}

/* Colors */
.mk-bg-white {
  background-color: #ffffff;
}
.mk-bg-gray-50 {
  background-color: #f9fafb;
}
.mk-bg-gray-100 {
  background-color: #f3f4f6;
}
.mk-bg-gray-200 {
  background-color: #e5e7eb;
}
.mk-bg-gray-300 {
  background-color: #d1d5db;
}
.mk-bg-gray-600 {
  background-color: #4b5563;
}

.mk-bg-blue-50 {
  background-color: #eff6ff;
}
.mk-bg-blue-100 {
  background-color: #dbeafe;
}
.mk-bg-blue-500 {
  background-color: #3b82f6;
}
.mk-bg-blue-600 {
  background-color: #2563eb;
}

.mk-bg-green-50 {
  background-color: #f0fdf4;
}
.mk-bg-green-100 {
  background-color: #dcfce7;
}
.mk-bg-green-600 {
  background-color: #16a34a;
}

.mk-bg-red-50 {
  background-color: #fef2f2;
}
.mk-bg-red-100 {
  background-color: #fee2e2;
}
.mk-bg-red-600 {
  background-color: #dc2626;
}

.mk-bg-yellow-50 {
  background-color: #fefce8;
}
.mk-bg-yellow-100 {
  background-color: #fef3c7;
}

.mk-bg-purple-50 {
  background-color: #faf5ff;
}
.mk-bg-purple-600 {
  background-color: #9333ea;
}

/* Text Colors */
.mk-text-gray-300 {
  color: #d1d5db;
}
.mk-text-gray-400 {
  color: #9ca3af;
}
.mk-text-gray-500 {
  color: #6b7280;
}
.mk-text-gray-600 {
  color: #4b5563;
}
.mk-text-gray-700 {
  color: #374151;
}
.mk-text-gray-900 {
  color: #111827;
}

.mk-text-white {
  color: #ffffff;
}
.mk-text-blue-600 {
  color: #2563eb;
}
.mk-text-blue-800 {
  color: #1e40af;
}
.mk-text-green-600 {
  color: #16a34a;
}
.mk-text-green-800 {
  color: #166534;
}
.mk-text-red-600 {
  color: #dc2626;
}
.mk-text-red-700 {
  color: #b91c1c;
}
.mk-text-red-800 {
  color: #991b1b;
}
.mk-text-yellow-600 {
  color: #ca8a04;
}
.mk-text-yellow-800 {
  color: #854d0e;
}
.mk-text-purple-600 {
  color: #9333ea;
}

/* Typography */
.mk-text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.mk-text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.mk-text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.mk-text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.mk-text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.mk-font-medium {
  font-weight: 500;
}
.mk-font-semibold {
  font-weight: 600;
}
.mk-font-bold {
  font-weight: 700;
}

.mk-text-center {
  text-align: center;
}
.mk-text-left {
  text-align: left;
}
.mk-text-right {
  text-align: right;
}

.mk-uppercase {
  text-transform: uppercase;
}
.mk-tracking-wider {
  letter-spacing: 0.05em;
}

/* Borders */
.mk-border {
  border-width: 1px;
  border-color: var(--mk-border);
}
.mk-border-t {
  border-top-width: 1px;
  border-top-color: var(--mk-border);
}
.mk-border-b {
  border-bottom-width: 1px;
  border-bottom-color: var(--mk-border);
}
.mk-border-gray-100 {
  border-color: #f3f4f6;
}
.mk-border-gray-200 {
  border-color: #e5e7eb;
}
.mk-border-gray-300 {
  border-color: #d1d5db;
}
.mk-border-blue-600 {
  border-color: #2563eb;
}
.mk-border-transparent {
  border-color: transparent;
}

.mk-rounded {
  border-radius: 0.25rem;
}
.mk-rounded-md {
  border-radius: 0.375rem;
}
.mk-rounded-lg {
  border-radius: 0.5rem;
}
.mk-rounded-full {
  border-radius: 9999px;
}

.mk-divide-y > * + * {
  border-top-width: 1px;
  border-top-color: var(--mk-border);
}
.mk-divide-gray-200 > * + * {
  border-top-color: #e5e7eb;
}

/* Shadows */
.mk-shadow-sm {
  box-shadow: var(--mk-shadow);
}
.mk-shadow-lg {
  box-shadow: var(--mk-shadow-lg);
}

/* Interactive States */
.mk-hover-bg-gray-50:hover {
  background-color: #f9fafb;
}
.mk-hover-bg-gray-100:hover {
  background-color: #f3f4f6;
}
.mk-hover-bg-blue-100:hover {
  background-color: #dbeafe;
}
.mk-hover-bg-blue-700:hover {
  background-color: #1d4ed8;
}
.mk-hover-bg-green-100:hover {
  background-color: #dcfce7;
}
.mk-hover-bg-green-700:hover {
  background-color: #15803d;
}
.mk-hover-bg-red-100:hover {
  background-color: #fee2e2;
}

.mk-hover-text-gray-600:hover {
  color: #4b5563;
}
.mk-hover-text-blue-900:hover {
  color: #1e3a8a;
}
.mk-hover-text-green-900:hover {
  color: #14532d;
}
.mk-hover-text-red-900:hover {
  color: #7f1d1d;
}

.mk-hover-shadow-md:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.mk-focus-ring-blue-500:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}
.mk-focus-border-blue-500:focus {
  border-color: #3b82f6;
}

/* Positioning */
.mk-relative {
  position: relative;
}
.mk-absolute {
  position: absolute;
}
.mk-fixed {
  position: fixed;
}
.mk-inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.mk-top-1 {
  top: 0.25rem;
}
.mk-top-10 {
  top: 2.5rem;
}
.mk-top-20 {
  top: 5rem;
}
.mk-right-1 {
  right: 0.25rem;
}
.mk-z-50 {
  z-index: 50;
}

/* Display */
.mk-hidden {
  display: none;
}
.mk-block {
  display: block;
}
.mk-inline-flex {
  display: inline-flex;
}

/* Overflow */
.mk-overflow-x-auto {
  overflow-x: auto;
}
.mk-overflow-y-auto {
  overflow-y: auto;
}

/* Cursor */
.mk-cursor-pointer {
  cursor: pointer;
}
.mk-cursor-not-allowed {
  cursor: not-allowed;
}

/* Transitions */
.mk-transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Disabled States */
.mk-opacity-50 {
  opacity: 0.5;
}
.disabled\:mk-opacity-50:disabled {
  opacity: 0.5;
}
.disabled\:mk-cursor-not-allowed:disabled {
  cursor: not-allowed;
}
.disabled\:mk-hover-bg-transparent:disabled:hover {
  background-color: transparent;
}

/* Ring */
.mk-ring-2 {
  box-shadow: 0 0 0 2px var(--tw-ring-color);
}
.mk-ring-blue-500 {
  --tw-ring-color: #3b82f6;
}

/* Responsive Design */
@media (min-width: 640px) {
  .sm\:mk-px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .sm\:mk-flex-1 {
    flex: 1 1 0%;
  }
  .sm\:mk-flex {
    display: flex;
  }
  .sm\:mk-items-center {
    align-items: center;
  }
  .sm\:mk-justify-between {
    justify-content: space-between;
  }
  .sm\:mk-hidden {
    display: none;
  }
}

@media (min-width: 768px) {
  .md\:mk-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:mk-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:mk-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .md\:mk-w-2\/3 {
    width: 66.666667%;
  }
  .md\:mk-w-3\/4 {
    width: 75%;
  }
}

@media (min-width: 1024px) {
  .lg\:mk-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:mk-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg\:mk-flex-row {
    flex-direction: row;
  }
  .lg\:mk-w-1\/2 {
    width: 50%;
  }
  .lg\:mk-w-2\/3 {
    width: 66.666667%;
  }
  .lg\:mk-w-80 {
    width: 20rem;
  }
  .lg\:mk-px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Custom Booking Styles */
.mk-booking-card {
  transition: all 0.2s ease-in-out;
}

.mk-booking-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--mk-shadow-lg);
}

.mk-calendar-day {
  transition: all 0.15s ease-in-out;
}

.mk-calendar-day:hover {
  background-color: #f1f5f9;
}

.mk-status-badge {
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

.mk-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mk-btn-primary {
  background-color: var(--mk-primary);
  color: white;
  border: 1px solid var(--mk-primary);
}

.mk-btn-primary:hover:not(:disabled) {
  background-color: var(--mk-primary-dark);
}

.mk-btn-secondary {
  background-color: white;
  color: var(--mk-text-primary);
  border: 1px solid var(--mk-border);
}

.mk-btn-secondary:hover:not(:disabled) {
  background-color: #f8fafc;
}

/* Mobile First Responsive Utilities */
.mk-mobile-hidden {
  display: none;
}

@media (min-width: 640px) {
  .mk-mobile-hidden {
    display: block;
  }
}

/* Print Styles */
@media print {
  .mk-no-print {
    display: none !important;
  }
}
