/*
 * 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.
 */

/* Prospects styles migrated to Basecoat UI in prospects/index.html.erb */
/* Basecoat UI theme variables are in app/assets/tailwind/application.css */

/* Ads styles migrated to Basecoat UI in ads/index.html.erb */

/* Team Members styles migrated to Basecoat UI in team_members/index.html.erb */

/* Scripts styles migrated to Basecoat UI in scripts/index.html.erb */

/* Notes styles migrated to Basecoat UI in notes/index.html.erb */

/* Site Navigation */
.site-nav {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Simple Calendar Styling */
.simple-calendar {
  margin: 0 auto;
  max-width: 100%;
}

.calendar-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.calendar-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.calendar-heading nav {
  display: flex;
  gap: 0.5rem;
}

.calendar-heading nav a {
  padding: 0.5rem 1rem;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease;
}

.calendar-heading nav a:hover {
  background-color: #e9ecef;
}

.simple-calendar table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
}

.simple-calendar thead th {
  background-color: #343a40;
  color: white;
  text-align: center;
  padding: 1rem;
  font-weight: bold;
  border: none;
}

.simple-calendar tbody td {
  background-color: white;
  border: 1px solid #dee2e6;
  vertical-align: top;
  width: 14.28%;
  height: 120px;
  padding: 0.75rem;
  position: relative;
}

.simple-calendar tbody td:hover {
  background-color: #f8f9fa;
}

/* Day number styling */
.simple-calendar tbody td {
  font-size: 1rem;
  font-weight: 500;
}

/* Current month days */
.simple-calendar .current-month {
  background-color: white;
}

/* Previous/next month days */
.simple-calendar .prev-month,
.simple-calendar .next-month {
  background-color: #f8f9fa;
  color: #6c757d;
}

/* Today highlighting */
.simple-calendar .today {
  background-color: #e3f2fd !important;
  border: 2px solid #2196f3 !important;
  font-weight: bold;
}

/* Weekend styling */
.simple-calendar .weekend {
  background-color: #fafafa;
}

/* Event styling */
.simple-calendar .event {
  background-color: #007bff;
  color: white;
  padding: 0.25rem;
  margin: 0.25rem 0;
  border-radius: 3px;
  font-size: 0.75rem;
  line-height: 1.2;
}

/* Tags input styling */
.tags-container {
  min-height: 40px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.5rem;
  background-color: #fff;
}

.tags-container:empty {
  padding: 1rem;
}

.tags-container .badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
}

.tags-container .btn-close {
  font-size: 0.5em;
  margin-left: 0.25rem;
}

/* Script filter styling */
.script-filter-container {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1rem;
}

.filter-suggestions {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #dee2e6;
}

/* Script card filter animations (data-script-tags attribute for filter controller) */
.card[data-script-tags] {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card[data-script-tags][style*="display: none"] {
  opacity: 0;
  transform: scale(0.95);
}

/* Calendar Events Styling */
.calendar-legend {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.1);
}

.calendar-day {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.day-number {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.events-container {
  flex: 1;
  overflow-y: auto;
}

.calendar-event {
  margin-bottom: 0.25rem;
  border-radius: 3px;
  font-size: 0.7rem;
  line-height: 1.2;
  transition: opacity 0.2s ease;
}

.calendar-event:hover {
  opacity: 0.8;
}

.event-link {
  display: block;
  padding: 0.2rem 0.3rem;
  text-decoration: none;
  color: inherit;
}

.event-title {
  display: block;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-status,
.event-priority {
  display: block;
  font-size: 0.6rem;
  opacity: 0.8;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

/* Prospect follow-up events */
.prospect-event {
  background-color: #4285f4;
  color: white;
}

.legend-color.prospect-event {
  background-color: #4285f4;
}

/* Note due date events with priority colors */
.note-event {
  background-color: #ff9800;
  color: white;
}

.note-event.priority-urgent {
  background-color: #f44336;
}

.note-event.priority-high {
  background-color: #ff5722;
}

.note-event.priority-medium {
  background-color: #ff9800;
}

.note-event.priority-low {
  background-color: #4caf50;
}

.note-event.priority-none {
  background-color: #9e9e9e;
}

.legend-color.note-event {
  background-color: #ff9800;
}
