:root {
    --calendar-base: var(--pico-contrast-background);
    --pico-block-spacing-vertical: 0;
    --pico-border-radius: 0;
    --pico-text-decoration: none;
    --pico-text-decoration-hover: none;
    --pico-card-box-shadow: none;
    --pico-box-shadow: none;
    --pico-font-size: 0.875rem;
}

html {
    font-size: 0.875rem;
}

@media (prefers-color-scheme: light) {
    :root {
        --calendar-highlight: #9FAABB;
        --calendar-base: #ECEEF1;

        /* Muted primary for buttons, links, focus rings */
        --pico-primary: #5C7A9A;
        --pico-primary-background: #5C7A9A;
        --pico-primary-border: #5C7A9A;
        --pico-primary-underline: rgba(92, 122, 154, 0.5);
        --pico-primary-hover: #4A6880;
        --pico-primary-hover-background: #4A6880;
        --pico-primary-hover-border: #4A6880;
        --pico-primary-focus: rgba(92, 122, 154, 0.25);
        --pico-primary-inverse: #fff;

        /* PicoCSS v1 compat */
        --primary: #5C7A9A;
        --primary-hover: #4A6880;
        --primary-focus: rgba(92, 122, 154, 0.25);
        --primary-inverse: #fff;

        /* Cream/ivory background */
        --pico-background-color: #FAF8F4;
        --background-color: #FAF8F4;
        --pico-card-background-color: #FDF9F4;
        --card-background-color: #FDF9F4;
    }

    /* Soften the CLI bar — keep terminal feel, drop neon */
    #cli-bar {
        background-color: #1e2832 !important;
        border-top-color: #4d8a6e !important;
    }
    #cli-bar #cli-input {
        background-color: #1e2832 !important;
        color: #7fb3a0 !important;
        border-color: #3a4a5a !important;
    }
}

/* Optional: Customize scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--calendar-highlight);
    border-radius: 4px;
}

/* Navigation styles */
nav {
    border-bottom: 1px solid var(--calendar-highlight);
}

a {
    --pico-text-decoration: none;
    text-decoration: none;
}

.trash-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 4h-3.5l-1-1h-5l-1 1H5v2h14M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12z'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 4h-3.5l-1-1h-5l-1 1H5v2h14M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12z'/%3E%3C/svg%3E") no-repeat center;
}

.pencil-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E") no-repeat center;
}

/* Modal styles */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--background-color);
    background: black;
    padding: 20px;
    border-radius: 8px;
    width: 90% !important;
    max-width: 1200px !important;
    min-width: 800px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

article.modal-content {
    width: 90% !important;
    max-width: 1200px !important;
    min-width: 800px;
}
