/**
 * EventCalendar Example Styles
 */
:root {
  --bg: #f5f5f5;
  --text: #333;
  --primary: #4285F4;
  --card-bg: #fff;
  --border: #e0e0e0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --text: #e0e0e0;
    --card-bg: #2d2d2d;
    --border: #404040;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}
/* Header */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}
.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}
.page-header p {
  color: #666;
  font-size: 1.1rem;
}
/* Demo Section */
.demo-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}
.demo-section h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.demo-section > p {
  color: #666;
  margin-bottom: 16px;
}
/* Controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.btn {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: #3367d6;
}
select {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}
/* Event Log */
.event-log {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 12px;
  background: #1e1e1e;
  color: #d4d4d4;
}
.log-entry {
  display: flex;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid #333;
}
.log-entry:last-child {
  border-bottom: none;
}
.log-time {
  color: #6a9955;
}
.log-type {
  color: #569cd6;
  font-weight: 500;
  min-width: 180px;
}
.log-message {
  color: #ce9178;
}
/* Note */
.note {
  margin-top: 16px;
  padding: 12px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  font-size: 14px;
  color: #856404;
}
@media (prefers-color-scheme: dark) {
  .note {
    background: #3d3200;
    border-color: #665200;
    color: #ffc107;
  }
}
/* Event Detail Modal */
.event-detail {
  padding: 8px 0;
}
.detail-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.detail-row:last-child {
  border-bottom: none;
}
.detail-row strong {
  min-width: 100px;
}
.color-badge {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  vertical-align: middle;
}
/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
  .page-header h1 {
    font-size: 1.8rem;
  }
  .demo-section {
    padding: 16px;
  }
  .controls {
    flex-direction: column;
  }
  .btn, select {
    width: 100%;
  }
}