/**
 * CALENDAR DETAIL PANEL STYLES
 * Dark theme matching master.css
 */

.calendar-detail-panel {
  background: var(--bg-light, #1E293B);
  border-radius: 12px;
  padding: var(--pad-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid var(--border, #334155);
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.calendar-detail-empty {
  padding: var(--pad-xl);
  text-align: center;
  color: var(--text-light, #94A3B8);
}

.calendar-day-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Detail Header */
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border, #334155);
  padding-bottom: var(--space-md);
}

.detail-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text, #F1F5F9);
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light, #94A3B8);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-close:hover {
  background: var(--bg-main, #0F172A);
  color: var(--text, #F1F5F9);
}

/* Detail Sections */
.detail-section {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-sm) * 0.75);
}

.detail-section h3 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text, #F1F5F9);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.empty-text {
  color: var(--text-light, #94A3B8);
  font-style: italic;
  margin: var(--space-sm) 0;
}

/* Plan Card */
.plan-card {
  background: #b45309;
  border: 2px solid #d97706;
  border-radius: 8px;
  padding: var(--pad-md);
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-sm) * 0.75);
  transition: all 0.2s;
}

.plan-card:hover {
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.plan-card.error {
  background: #7f1d1d;
  border-color: #ef4444;
}

/* Session Card */
.session-card {
  background: var(--bg-main, #0F172A);
  border: 2px solid var(--border, #334155);
  border-radius: 8px;
  padding: var(--pad-md);
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-sm) * 0.75);
  transition: all 0.2s;
}

.session-card:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.5);
}

/* Card Components */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.card-header h4 {
  margin: 0;
  font-size: 1.125rem;
    color: var(--text, #F1F5F9);
  flex: 1;
}

.plan-time {
  font-size: 0.875rem;
    color: var(--text-light, #94A3B8);
    background: rgba(0,0,0,0.3);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.plan-notes,
.session-notes {
  margin: 0;
  padding: var(--space-sm);
    background: rgba(0,0,0,0.3);
  border-radius: 4px;
  font-size: 0.875rem;
    color: var(--text-light, #94A3B8);
}

.template-info,
.session-info {
  margin: 0;
  font-size: 0.875rem;
    color: var(--text-light, #94A3B8);
}

.card-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--pad-md);
}

.modal-content {
  background: var(--bg-light, #1E293B);
  border: 1px solid var(--border, #334155);
  border-radius: 12px;
  padding: var(--pad-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-content h3 {
  margin: 0 0 var(--space-lg);
  font-size: 1.5rem;
  color: var(--text, #F1F5F9);
}

.plan-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.plan-form label {
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text, #F1F5F9);
}

.input-field {
  padding: var(--pad-sm);
    border: 2px solid var(--border, #334155);
    background: var(--bg-main, #0F172A);
    color: var(--text, #F1F5F9);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary, #3b82f6);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: calc(var(--space-sm) * 0.75);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .calendar-detail-panel {
    max-height: none;
  }

  .detail-header h2 {
    font-size: 1.125rem;
  }

  .card-actions {
    flex-direction: column;
  }

  .card-actions button {
    width: 100%;
  }

  .modal-content {
    padding: var(--pad-lg);
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions button {
    width: 100%;
  }
}
