html, body {
    font: 16px Helvetica, Sans-Serif;
}

#page-wrap {
    width: 800px;
    margin: 20px auto 20px;
    padding: 40px 40px;
    background: bisque;
}

#starka-list ul {
    list-style: none;
    margin: 0.5em 0 1em 0;
    padding: 0;
}

#starka-list li {
    margin: 0.75em 0;
    line-height: 1.35;
}

#starka-list .event-head {
    font-weight: 700;
    margin-right: 0.4em;
}

#starka-list .event-date {
    color: #555;
    margin-left: 0.4em;
    font-weight: 600;
}

#starka-list .event-organisers {
    font-style: italic;
    color: #333;
    display: inline;
    margin-left: 0.6em;
}

#starka-list .event-activities {
    display: block;
    margin-top: 0.15em;
    color: #222;
}

#starka-list li.cancelled {
    color: #888;
    text-decoration: line-through;
}

#starka-list li.cancelled .event-activities {
    text-decoration: line-through;
}

/* Matrix table styles (moved from inline styles in starka.js) */
.starka-matrix-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1em;
}

.starka-matrix-th {
    border: 1px solid #ccc;
    padding: 6px;
}

.starka-matrix-rowheader {
    border: 1px solid #ccc;
    padding: 6px;
    font-weight: 600;
}

.starka-matrix-td {
    border: 1px solid #eee;
    padding: 6px;
}

/* number styling inside matrix cells */
.starka-number {
    font-weight: 700;
    color: #064;
    font-family: monospace;
}

.starka-org-count {
    color: #666;
    font-weight: 400;
    font-size: 90%;
    margin-left: 6px;
}

.starka-network-wrap {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.starka-network {
    flex: 1;
    height: 500px;
    border: 1px solid #ccc;
}

.starka-sidepanel {
    width: 320px;
    max-height: 500px;
    overflow: auto;
    border-left: 1px solid #e6e6e6;
    padding: 8px;
    font-size: 14px;
}

.starka-legend {
    margin-bottom: 8px;
}

.starka-legend-items {
    margin-top: 6px;
    font-size: 13px;
    color: #333;
}

.starka-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.starka-legend-swatch {
    width: 14px;
    height: 14px;
    display: inline-block;
    border: 1px solid #999;
}

.swatch-active {
    background: #1f77b4;
}

.swatch-inactive {
    background: #bbbbbb;
}

.swatch-event {
    background: #ff7f0e;
}

.swatch-cancelled {
    background: #d62728;
}

.starka-side-hint {
    margin-top: 8px;
    color: #666;
    font-size: 13px;
}

/* Modal / create-event styles */
.starka-add-button { margin: 8px 0; }
.starka-modal { position: fixed; left:0; top:0; right:0; bottom:0; background: rgba(0,0,0,0.4); display:flex; align-items:center; justify-content:center; z-index:9999; }
.starka-modal-card { background:#fff; padding:16px; width:520px; max-height:90vh; overflow:auto; border-radius:6px; }
.starka-hidden { display:none; }
.starka-full { width:100%; box-sizing:border-box; }
.starka-helper { font-size:12px; color:#666; margin-bottom:8px; }
.starka-modal-actions { margin-top:8px; display:flex; gap:8px; justify-content:flex-end; }
.starka-modal-msg { margin-top:8px; color:#c00; }
.starka-modal-msg.starka-msg-error { color:#c00; }

.starka-submit-confirm { background: #f0fff0; color:#080; border:1px solid #cfc; padding:8px; margin-top:8px; border-radius:4px; }

/* event list inside network panel */
.starka-ev-list { padding-left:18px; margin-top:6px; }
.starka-ev-item { margin-bottom:6px; cursor:pointer; }
.starka-small-muted { color:#666; }
.starka-ev-cancelled { color:#c00; font-weight:700; }
.starka-ev-activities { margin-top:6px; }
.starka-ev-note { margin-top:6px; color:#c00; }
.starka-debug-id { margin-top:8px; color:#999; font-size:12px; }

/* node labels and tooltip */
.starka-node-label { font-size:11px; font-family:sans-serif; }
.starka-tooltip { position:absolute; pointer-events:none; padding:6px 8px; background:#222; color:#fff; font-size:12px; border-radius:4px; display:none; }
