/*
! tailwindcss v3.3.0 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
*/

html {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/* Custom styles */
.gantt-container {
    height: calc(100vh - 200px);
    min-height: 500px;
}

.legend-item {
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.status-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
}

.status-done { background-color: #10b981; }
.status-in-work { background-color: #eab308; }
.status-pending { background-color: #9ca3af; }
.status-cancelled { background-color: #ef4444; }

.category-rd { background-color: #3b82f6; }
.category-ops { background-color: #a855f7; }
.category-cert { background-color: #f97316; }
.category-biz { background-color: #059669; }

/* Utility classes */
.container { 
  width: 100%; 
  margin-left: auto; 
  margin-right: auto; 
  padding-left: 1rem; 
  padding-right: 1rem; 
}

@media (min-width: 640px) {
  .container { max-width: 640px; }
}

@media (min-width: 768px) {
  .container { max-width: 768px; }
}

@media (min-width: 1024px) {
  .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}

@media (min-width: 1536px) {
  .container { max-width: 1536px; }
}

.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.p-4 { padding: 1rem; }

.mb-8 { margin-bottom: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-900 { background-color: #111827; }
.bg-gray-600 { background-color: #4b5563; }
.bg-white { background-color: #ffffff; }
.bg-red-100 { background-color: #fee2e2; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-blue-700 { background-color: #1d4ed8; }
.bg-green-500 { background-color: #10b981; }
.bg-green-700 { background-color: #047857; }

.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-gray-900 { color: #111827; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-red-700 { color: #b91c1c; }
.text-white { color: #ffffff; }
.text-blue-600 { color: #2563eb; }
.text-green-600 { color: #16a34a; }
.text-purple-600 { color: #9333ea; }

.border { border-width: 1px; }
.border-red-400 { border-color: #f87171; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }

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

.flex { display: flex; }
.grid { display: grid; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.gap-4 { gap: 1rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }

.h-screen { height: 100vh; }

.hover\\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\\:bg-green-700:hover { background-color: #047857; }
/* Custom UI polish */
.page-header { background: linear-gradient(135deg,#0ea5e9 0%, #8b5cf6 100%); color: #fff; }
.badge { display:inline-block; padding:2px 8px; border-radius:9999px; font-size:12px; font-weight:600; }
.badge-soft { background: rgba(255,255,255,0.2); }
.row-hover:hover { background-color: #f8fafc; }
/* Hero */
.app-hero { background: radial-gradient(1200px 400px at 10% 0%, #0ea5e9 0%, transparent 60%), radial-gradient(1200px 400px at 90% 0%, #8b5cf6 0%, transparent 60%), linear-gradient(135deg,#0ea5e9 0%, #8b5cf6 100%); color:#fff; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 28px 16px; }
.hero-title { font-size: 28px; font-weight: 800; letter-spacing: 0.2px; }
.hero-subtitle { opacity: .9; margin-top: 4px; }
/* Compact legend chips */
.legend-chips { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.legend-chip { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:9999px; background:#f8fafc; border:1px solid #eef2f7; font-size:12px; color:#374151; }
.legend-sep { display:inline-block; width:1px; height:14px; background:#e5e7eb; margin:0 4px; }