/* Custom styles for the application */

body {
  font-family: system-ui, -apple-system, sans-serif;
}

/* Hide scrollbar for year tabs */
.scrollbar-hide {
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;  /* Safari and Chrome */
}

/* FullCalendar event context menu button */
.fc-event-menu-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  border-radius: 3px;
  padding: 0;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 1;
}
.fc-event:hover .fc-event-menu-btn,
.fc-event-menu-btn:focus {
  opacity: 1;
}
.fc-event-menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Context menu dropdown */
.fc-context-menu {
  position: fixed;
  z-index: 9999;
  min-width: 160px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 4px 0;
}
@media (prefers-color-scheme: dark) {
  .fc-context-menu {
    background: #1f2937;
    border-color: #374151;
  }
}
.fc-context-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 12px;
  font-size: 13px;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
@media (prefers-color-scheme: dark) {
  .fc-context-item { color: #d1d5db; }
}
.fc-context-item:hover {
  background: #f3f4f6;
}
@media (prefers-color-scheme: dark) {
  .fc-context-item:hover { background: #374151; }
}
.fc-context-item--danger {
  color: #dc2626;
}
.fc-context-item--danger:hover {
  background: #fef2f2;
}
@media (prefers-color-scheme: dark) {
  .fc-context-item--danger { color: #f87171; }
  .fc-context-item--danger:hover { background: rgba(127, 29, 29, 0.2); }
}

/* Estimated hours progress bar on calendar events */
.fc-event-estimate-bar {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  margin-bottom: 0;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}
