.calendar-day.day-past {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: #f8f9fa;
}

.calendar-day.day-past:hover {
  background-color: #f8f9fa;
}

.calendar-day.day-past::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.05) 2px,
      rgba(0, 0, 0, 0.05) 4px);
  pointer-events: none;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

.bg-rotten {
  background-color: saddlebrown;
  color: white;
}

.bg-rotten a {
  color: white;
}

.bg-hot {
  background-image: url('https://gifdb.com/images/high/bunch-of-flying-money-foqbda334s4i68jw.gif');
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  background-position: center;
}

.border-red {
  border: 10px solid red;
}

/* Task Quick Complete Feature */
.task-quick-complete.completed-mode .datepicker[data-task-quick-complete-target="dueOnField"],
.task-quick-complete.completed-mode .datepicker[data-task-quick-complete-target="completedOnField"],
.task-quick-complete.completed-mode select[data-task-quick-complete-target="userField"] {
  background-color: #f0f8f0;
  transition: background-color 0.3s ease;
}

.completion-note-wrapper {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.completion-note-wrapper.show {
  opacity: 1;
  max-height: 200px;
}

.form-check-label i.bi-check-circle {
  color: #28a745;
}

/* Work Shift Calendar Styles */
.calendar-grid {
  display: grid;
  grid-template-rows: auto 1fr;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 2px solid #dee2e6;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day {
  min-height: 60px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  user-select: none;
}

.calendar-day:hover {
  opacity: 0.8;
  transform: scale(0.98);
}

.day-weekday {
  background-color: #f8f9fa;
}

.day-weekend {
  background-color: #e9ecef;
}

.day-other-month {
  opacity: 0.3;
  pointer-events: none;
}

.day-today {
  border: 2px solid #0d6efd !important;
  font-weight: bold;
}

.day-working {
  background-color: #d1e7dd !important;
  color: #0f5132;
}

.day-not-working {
  background-color: #f8d7da !important;
  color: #842029;
}

.day-undeclared {
  background-color: inherit;
}

.day-number {
  font-size: 1.1rem;
}

/* Multi-user Calendar Enhancements */
.user-filter-panel {
  margin-bottom: 1rem;
}

.user-filter-panel .card-header {
  cursor: pointer;
  user-select: none;
}

.user-filter-panel .card-header:hover {
  background-color: #f8f9fa;
}

.user-checkbox-list {
  max-height: 200px;
  overflow-y: auto;
}

.user-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  margin-bottom: 2px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.user-indicator-working {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.user-indicator-not-working {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

.user-indicator-undeclared {
  background-color: #e2e3e5;
  color: #41464b;
  border: 1px solid #d3d6d8;
}

.current-user-indicator {
  border-width: 2px;
  font-weight: 700;
}

.user-indicators {
  margin-top: 0.5rem;
}

.more-users-indicator {
  text-align: center;
  font-size: 0.7rem;
  color: #6c757d;
  margin-top: 2px;
}

.day-tooltip {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-width: 300px;
  font-size: 0.875rem;
}

.tooltip-status-group ul {
  list-style-type: none;
  padding-left: 1rem !important;
}

.tooltip-status-group li::before {
  content: "• ";
  margin-right: 0.25rem;
}

/* Responsive adjustments for calendar */
@media (max-width: 768px) {
  .calendar-day {
    min-height: 80px;
  }
  
  .user-indicator {
    height: 16px;
    font-size: 0.65rem;
  }
  
  .user-indicators {
    max-height: 60px;
    overflow-y: auto;
  }
}

/* Updated calendar day styles for multi-user */
.calendar-day {
  min-height: 100px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  user-select: none;
  overflow: hidden;
}

.day-header {
  margin-bottom: 0.25rem;
}

/* Impersonation Banner Styles */
.impersonation-banner {
  position: sticky;
  top: 0;
  z-index: 1040;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-bottom: 2px solid #ffc107;
}

.impersonation-banner .impersonation-info {
  display: flex;
  align-items: center;
}

.impersonation-banner .btn-dark {
  background-color: #212529;
  border-color: #212529;
}

.impersonation-banner .btn-dark:hover {
  background-color: #343a40;
  border-color: #343a40;
}

/* Impersonate button animation */
.btn-outline-warning:hover .bi-person-fill-gear {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Organization Filter Improvements */
.card.shadow-sm {
  border: none;
  transition: box-shadow 0.3s ease;
}

.card.shadow-sm:hover {
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

/* Better form controls */
.form-floating > .form-control {
  border-radius: 0.375rem;
}

.form-floating > .form-control:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Multi-select styling */
.form-select[multiple] {
  padding: 0.5rem;
  border-radius: 0.375rem;
}

.form-select[multiple] option {
  padding: 0.5rem;
  cursor: pointer;
}

.form-select[multiple] option:hover {
  background-color: #e9ecef;
}

.form-select[multiple] option:checked {
  background-color: #0d6efd;
  color: white;
}

/* Selected count badge */
.selected-count-badge {
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  vertical-align: middle;
}

/* Filter button improvements */
.btn {
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Results badge */
.badge.bg-secondary {
  background-color: #6c757d!important;
  font-weight: normal;
}
