/* ============================================
   COMPANY EVENTS STYLES
   ============================================ */

/* Event Cards Grid */
.ce-events-grid { display: flex; flex-direction: column; gap: 8px; }

.ce-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ce-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 16px;
}

/* Event Card */
.ce-event-card {
  display: flex;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.ce-event-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.ce-event-card.past { opacity: 0.6; }
.ce-event-card.past:hover { opacity: 0.8; }

.ce-event-card-accent { width: 5px; flex-shrink: 0; }

.ce-event-card-body { padding: 16px 20px; flex: 1; }

.ce-event-card-header { display: flex; gap: 8px; margin-bottom: 8px; }

.ce-event-type-badge, .ce-event-status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ce-event-title { font-size: 1.1rem; font-weight: 700; color: #1f2937; margin-bottom: 4px; }
.ce-event-topic { font-size: 0.8rem; color: #9ca3af; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }

.ce-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 10px;
}

.ce-event-meta span { display: inline-flex; align-items: center; gap: 5px; }

.ce-event-guests-bar {
  display: flex;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
}

.ce-guest-stat { font-size: 0.75rem; color: #9ca3af; }
.ce-guest-count { font-weight: 700; font-size: 0.9rem; margin-right: 4px; }

/* Event Detail */
.ce-detail-header {
  border-radius: 16px;
  padding: 30px;
  color: white;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.ce-detail-header::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.ce-detail-type { font-size: 0.8rem; font-weight: 600; opacity: 0.8; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ce-detail-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 4px; }
.ce-detail-topic { font-size: 0.95rem; opacity: 0.85; margin-bottom: 12px; }

.ce-detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  opacity: 0.9;
}

.ce-detail-meta-row span { display: inline-flex; align-items: center; gap: 6px; }

.ce-detail-status-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  z-index: 1;
}

/* Detail Stats */
.ce-detail-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.ce-detail-stat-card {
  background: white;
  border-radius: 12px;
  padding: 14px 24px;
  text-align: center;
  min-width: 100px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.ce-detail-stat-num { font-size: 1.75rem; font-weight: 800; color: var(--fc-primary, #1e3c3c); }
.ce-detail-stat-label { font-size: 0.7rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; }

/* Actions Bar */
.ce-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

/* Tabs */
.ce-tabs {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.ce-tab {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.15s;
  white-space: nowrap;
}

.ce-tab.active {
  background: white;
  color: var(--fc-primary, #1e3c3c);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  font-weight: 600;
}

/* Guest Table */
.ce-guest-table { display: flex; flex-direction: column; gap: 4px; }

.ce-guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.15s;
}

.ce-guest-row:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.ce-guest-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }

.ce-guest-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.ce-guest-name { font-weight: 600; font-size: 0.875rem; color: #1f2937; }
.ce-guest-email { font-size: 0.75rem; color: #9ca3af; }
.ce-guest-title { font-size: 0.7rem; color: #6b7280; }

.ce-guest-status { margin: 0 12px; }

.ce-inv-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}

.ce-guest-actions { display: flex; align-items: center; gap: 8px; }

.ce-guest-remove {
  background: none;
  border: none;
  color: #d1d5db;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.15s;
}

.ce-guest-remove:hover { color: #ef4444; background: #fef2f2; }

.ce-empty-guests {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 12px;
}

/* Attendance View */
.ce-attendance-view { }

.ce-attendance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ce-attendance-header h3 { font-weight: 700; color: #374151; }

.ce-attendance-row { padding: 8px 16px; }

.ce-attendance-buttons { display: flex; gap: 8px; }

.ce-attendance-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.15s;
}

.ce-attendance-check input { display: none; }

.ce-attendance-check.checked {
  background: #10b98120;
  border-color: #10b981;
  color: #10b981;
}

.ce-attendance-check.no-show.checked {
  background: #ef444420;
  border-color: #ef4444;
  color: #ef4444;
}

/* Selectable List */
.ce-selectable-list { display: flex; flex-direction: column; gap: 4px; }

.ce-selectable-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1.5px solid transparent;
}

.ce-selectable-item:hover { background: #f9fafb; }

.ce-selectable-item.selected {
  background: #f0fdf4;
  border-color: #10b981;
}

.ce-selectable-check { color: #d1d5db; font-size: 1rem; }
.ce-selectable-item.selected .ce-selectable-check { color: #10b981; }

/* Description Card */
.ce-description-card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  margin-top: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.ce-description-card h3 { font-weight: 700; color: #374151; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.ce-description-card p { color: #6b7280; line-height: 1.6; }

.ce-rsvp-deadline {
  background: #fef3c7;
  color: #92400e;
  padding: 12px 20px;
  border-radius: 12px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hidden utility */
.hidden { display: none !important; }

/* ==========================================
   SEARCH & FILTER BAR
   ========================================== */
.ce-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.ce-search-wrapper {
  position: relative;
  flex: 1;
}

.ce-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.85rem;
}

.ce-search-input {
  width: 100%;
  padding: 10px 38px 10px 38px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.875rem;
  background: white;
  transition: all 0.2s;
  outline: none;
}

.ce-search-input:focus {
  border-color: var(--fc-accent, #ff6101);
  box-shadow: 0 0 0 3px rgba(255, 97, 1, 0.1);
}

.ce-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: #f3f4f6;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all 0.15s;
}

.ce-search-clear:hover { background: #e5e7eb; color: #374151; }

.ce-filter-selects {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.ce-filter-select {
  padding: 8px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.8rem;
  color: #374151;
  background: white;
  cursor: pointer;
  outline: none;
  transition: all 0.15s;
  min-width: 140px;
}

.ce-filter-select:focus {
  border-color: var(--fc-accent, #ff6101);
}

.ce-filter-reset {
  border: none;
  background: #fef2f2;
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.ce-filter-reset:hover { background: #fee2e2; }

.ce-filter-info {
  background: #f0f9ff;
  color: #0369a1;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================
   2-HAKEN CHECKLIST VIEW
   ========================================== */
.ce-checklist-view { }

.ce-checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ce-checklist-legend {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: #6b7280;
}

.ce-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ce-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.ce-checklist-table {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.ce-checklist-thead {
  display: grid;
  grid-template-columns: 1fr 100px 90px 90px 40px;
  padding: 10px 16px;
  background: #f9fafb;
  font-size: 0.7rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #f3f4f6;
  gap: 8px;
  align-items: center;
}

.ce-checklist-col-check {
  text-align: center;
}

.ce-checklist-row {
  display: grid;
  grid-template-columns: 1fr 100px 90px 90px 40px;
  padding: 10px 16px;
  border-bottom: 1px solid #f8f9fa;
  align-items: center;
  gap: 8px;
  transition: background 0.1s;
}

.ce-checklist-row:hover { background: #fafbfc; }
.ce-checklist-row:last-child { border-bottom: none; }

.ce-checklist-col-name { min-width: 0; }
.ce-checklist-name { font-weight: 600; font-size: 0.875rem; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-checklist-email { font-size: 0.7rem; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ce-checklist-col-type { }

.ce-type-pill {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.ce-checklist-col-actions { text-align: center; }

/* Checkbox Styling */
.ce-check-label {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ce-check-label input { display: none; }

.ce-check-box {
  width: 30px;
  height: 30px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
  transition: all 0.2s;
  background: white;
}

.ce-check-label:hover .ce-check-box {
  border-color: #9ca3af;
}

.ce-check-label.accepted.active .ce-check-box {
  background: #10b981;
  border-color: #10b981;
  color: white;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.ce-check-label.attended.active .ce-check-box {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: white;
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.ce-checklist-summary {
  display: flex;
  gap: 20px;
  padding: 14px 16px;
  margin-top: 12px;
  background: #f9fafb;
  border-radius: 12px;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Highlight Tab */
.ce-tab-highlight {
  background: linear-gradient(135deg, #10b98115, #8b5cf615) !important;
}

.ce-tab-highlight.active {
  background: linear-gradient(135deg, #10b98130, #8b5cf630) !important;
  color: #7c3aed !important;
}

/* Responsive */
@media (max-width: 768px) {
  .ce-filter-bar { flex-direction: column; }
  .ce-filter-selects { flex-direction: column; }
  .ce-filter-select { min-width: 100%; }
  
  .ce-checklist-thead { grid-template-columns: 1fr 70px 70px 30px; }
  .ce-checklist-row { grid-template-columns: 1fr 70px 70px 30px; }
  .ce-checklist-col-type { display: none; }
  .ce-checklist-thead .ce-checklist-col-type { display: none; }
  
  .ce-event-card { flex-direction: column; }
  .ce-event-card-accent { width: 100%; height: 4px; }
  .ce-detail-header { padding: 20px; }
  .ce-detail-title { font-size: 1.3rem; }
  .ce-detail-stats { flex-wrap: wrap; }
  .ce-actions-bar { flex-direction: column; }
  .ce-guest-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================
   SMART GUEST INVITE FILTERS
   ============================================ */

/* Quick Filter Chips */
.guest-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 99px;
  background: white;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.guest-quick-chip:hover {
  border-color: var(--fc-primary, #1e3c3c);
  color: var(--fc-primary, #1e3c3c);
  background: #f0fdfa;
}
.guest-quick-chip.active {
  background: var(--fc-primary, #1e3c3c);
  color: white;
  border-color: var(--fc-primary, #1e3c3c);
}
.guest-quick-chip.active i {
  color: white !important;
}

/* Active Filter Chips */
.guest-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
}
.guest-filter-chip button {
  background: none;
  border: none;
  color: #0369a1;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 0 0 2px;
  opacity: 0.7;
}
.guest-filter-chip button:hover {
  opacity: 1;
}

/* Selection counter animation */
#guest-selection-counter {
  animation: fadeInSlide 0.2s ease;
}
@keyframes fadeInSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
