/* Color variables from old site */
:root {
    --meplaza-blue: #42CFFF;
    --meplaza-green: #ABF01F;
    --meplaza-dark-blue: #1E4262;
    --message-bubble-bg: #E7F8FD;
    --message-bubble-text: #0f172a;
    --message-bubble-meta: #475569;
    --message-bubble-link: #1E4262;
    --message-reply-bg: #fff5d6;
    --message-reply-border: #f59e0b;
    --message-reply-text: #92400e;
}

:root[data-theme="dark"] {
    --message-bubble-text: #0f172a;
    --message-bubble-meta: #475569;
    --message-bubble-link: #1E4262;
    --message-reply-text: #92400e;
}

/* App width constraint */
.container {
    max-width: 1040px;
}

header.container {
    padding-top: 0;
}

/* Test mode banner */
.test-mode-banner {
    border: 1px solid #f0c36d;
    border-radius: 4px;
    background: #fff4d6;
    color: #6b4f00;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

/* Prevent grid collapse on mobile */
.grid-inline {
    grid-template-columns: auto auto;
    justify-content: start;
}

/* Date picker row on inschrijven page */
.date-picker-row {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0 1rem;
}

.date-picker-row form {
    display: flex;
    justify-content: center;
    width: 100%;
}

.date-picker-input {
    /* max-width: 200px; */
    width: 100%;
    text-align: center;
}

/* Table crosses */
.cross {
    color: #999;
    font-size: 1.1em;
    cursor: default;
    user-select: none;
}

.icon {
    cursor: default;
    user-select: none;
}

/* Input toggle link */
.input-toggle {
    color: #777;
    text-decoration: underline;
    font-size: 0.9em;
}

.input-toggle:hover {
    color: #555;
}

/* User input section grid alignment */
#user-input fieldset.grid {
    align-items: center;
}

#user-input fieldset.grid label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Messages/Prikbord WhatsApp-like bubble styling */
#messages article {
    background-color: var(--message-bubble-bg);
    color: var(--message-bubble-text);
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

#messages article strong {
    color: var(--message-bubble-link);
    font-size: 0.95em;
}

#messages article small {
    color: var(--message-bubble-meta);
    font-size: 0.8em;
    margin-left: 0.5rem;
}

#messages article p {
    color: var(--message-bubble-text);
}

#messages article a {
    color: var(--message-bubble-link);
}

/* Navigation menu styling */
nav a {
    text-decoration: none;
}

nav a:hover {
    text-decoration: none;
}

/* Active page indicator in navigation */
nav a[aria-current="page"] {
    border: 2px solid currentColor;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-weight: bold;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle .theme-icon {
    width: 1rem;
    height: 1rem;
    display: inline-block;
}

.theme-icon-sun {
    display: none;
}

:root[data-theme="dark"] .theme-icon-sun {
    display: inline-block;
}

:root[data-theme="dark"] .theme-icon-moon {
    display: none;
}

.app-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.app-nav ul:last-child {
    margin-left: auto;
}

.app-nav ul:first-child {
    margin-left: 0.5rem;
}

@media (max-width: 540px) {
    .app-nav ul {
        flex-basis: 100%;
        justify-content: center;
    }

    .app-nav ul:last-child {
        margin-left: 0;
        order: -1;
    }

    .container {
        padding-inline: 0.75rem;
    }
}


.footer-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.footer-stack button,
.footer-stack small {
    font-size: 0.85rem;
}

.footer-stack small {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
}

.footer-nav ul {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 0.85rem;
}

.footer-nav a {
    text-decoration: none;
}

.footer-nav a[aria-current="page"] {
    font-weight: 600;
    text-decoration: none;
}

/* Admin editor */
button.danger {
    background-color: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

button.danger:hover:not(:disabled) {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.warning-text {
    margin-top: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #f59e0b;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.4;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-actions {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-editor {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    min-height: 18rem;
    height: 50vh;
    max-height: 60vh;
    resize: vertical;
}

.admin-status {
    display: block;
    min-height: 1.25rem;
    margin-top: 0.5rem;
}

.admin-status[data-state="success"] {
    color: #16a34a;
}

.admin-status[data-state="error"] {
    color: #dc2626;
}

/* Geld page layout */
.activity-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.activity-summary::after {
    float: none;
    margin-inline-start: calc(var(--pico-spacing, 1rem) * 0.5);
}

.activity-actions {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
}

.activity-actions button {
    padding: 0.25rem 0.5rem;
    margin: 0;
}

.missing-cost {
    background-color: #f6e05e;
    border-color: #d1a800;
    color: #1f2937;
}

.activity-description {
    color: #4b5563;
}

.participants-list {
    margin: 0;
    color: #4b5563;
}

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

.table-scroll {
    overflow-x: auto;
    width: 100%;
}

.inactive-user,
.inactive-user td {
    color: #6b7280;
}

/* Balance colors */
.balance-positive {
    color: #16a34a;
}

.balance-negative {
    color: #dc2626;
}

/* Cancel button */
.btn-cancel {
    background-color: #c62828;
    border-color: #c62828;
    color: #fff;
}

.btn-cancel:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
}

