/* Navigation */
.nav-link {
  @apply px-3 py-2 rounded-md text-sm font-medium text-gray-600 hover:text-indigo-600 hover:bg-gray-50;
}
.nav-link.active {
  @apply text-indigo-600 bg-indigo-50;
}

/* Tom Select overrides */
.ts-wrapper {
  min-width: 300px;
}
.ts-dropdown {
  max-height: 300px;
}
.ts-control {
  font-size: 0.875rem;
}

/* Event rows */
.event-row {
  cursor: pointer;
  transition: background-color 0.1s;
}
.event-row:hover {
  background-color: #f3f4f6;
}
.event-row.highlighted {
  background-color: #eff6ff;
  outline: 2px solid #3b82f6;
}
.event-row.assigned {
  background-color: #f0fdf4;
}
.event-row.excluded {
  background-color: #f9fafb;
  opacity: 0.7;
}

/* Date separator */
.date-separator {
  background-color: #f1f5f9;
  font-weight: 600;
  cursor: pointer;
}
.date-separator:hover {
  background-color: #e2e8f0;
}

/* Primary calendar sidebar */
#primary-panel {
  transition: width 0.2s;
}
#primary-panel.collapsed {
  width: 48px;
}
#primary-panel.collapsed .panel-content {
  display: none;
}

.primary-event {
  padding: 4px 8px;
  border-left: 3px solid #cbd5e1;
  margin-bottom: 4px;
  font-size: 0.75rem;
}
.primary-event.overlapping {
  background-color: #fef9c3;
  border-left-color: #f59e0b;
}

/* Status badges */
.badge {
  @apply inline-block px-2 py-0.5 rounded-full text-xs font-medium;
}
.badge-draft { @apply bg-gray-100 text-gray-700; }
.badge-submitted { @apply bg-yellow-100 text-yellow-800; }
.badge-approved { @apply bg-green-100 text-green-800; }
.badge-rejected { @apply bg-red-100 text-red-800; }
.badge-pending { @apply bg-yellow-100 text-yellow-800; }

/* Tooltip */
.tooltip-container {
  position: relative;
  display: inline-block;
}
.tooltip-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  z-index: 50;
  left: 0;
  bottom: 100%;
  margin-bottom: 8px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  white-space: pre-wrap;
  min-width: 300px;
  max-width: 400px;
  max-height: 400px;
  overflow-y: auto;
  font-size: 0.75rem;
  transition: opacity 0.2s, visibility 0.2s;
}
.tooltip-container:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #1f2937;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  z-index: 100;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Keyboard shortcut bar */
.shortcut-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f3f4f6;
  border-top: 1px solid #e5e7eb;
  padding: 6px 16px;
  font-size: 0.75rem;
  color: #6b7280;
  z-index: 40;
}
.shortcut-bar kbd {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  padding: 1px 5px;
  font-family: monospace;
  font-size: 0.7rem;
  margin: 0 2px;
}

/* Week navigation */
.week-nav {
  background: #3b82f6;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.week-nav button {
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.875rem;
}
.week-nav button:hover {
  background: rgba(255,255,255,0.3);
}

/* Suggest button */
.suggest-btn {
  @apply text-xs px-2 py-0.5 rounded border cursor-pointer;
}
.suggest-btn.project_no {
  @apply bg-blue-50 border-blue-300 text-blue-700;
}
.suggest-btn.client {
  @apply bg-purple-50 border-purple-300 text-purple-700;
}
.suggest-btn.keyword {
  @apply bg-green-50 border-green-300 text-green-700;
}
