/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Multi-select dropdown styles */
.multiselect-wrapper {
  position: relative;
  width: 100%;
}

.multiselect-display {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
}

.multiselect-display::after {
  content: '▼';
  font-size: 0.75rem;
  color: #6c757d;
}

.multiselect-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #ced4da;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.multiselect-dropdown.show {
  display: block;
}

.multiselect-option {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.multiselect-option:hover {
  background-color: #f8f9fa;
}

.multiselect-option.select-all {
  border-bottom: 1px solid #e9ecef;
  font-weight: bold;
}

.multiselect-option input[type="checkbox"] {
  margin-right: 0.5rem;
  cursor: pointer;
}

.multiselect-option label {
  margin: 0;
  cursor: pointer;
  flex: 1;
  user-select: none;
}

/* Calendar styles */
.calendar-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.calendar-navigation h1 {
  margin: 0;
}

.calendar-nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.calendar-nav-link {
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.calendar-nav-link:hover {
  background-color: #0056b3;
}

.calendar-container {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
}

.calendar-table th {
  background-color: #f8f9fa;
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  border: 1px solid #dee2e6;
}

.calendar-table td {
  border: 1px solid #dee2e6;
  height: 100px;
  vertical-align: top;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.calendar-day {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  box-sizing: border-box;
}

.calendar-day:hover {
  background-color: #f8f9fa;
  text-decoration: none;
  color: inherit;
}

.calendar-day.has-calls {
  background-color: #e3f2fd;
}

.calendar-day.has-calls:hover {
  background-color: #bbdefb;
}

.calendar-day-number {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.calendar-call-count {
  color: #1976d2;
  font-size: 0.875rem;
  font-weight: bold;
}

.calendar-day.other-month {
  background-color: #f5f5f5;
  color: #999;
}

.calendar-day.other-month.has-calls {
  background-color: #e8e8e8;
}

.calendar-day.today {
  box-shadow: inset 0 0 0 2px #ff6b6b;
}

.calendar-summary {
  margin-top: 1.5rem;
  text-align: center;
  color: #666;
}

.calendar-filters {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}
