/* TaskHound global styles extracted from header */
body { font-family: 'Inter', sans-serif; background-color: #1a1a1a; }
.app-logo { width: 120px; height: auto; }
aside { background-color: #282828 !important; }
.info-card { background-color: #282828; border-radius: 0.75rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5); }
.section-box { background-color: #282828; border-radius: 0.75rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5); min-height: 40vh; padding: 1.5rem; border: 1px solid #4a5568; }
.active-link { background-color: #1a1a1a; }
.calendar-day { min-height: 120px; }
.event { padding: 0.25rem; font-size: 0.75rem; border-radius: 0.375rem; margin-bottom: 0.25rem; cursor: pointer; }
.event-pto { background-color: rgba(30, 58, 138, 0.5); color: rgb(191, 219, 254); }
.event-install { background-color: rgba(20, 83, 45, 0.5); color: rgb(187, 247, 208); }
.event-meeting { background-color: rgba(88, 28, 135, 0.5); color: rgb(221, 214, 254); }
.event-holiday { background-color: rgba(120, 53, 15, 0.5); color: rgb(254, 240, 138); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tabs { border-bottom: 2px solid #4a5568; }
.tab-link { background-color: #2d3748; color: #a0aec0; padding: 0.5rem 1.5rem; margin-right: 0.25rem; border: 2px solid #4a5568; border-bottom: none; border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; font-weight: 600; position: relative; top: 2px; transition: all 0.2s ease-in-out; }
.tab-link:hover { background-color: #4a5568; color: #ffffff; }
.tab-link.active { background-color: #282828; color: #3b82f6; border-color: #4a5568; border-bottom: 2px solid #282828; z-index: 10; }

/* Calendar page specific styles */
.event-pending { border-left: 3px solid #f59e0b; color: #f59e0b; }
.calendar-day:hover { background-color: #374151; cursor: pointer; }
#day-view-content { display: grid; grid-template-columns: 72px 1fr; grid-auto-rows: 44px; position: relative; border-top: 1px solid #4a5568; gap: 0; }
.col-span-2 { grid-column: 1 / -1; }
.time-slot { grid-column: 2; border-bottom: 1px solid #374151; height: 44px; position: relative; background-color: #202225; }
.time-slot:nth-child(4n) { background-color: #1f2937; } /* subtle alternate every hour row */
.modal-inner { position: relative; padding-top: 8px; }
.timeline-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 6px; }
.timeline-header .left, .timeline-header .center, .timeline-header .right { display: flex; align-items: center; }
.timeline-header .center { flex: 1; justify-content: center; }
.timeline-header .right { gap: 8px; }
.btn-primary { background-color: #3b82f6; color: #fff; padding: 8px 12px; border-radius: 8px; border: none; box-shadow: 0 2px 6px rgba(59,130,246,0.15); font-weight: 600; }
#dayTimelineClose { z-index: 80; background: #374151; border: 1px solid #4a5568; color: #ffffff; width: 34px; height: 34px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 4px 10px rgba(0,0,0,0.45); }
#dayTimelineClose:hover { background: #4a5568; transform: translateY(-1px); }
#dayTimelineClose:focus { outline: 2px solid rgba(59,130,246,0.35); outline-offset: 2px; }
.time-label { grid-column: 1; text-align: right; padding-right: 12px; color: #e5e7eb; font-size: 12px; transform: translateY(-50%); position: sticky; top: 0; z-index: 21; background-color: #1a1a1a; border-right: 1px solid #374151; } 
.time-label::after { content: ''; position: absolute; right: -1px; top: 0; bottom: 0; width: 1px; background: #374151; }
.events-overlay { position: absolute; top: 0; bottom: 0; right: 12px; pointer-events: none; z-index: 10; border-left: 1px solid #374151; }
#adminEventDelete.bg-orange-600 { background-color: rgba(234, 88, 12, 0.8); }
#adminEventDelete.hover\:bg-orange-700:hover { background-color: rgba(194, 65, 12, 1); }
.day-view-event { position: absolute; left: 8px; right: 8px; border-radius: 10px; padding: 6px 8px; font-size: 12px; font-weight: 600; line-height: 1.3; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; color: #e5e7eb; box-shadow: 0 2px 6px rgba(0,0,0,0.35); opacity: 0.98; border: 1px solid rgba(255,255,255,0.08); }
.day-view-event .time { font-weight: 500; font-size: 10px; opacity: 0.85; margin-top: 2px; }
.day-view-event:hover { filter: brightness(1.08); }

/* Better event type contrast in day view */
.day-view-event.event-pto { background-color: rgba(30, 58, 138, 0.7); color: #bfdbfe; }
.day-view-event.event-install { background-color: rgba(20, 83, 45, 0.7); color: #bbf7d0; }
.day-view-event.event-meeting { background-color: rgba(88, 28, 135, 0.7); color: #ddd6fe; }
.day-view-event.event-holiday { background-color: rgba(120, 53, 15, 0.7); color: #fef08a; }

/* Modal sizing for timeline */
.modal-inner { max-height: 85vh; overflow: hidden; }
#day-view-content { max-height: 70vh; overflow-y: auto; }
.day-view-dense #day-view-content { grid-auto-rows: 32px; }

/* Current time indicator */
.current-time-line { position: absolute; left: 0; right: 0; height: 2px; background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.5); z-index: 18; }
/* Sticky All-Day header */
#all-day-events-container .all-day-header { position: sticky; top: 0; background: rgba(31, 41, 55, 0.9); backdrop-filter: blur(2px); z-index: 22; padding: 6px 8px; border-bottom: 1px solid #374151; border-radius: 8px 8px 0 0; }

/* Overlapping event layout support */
.day-view-event { left: 8px; right: auto; }
.day-view-event[data-col] { position: absolute; }

@media (max-width: 768px) {
	#day-view-content { grid-template-columns: 64px 1fr; }
	.day-view-event { font-size: 11px; padding: 4px 6px; }
}

/* Login page specific styles */
.login-card { background-color: #2b2b2b; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3); }
.login-card .app-logo { width: 200px; }
input[type="email"], input[type="password"] { background-color: #3a3a3a; border: 1px solid #4a4a4a; color: #f0f0f0; }
@media (max-width: 640px) { .login-card { margin: 20px; padding: 1.5rem; } }

/* Task card default compact styling */
.task-card { 
  background-color: #282828; 
  margin-bottom: 12px; 
  transition: all 0.2s ease;
  padding: 12px 16px;
}
.task-card h3 { font-size: 15px; line-height: 1.3; }
.task-card p { font-size: 12px; line-height: 1.4; }
.task-card .text-xs { font-size: 11px; }
.task-card:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3) !important; }
.task-list { background-color: transparent; padding: 8px 0; }
.task-list[data-layout="grid"] {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}
.task-list[data-layout="grid"] .task-card { margin-bottom: 0; }
.task-list.overflow-y-auto { background-color: #1a1a1a; border-radius: 8px; padding: 12px; border: 1px solid #374151; }

/* Better tab styling for task views */
.tabs nav { gap: 4px; }
.tab-link { font-size: 14px; position: relative; }
.tab-link.active { font-weight: 700; }
.tab-badge { display: inline-block; margin-left: 6px; background-color: #3b82f6; color: white; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 10px; min-width: 20px; text-align: center; }

/* Task card priority indicators - enhance visibility */
.border-l-red-500 { border-left-width: 5px; }
.border-l-orange-500 { border-left-width: 5px; }
.border-l-yellow-500 { border-left-width: 5px; }
.border-l-green-500 { border-left-width: 5px; }

/* Extra compact view mode */
.task-board-compact .task-card { padding: 8px 12px; margin-bottom: 8px; }
.task-board-compact .task-card h3 { font-size: 13px; }
.task-board-compact .task-card p { font-size: 11px; }
.task-board-compact .task-card .text-xs { font-size: 10px; }

/* Employee Task Grid */
.employee-task-grid { margin-bottom: 24px; }
.employee-task-grid h3 { margin-bottom: 12px; }
.employee-task-grid .task-list { background-color: transparent; padding: 0; }
.employee-task-grid .task-list[data-layout="grid"] { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
}
@media (min-width: 1024px) {
  .employee-task-grid .task-list[data-layout="grid"] {
    grid-template-columns: repeat(auto-fill, minmax(300px, calc(33.333% - 11px)));
  }
}
.employee-task-grid .task-list[data-layout="grid"].scrollable {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Grid responsive layout for employee tasks */
@media (min-width: 1024px) {
	.employee-task-grid .grid { display: grid; }
}

/* Filter controls */
.filter-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; padding: 16px; background-color: #1f2937; border-radius: 8px; border: 1px solid #374151; }
.filter-controls select { padding: 8px 12px; background-color: #282828; border: 1px solid #4a5568; border-radius: 6px; color: #e5e7eb; font-size: 14px; }
.filter-controls label { color: #9ca3af; font-size: 13px; font-weight: 600; }

/* View toggle */
.view-toggle { display: inline-flex; background-color: #282828; border-radius: 6px; padding: 2px; border: 1px solid #374151; }
.view-toggle button { padding: 6px 12px; border-radius: 4px; font-size: 13px; font-weight: 600; color: #9ca3af; background: transparent; border: none; cursor: pointer; transition: all 0.2s; }
.view-toggle button:hover { background-color: #374151; color: #e5e7eb; }
.view-toggle button.active { background-color: #3b82f6; color: white; }

/* Pagination controls */
.task-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #374151; }
.task-pagination button { padding: 6px 12px; background-color: #374151; color: #e5e7eb; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.2s; }
.task-pagination button:hover:not(:disabled) { background-color: #3b82f6; }
.task-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.task-pagination .page-info { color: #9ca3af; font-size: 13px; font-weight: 600; }
.view-toggle button.active { background-color: #3b82f6; color: white; }
.view-toggle button:hover:not(.active) { background-color: #374151; color: #e5e7eb; }

