/* Calendar Popup Styles */
.calendar-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 90%;
  max-width: 500px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-popup.active {
  opacity: 1;
  visibility: visible;
}

.calendar-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
}

.calendar-popup-overlay.active {
  display: block;
}

.calendar-popup-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.calendar-popup-header-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.calendar-popup-status-indicator {
  display: flex;
  align-items: center;
  margin-top: 0.125rem;
}

.calendar-popup-status-indicator .status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--status-color, #6b7280), var(--status-color-dark, #4b5563));
  box-shadow: 
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  position: relative;
  overflow: hidden;
}

.calendar-popup-status-indicator .status-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.calendar-popup-status-indicator .status-badge:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.calendar-popup-status-indicator .status-badge:hover::before {
  left: 100%;
}

.calendar-popup-status-indicator .status-badge-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.calendar-popup-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  flex: 1;
  line-height: 1.4;
}

.calendar-popup-close {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s ease;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-popup-close:hover {
  color: #1f2937;
  background: #f3f4f6;
}

.calendar-popup-content {
  padding: 1.5rem;
}

.calendar-popup-info {
  margin-bottom: 1.5rem;
}

.calendar-popup-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: #4b5563;
}

.calendar-popup-info-item:last-child {
  margin-bottom: 0;
}

.calendar-popup-info-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  color: #6b7280;
}

.calendar-popup-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.calendar-popup-button {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
}

.calendar-popup-button-primary {
  background: #0891b2;
  color: white;
}

.calendar-popup-button-primary:hover {
  background: #0e7490;
}

.calendar-popup-button-secondary {
  background: #f3f4f6;
  color: #1f2937;
}

.calendar-popup-button-secondary:hover {
  background: #e5e7eb;
}

.calendar-popup-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.calendar-popup-status.not_started {
  background: #fef2f2;
  color: #dc2626;
}

.calendar-popup-status.in_progress {
  background: #fef3c7;
  color: #d97706;
}

.calendar-popup-status.completed {
  background: #dcfce7;
  color: #16a34a;
}

.calendar-popup-description {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calendar-popup-payment-item {
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 16px;
  margin-top: 8px;
}

.calendar-popup-payment-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.calendar-popup-payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.calendar-popup-payment-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  text-align: left;
  flex: 1;
}

.calendar-popup-payment-value {
  font-size: 1rem;
  color: #0f172a;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  text-align: right;
  min-width: 120px;
  padding-left: 16px;
}

.calendar-popup-payment-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.calendar-popup-payment-status.paid {
  background: #dcfce7;
  color: #16a34a;
}

.calendar-popup-payment-status.partially_paid {
  background: #fef3c7;
  color: #d97706;
}

.calendar-popup-payment-status.unpaid {
  background: #fef2f2;
  color: #dc2626;
}

.calendar-popup-payment-status.no_amount {
  background: #f3f4f6;
  color: #6b7280;
}

.calendar-popup-attachments {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.calendar-popup-attachments-label {
  color: #6b7280;
  font-size: 0.875rem;
}

.calendar-popup-attachments-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calendar-popup-attachment {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 6px;
  background: #f9fafb;
  color: #1f2937;
  text-decoration: none;
  transition: all 0.2s ease;
}

.calendar-popup-attachment:hover {
  background: #f3f4f6;
  transform: translateX(2px);
}

.calendar-popup-attachment-icon {
  color: #6b7280;
  flex-shrink: 0;
}

.calendar-popup-attachment-name {
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-popup-section {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
}

.calendar-popup-section:first-child {
  margin-top: 0;
}

.calendar-popup-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calendar-popup-section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 16px;
  background: #0891b2;
  border-radius: 2px;
}

.calendar-popup-section-content {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .calendar-popup {
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .calendar-popup-content {
    padding: 1rem;
  }

  .calendar-popup-info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .calendar-popup-info-icon {
    margin-right: 0;
  }

  .calendar-popup-payment-info,
  .calendar-popup-attachments {
    margin-left: 0;
  }

  .calendar-popup-actions {
    flex-direction: column;
  }

  .calendar-popup-header-content {
    flex-direction: column;
    gap: 0.75rem;
  }

  .calendar-popup-status-indicator {
    align-self: flex-start;
  }

  .calendar-popup-status-indicator .status-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
  }

  .calendar-popup-status-indicator .status-badge-text {
    font-size: 0.625rem;
  }
}

/* Hide event dot in list view */
.fc-list-event-dot {
  display: none !important;
}

.fc-list-event-time {
  display: none !important;
}

.fc-list-event-graphic {
  display: none !important;
}

.fc-list-event-title {
  padding-left: 0 !important;
} 
