/* ═══════════════════════════════════════════════
   Dear Child – UI-komponenter
   ═══════════════════════════════════════════════ */

/* ─── Buttons ───────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-family);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}
.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-hover);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn-secondary:hover:not(:disabled) {
    background: var(--color-surface-hover);
    border-color: var(--color-text-muted);
}

.btn-danger {
    background: var(--color-danger);
    color: white;
}
.btn-danger:hover:not(:disabled) {
    background: #c0392b;
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}
.btn-ghost:hover:not(:disabled) {
    background: var(--color-surface-hover);
    color: var(--color-text);
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: var(--space-2);
    width: 36px;
    height: 36px;
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* ─── Forms ─────────────────────────────────── */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.form-label-optional {
    font-weight: var(--font-normal);
    color: var(--color-text-muted);
    font-size: var(--text-xs);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3);
    font-family: var(--font-family);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-focus);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--color-danger);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-help {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

.form-error {
    font-size: var(--text-xs);
    color: var(--color-danger);
    margin-top: var(--space-1);
}

.form-row {
    display: flex;
    gap: var(--space-4);
}

.form-row > .form-group {
    flex: 1;
}

/* Checkbox / radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

/* ─── Cards ─────────────────────────────────── */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
}

.card-body {
    padding: var(--space-5);
}

.card-footer {
    padding: var(--space-3) var(--space-5);
    border-top: 1px solid var(--color-border-light);
    background: var(--color-bg);
}

/* Stat cards on dashboard */
.stat-card {
    padding: var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.stat-card-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    line-height: 1;
}

.stat-card-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

/* ─── Modal ─────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
}

.modal-close {
    background: none;
    border: none;
    padding: var(--space-2);
    cursor: pointer;
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border-light);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
}

/* ─── Badges ────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    line-height: 1;
    white-space: nowrap;
}

.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-danger { background: var(--color-danger-bg); color: var(--color-danger); }
.badge-info { background: var(--color-info-bg); color: var(--color-info); }
.badge-neutral { background: var(--color-bg); color: var(--color-text-secondary); }
.badge-primary { background: var(--color-primary-light); color: var(--color-primary); }

/* Event type badges */
.badge-afgørelse { background: #eee4fb; color: #7c3aed; }
.badge-møde { background: var(--color-info-bg); color: var(--color-info); }
.badge-klage { background: var(--color-danger-bg); color: var(--color-danger); }
.badge-udredning { background: #fef3c7; color: #92400e; }
.badge-ansøgning { background: var(--color-primary-light); color: var(--color-primary); }
.badge-partshøring { background: #fce7f3; color: #be185d; }

/* ─── Tables ────────────────────────────────── */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

thead {
    background: var(--color-bg);
}

th {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    font-weight: var(--font-semibold);
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-border);
}

td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--color-surface-hover);
}

/* ─── Tabs ──────────────────────────────────── */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: var(--space-6);
    overflow-x: auto;
}

.tab {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: var(--font-family);
}

.tab:hover {
    color: var(--color-text);
}

.tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: var(--font-semibold);
}

/* ─── Toast notifications ───────────────────── */
.toast-container {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    pointer-events: none;
}

.toast {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-5);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    pointer-events: all;
    animation: toast-in 0.3s ease forwards;
    max-width: 400px;
}

.toast.removing {
    animation: toast-out 0.3s ease forwards;
}

.toast-success { border-left: 4px solid var(--color-success); }
.toast-error { border-left: 4px solid var(--color-danger); }
.toast-warning { border-left: 4px solid var(--color-warning); }
.toast-info { border-left: 4px solid var(--color-info); }

.toast-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: var(--space-1);
    margin-left: auto;
    flex-shrink: 0;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

/* ─── Search input ──────────────────────────── */
.search-input-wrapper {
    position: relative;
}

.search-input-wrapper svg {
    position: absolute;
    left: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    pointer-events: none;
}

.search-input-wrapper .form-input {
    padding-left: calc(var(--space-3) + 18px + var(--space-2));
}

/* ─── Tag/Chip ──────────────────────────────── */
.tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
}

.tag-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 0;
    line-height: 1;
    font-size: var(--text-sm);
}

.tag-remove:hover {
    color: var(--color-danger);
}

/* ─── Dropdown ──────────────────────────────── */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-1);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    z-index: 500;
    display: none;
    overflow: hidden;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text);
    cursor: pointer;
    transition: background var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-family);
}

.dropdown-item:hover {
    background: var(--color-surface-hover);
}

.dropdown-item-danger {
    color: var(--color-danger);
}

.dropdown-divider {
    height: 1px;
    background: var(--color-border-light);
    margin: var(--space-1) 0;
}

/* ─── Confirm dialog ────────────────────────── */
.confirm-dialog .modal {
    max-width: 420px;
}

.confirm-dialog .modal-body {
    text-align: center;
}

.confirm-dialog .confirm-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
}

.confirm-dialog .modal-footer {
    justify-content: center;
}

/* ─── Dashboard layout ─────────────────────── */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-col {
    min-width: 0;
}

/* ─── List items ───────────────────────────── */

.list-item:last-child {
    border-bottom: none !important;
}

/* ─── Card header with actions ─────────────── */

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ─── Ghost button (subtle) ────────────────── */

.btn-ghost {
    background: transparent;
    color: var(--color-primary);
    border: none;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
}

.btn-ghost:hover {
    background: var(--color-primary-light);
}

/* ─── Child profile ────────────────────────── */

.child-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

@media (max-width: 768px) {
    .child-detail-grid {
        grid-template-columns: 1fr;
    }
}

.child-detail-grid > .card:first-child,
.child-detail-grid > .card:nth-child(3),
.child-detail-grid > .card:nth-child(4) {
    grid-column: 1 / -1;
}

.child-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-base);
    flex-shrink: 0;
}

.child-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    transition: all 0.15s ease;
}

/* ─── Support needs overview ───────────────── */

.support-summary {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
}

.support-summary-item {
    font-size: var(--text-sm);
    font-weight: 500;
}

.support-groups-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

@media (max-width: 768px) {
    .support-groups-grid {
        grid-template-columns: 1fr;
    }
}

.support-group {
    min-width: 0;
}

.support-group-title {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--color-text);
}

.support-item {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.support-item:last-child {
    border-bottom: none;
}

.support-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
}

.support-item-label {
    font-size: var(--text-sm);
    color: var(--color-text);
}

.support-rating-badge {
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
}

.support-item-notes {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-2);
    white-space: pre-wrap;
    line-height: 1.5;
}

/* ─── Support needs form ───────────────────── */

.support-form-group {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--color-border-light);
}

.support-form-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.support-form-group-title {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.support-form-item {
    margin-bottom: var(--space-5);
    padding: var(--space-4);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
}

.support-form-item-header {
    margin-bottom: var(--space-3);
}

.rating-options {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.rating-option {
    display: flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: var(--text-sm);
    user-select: none;
}

.rating-option input[type="radio"] {
    display: none;
}

.rating-option:hover {
    border-color: var(--rating-color);
    background: var(--rating-bg);
}

.rating-option.rating-selected {
    border-color: var(--rating-color);
    background: var(--rating-bg);
    font-weight: 600;
    color: var(--rating-color);
}

.rating-label {
    pointer-events: none;
}

.support-notes-input {
    font-size: var(--text-sm) !important;
    min-height: 60px;
}

@media (max-width: 480px) {
    .rating-options {
        flex-direction: column;
    }
    
    .rating-option {
        justify-content: center;
    }
}

/* ─── Detail rows ──────────────────────────── */

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.detail-value {
    font-weight: 500;
}

/* ─── Tags ─────────────────────────────────── */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tag {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
}

/* ─── Contact cards ────────────────────────── */

.contact-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--text-sm);
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-actions {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.contact-card:hover .contact-actions {
    opacity: 1;
}

@media (pointer: coarse) {
    .contact-actions {
        opacity: 1;
    }
}

/* ─── Form sections ────────────────────────── */

.form-section {
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
}

.form-section:last-child {
    border-bottom: none;
}

/* ─── Inline button icon ───────────────────── */

.btn-icon-inline {
    font-size: 1.2em;
    line-height: 1;
    margin-right: var(--space-1);
}

/* ─── Custom Datepicker ────────────────────── */

.datepicker-wrapper {
    position: relative;
}

.datepicker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-3);
    width: 280px;
    margin-top: var(--space-1);
}

.dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
    gap: var(--space-1);
}

.dp-title {
    font-weight: 600;
    font-size: var(--text-sm);
    text-align: center;
    flex: 1;
}

.dp-nav {
    background: none;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: var(--text-base);
    color: var(--color-text);
    transition: background 0.1s ease;
}

.dp-nav:hover {
    background: var(--color-surface);
}

.dp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: var(--space-1);
}

.dp-weekday {
    text-align: center;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    padding: var(--space-1);
}

.dp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.dp-day {
    text-align: center;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: background 0.1s ease;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dp-day:hover:not(.dp-empty) {
    background: var(--color-surface);
}

.dp-day.dp-empty {
    cursor: default;
}

.dp-day.dp-today {
    font-weight: 700;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.dp-day.dp-selected {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

.dp-day.dp-selected.dp-today {
    border-color: var(--color-primary);
}

.dp-footer {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border-light);
}

.dp-today-btn,
.dp-clear-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: var(--text-sm);
    cursor: pointer;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
}

.dp-today-btn:hover,
.dp-clear-btn:hover {
    background: var(--color-primary-light);
}

.dp-clear-btn {
    color: var(--color-danger);
}

.dp-clear-btn:hover {
    background: var(--color-danger-light, #fde8e8);
}

/* ─── Filter buttons ───────────────────────── */

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: white;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--filter-color, var(--color-primary));
    background: color-mix(in srgb, var(--filter-color, var(--color-primary)) 8%, white);
}

.filter-btn.filter-active {
    border-color: var(--filter-color, var(--color-primary));
    background: color-mix(in srgb, var(--filter-color, var(--color-primary)) 12%, white);
    color: var(--filter-color, var(--color-primary));
    font-weight: 600;
}

/* ─── Timeline ─────────────────────────────── */

.timeline {
    position: relative;
    padding-left: var(--space-8);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-group {
    margin-bottom: var(--space-6);
}

.timeline-month-label {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
    padding-left: var(--space-4);
    position: relative;
}

.timeline-event {
    position: relative;
    margin-bottom: var(--space-4);
}

.timeline-dot {
    position: absolute;
    left: calc(-1 * var(--space-8) + 6px);
    top: var(--space-3);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 1;
    box-shadow: 0 0 0 3px var(--color-bg);
}

.timeline-content {
    background: white;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    transition: box-shadow 0.15s ease;
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
}

.timeline-event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-2);
}

.timeline-event-actions {
    opacity: 0;
    transition: opacity 0.15s ease;
    display: flex;
    gap: var(--space-1);
}

.timeline-content:hover .timeline-event-actions {
    opacity: 1;
}

@media (pointer: coarse) {
    .timeline-event-actions {
        opacity: 1;
    }
}

.timeline-date {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.timeline-child {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-left: var(--space-1);
}

.timeline-title {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--text-base);
}

.timeline-meta {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: var(--space-2);
}

.timeline-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: var(--space-2) 0 0 0;
    white-space: pre-wrap;
    line-height: 1.5;
}

.timeline-docs {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border-light);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.timeline-doc-link {
    font-size: var(--text-sm);
    color: var(--color-primary);
    cursor: pointer;
}

/* ─── Visual overview (scrollable) ─────────── */

.overview-card .card-header {
    border-bottom: 1px solid var(--color-border-light);
}

.overview-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--space-4) var(--space-5) var(--space-3);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.overview-scroll-container::-webkit-scrollbar {
    height: 6px;
}
.overview-scroll-container::-webkit-scrollbar-track {
    background: var(--color-surface);
    border-radius: 3px;
}
.overview-scroll-container::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

.overview-inner {
    position: relative;
    min-width: 100%;
}

.overview-events-zone {
    position: relative;
    margin-bottom: var(--space-2);
}

.overview-dot {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.overview-dot:hover {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
    z-index: 3;
}

.overview-dot-icon {
    font-size: 16px;
    line-height: 1;
}

.overview-main-line {
    position: relative;
    height: 3px;
    background: var(--color-border);
    border-radius: 2px;
}

.overview-today {
    position: absolute;
    top: -24px;
    transform: translateX(-50%);
    z-index: 4;
}

.overview-today-line {
    width: 2px;
    height: 52px;
    background: var(--color-primary);
    margin: 0 auto;
    opacity: 0.5;
}

.overview-today-label {
    display: block;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    margin-top: 2px;
}

.overview-labels-row {
    position: relative;
    height: 24px;
    margin-top: var(--space-2);
}

.overview-label {
    position: absolute;
    transform: translateX(-50%);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-text-muted);
    white-space: nowrap;
    top: 0;
}

.overview-deadline-zone {
    position: relative;
    height: 44px;
    margin-top: var(--space-2);
}

.overview-deadline-line {
    position: absolute;
    top: 14px;
    height: 0;
    border-top: 2px dashed;
    opacity: 0.35;
    pointer-events: none;
}

.overview-deadline-dot {
    position: absolute;
    top: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    cursor: help;
    z-index: 2;
    opacity: 0.8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    border: 2px dashed rgba(255,255,255,0.6);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.overview-deadline-dot:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.15);
}

.overview-deadline-dot .overview-dot-icon {
    font-size: 13px;
}

.overview-deadline-overdue {
    opacity: 1;
    animation: overdue-pulse-small 2s infinite;
}

@keyframes overdue-pulse-small {
    0%, 100% { box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
    50% { box-shadow: 0 1px 4px rgba(0,0,0,0.15), 0 0 0 4px rgba(192, 57, 43, 0.2); }
}


@keyframes timeline-pulse {
    0% { box-shadow: 0 0 0 0 rgba(26, 107, 80, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(26, 107, 80, 0.1); }
    100% { box-shadow: var(--shadow-md); }
}

/* ─── Timeline responsive ──────────────────── */

@media (max-width: 768px) {
    .timeline {
        padding-left: var(--space-6);
    }

    .timeline-dot {
        left: calc(-1 * var(--space-6) + 4px);
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .timeline-content {
        padding: var(--space-3) var(--space-4);
    }
}

/* ─── Calendar ─────────────────────────────── */

.cal-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
    gap: var(--space-3);
}

.cal-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.cal-current-month {
    margin: 0 0 0 var(--space-2);
    font-size: var(--text-lg);
    white-space: nowrap;
}

.cal-view-toggle {
    display: flex;
    gap: var(--space-1);
}

/* Månedsvisning */

.cal-month {
    background: white;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
}

.cal-weekday {
    padding: var(--space-2) var(--space-3);
    text-align: center;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.cal-day {
    min-height: 90px;
    padding: var(--space-2);
    border-right: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    cursor: pointer;
    transition: background 0.1s ease;
}

.cal-day:nth-child(7n) {
    border-right: none;
}

.cal-day:hover:not(.cal-day-empty) {
    background: var(--color-surface);
}

.cal-day-empty {
    background: var(--color-surface);
    cursor: default;
}

.cal-day-today {
    background: color-mix(in srgb, var(--color-primary) 5%, white);
}

.cal-day-today .cal-day-number {
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cal-day-deadline {
    border-left: 2px solid #e74c3c;
}

.cal-day-number {
    font-size: var(--text-sm);
    font-weight: 500;
    display: block;
    margin-bottom: var(--space-1);
}

.cal-day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cal-event-dot {
    padding: 1px var(--space-1);
    border-radius: 3px;
    font-size: 10px;
    color: white;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cal-event-dot-text {
    pointer-events: none;
}

.cal-event-more {
    font-size: 10px;
    color: var(--color-text-muted);
    padding-left: var(--space-1);
}

/* Listevisning */

.cal-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.cal-list-group {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cal-list-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface);
    font-weight: 600;
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--color-border-light);
}

.cal-list-relative {
    font-weight: 400;
    color: var(--color-text-muted);
    font-size: var(--text-xs);
}

.cal-list-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
}

.cal-list-item:last-child {
    border-bottom: none;
}

.cal-list-deadline {
    background: #fdedec;
}

.cal-list-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    color: white;
}

.cal-list-content {
    flex: 1;
    min-width: 0;
}

.cal-list-title {
    font-weight: 500;
    font-size: var(--text-sm);
}

.cal-list-meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 2px;
}

.cal-list-notes {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
    font-style: italic;
}

.cal-list-actions {
    display: flex;
    gap: var(--space-1);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.cal-list-item:hover .cal-list-actions {
    opacity: 1;
}

@media (pointer: coarse) {
    .cal-list-actions {
        opacity: 1;
    }
}

/* Kalender responsiv */

@media (max-width: 768px) {
    .cal-day {
        min-height: 60px;
        padding: var(--space-1);
    }

    .cal-event-dot {
        display: none;
    }

    .cal-day-events {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2px;
    }

    .cal-day-events::after {
        content: '';
    }

    .cal-event-dot {
        display: block;
        width: 6px;
        height: 6px;
        padding: 0;
        border-radius: 50%;
    }

    .cal-event-dot-text {
        display: none;
    }

    .cal-event-more {
        display: none;
    }
}

/* ─── Social login buttons ─────────────────── */

.auth-divider {
    display: flex;
    align-items: center;
    margin: var(--space-5) 0;
    gap: var(--space-3);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.auth-divider span {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    white-space: nowrap;
}

.auth-social {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: white;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn-social:hover {
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.btn-social svg {
    flex-shrink: 0;
}

/* ─── Landing page ─────────────────────────── */

.landing {
    min-height: 100vh;
    background: white;
}

/* Admin toolbar */
.admin-toolbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-5);
    background: #1a1a2e;
    color: white;
    font-size: var(--text-sm);
}

.admin-toolbar .btn-ghost {
    color: rgba(255,255,255,0.7);
}

/* Header */
.landing-header {
    border-bottom: 1px solid var(--color-border-light);
    background: white;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-toolbar ~ .landing-header {
    top: 40px;
}

.landing-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.landing-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-primary);
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Hero */
.landing-hero {
    padding: var(--space-12, 5rem) 0;
    text-align: center;
    background: linear-gradient(180deg, var(--color-surface) 0%, white 100%);
}

.landing-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.landing-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-primary);
    margin: 0 0 var(--space-4) 0;
    line-height: 1.1;
}

.landing-hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: var(--color-text);
    margin: 0 0 var(--space-4) 0;
}

.landing-hero-description {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0 0 var(--space-6) 0;
}

.landing-hero-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.landing-section {
    padding: var(--space-12, 5rem) 0;
}

.landing-section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--space-8) 0;
}

/* Video */
.landing-video-section {
    background: var(--color-surface);
}

.landing-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-xl, 1rem);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.landing-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Features */
.landing-features-section {
    background: white;
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.landing-feature-card {
    text-align: center;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.landing-feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.landing-feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
}

.landing-feature-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin: 0 0 var(--space-2) 0;
}

.landing-feature-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* CTA section */
.landing-cta-section {
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding: var(--space-12, 5rem) 0;
}

.landing-cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 var(--space-3) 0;
}

.landing-cta-description {
    font-size: var(--text-base);
    opacity: 0.9;
    margin: 0 0 var(--space-6) 0;
}

.landing-cta-section .btn-primary {
    background: white;
    color: var(--color-primary);
}

.landing-cta-section .btn-primary:hover {
    background: var(--color-surface);
}

/* Footer */
.landing-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: var(--space-8) 0;
}

.landing-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
}

.landing-footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: white;
    font-weight: 600;
}

.landing-footer-text {
    font-size: var(--text-sm);
    margin: 0;
}

.landing-footer-links {
    display: flex;
    gap: var(--space-5);
}

.landing-footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: var(--text-sm);
}

.landing-footer-links a:hover {
    color: white;
}

/* Edit mode */
.edit-field {
    margin-bottom: var(--space-3);
    text-align: left;
}

.edit-field .form-label {
    font-size: var(--text-xs);
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.edit-field .form-input,
.edit-field .form-textarea {
    border: 2px dashed var(--color-primary);
    background: rgba(26, 107, 80, 0.03);
}

/* Landing responsive */
@media (max-width: 768px) {
    .landing-features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .landing-hero {
        padding: var(--space-8) 0;
    }

    .landing-section {
        padding: var(--space-8) 0;
    }

    .landing-header-inner {
        padding: var(--space-3) 0;
    }

    .admin-toolbar {
        flex-wrap: wrap;
        font-size: var(--text-xs);
    }
}

@media (max-width: 480px) {
    .landing-hero-actions {
        flex-direction: column;
    }

    .landing-hero-actions .btn {
        width: 100%;
    }

    .landing-features-grid {
        gap: var(--space-3);
    }

    .landing-feature-card {
        padding: var(--space-4);
    }
}

/* ─── Admin Panel ──────────────────────────── */

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: #1a1a2e;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
}

.admin-sidebar-header {
    padding: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar-header .landing-logo {
    color: white;
    font-size: var(--text-base);
}

.admin-badge {
    background: var(--color-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
}

.admin-nav {
    flex: 1;
    padding: var(--space-4) 0;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all 0.15s ease;
}

.admin-nav-item:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.admin-nav-item.active {
    color: white;
    background: rgba(255,255,255,0.1);
    border-left: 3px solid var(--color-primary);
}

.admin-sidebar-footer {
    padding: var(--space-4) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.admin-main {
    flex: 1;
    margin-left: 240px;
    background: var(--color-surface);
    min-height: 100vh;
}

.admin-content {
    padding: var(--space-6) var(--space-8);
    max-width: 1100px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-3);
}

.admin-header h1 {
    margin: 0;
    font-size: var(--text-2xl);
}

.admin-header-actions {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

/* Admin table */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.admin-table th {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--color-border-light);
    white-space: nowrap;
}

.admin-table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: var(--color-surface);
}

/* Badge variants for admin */

.badge-success {
    background: #e8f8f0;
    color: #27ae60;
}

.badge-warning {
    background: #fef9e7;
    color: #f39c12;
}

.badge-danger {
    background: #fdedec;
    color: #e74c3c;
}

.badge-info {
    background: #ebf5fb;
    color: #3498db;
}

/* Admin responsive */

@media (max-width: 768px) {
    .admin-sidebar {
        width: 200px;
    }

    .admin-main {
        margin-left: 200px;
    }

    .admin-content {
        padding: var(--space-4);
    }

    .admin-table {
        display: block;
        overflow-x: auto;
    }
}

/* ─── Tasks / Opgaver ──────────────────────── */

.task-list {
    max-height: 400px;
    overflow-y: auto;
}

.task-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
    transition: background 0.1s ease;
}

.task-item:hover {
    background: var(--color-surface);
}

.task-item:last-child {
    border-bottom: none;
}

.task-overdue {
    background: #fef5f5;
}

.task-overdue .task-meta {
    color: #c0392b;
}

.task-check {
    width: 28px;
    height: 28px;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
    color: var(--color-text-muted);
    font-size: var(--text-base);
}

.task-check:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.task-check-icon {
    line-height: 1;
}

.task-content {
    flex: 1;
    min-width: 0;
}

.task-title {
    font-size: var(--text-sm);
    font-weight: 500;
}

.task-meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 1px;
}

.task-delete-btn {
    opacity: 0;
    transition: opacity 0.15s ease;
    color: var(--color-text-muted);
}

.task-item:hover .task-delete-btn {
    opacity: 1;
}

@media (pointer: coarse) {
    .task-delete-btn {
        opacity: 0.5;
    }
}

.task-quick-add .form-input {
    font-size: var(--text-sm);
}

/* ─── Activity list (combined) ─────────────── */

.activity-list {
    max-height: 600px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
    transition: background 0.1s ease;
}

.activity-item:hover {
    background: var(--color-surface);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-overdue {
    background: #fef5f5;
}

.activity-overdue:hover {
    background: #fdecec;
}

.activity-past {
    opacity: 0.6;
}

.activity-past:hover {
    opacity: 0.85;
}

.activity-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: var(--text-sm);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 1px;
}
