body {
    background-color: #f5f5f5;
    font-family: 'Roboto', sans-serif;
    /* Ensure padding for sticky footer so content isn't hidden */
    padding-bottom: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.grid {
    width: 100%;
}

.grid-sizer,
.grid-item {
    width: 32%;
    /* 3 columns */
}

@media (max-width: 900px) {

    .grid-sizer,
    .grid-item {
        width: 48%;
        /* 2 columns */
    }
}

@media (max-width: 600px) {

    .grid-sizer,
    .grid-item {
        width: 100%;
        /* 1 column */
    }
}

.grid-item {
    margin-bottom: 10px;
    padding: 0 5px;
    /* gutter imitation */
}

.note-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    transition: box-shadow 0.2s;
    overflow: hidden;
}

.note-card:hover {
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
}

.note-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
    display: block;
    color: #202124;
    text-decoration: none;
}

.note-items-preview {
    font-size: 0.9em;
    color: #5f6368;
}

.note-item-preview {
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.note-item-checked {
    text-decoration: line-through;
    color: #b0b0b0;
}

.note-actions {
    margin-top: 15px;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

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

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: #5f6368;
    text-decoration: none;
    font-size: 0.9em;
}

.btn-icon:hover {
    color: #202124;
}

.note-image-preview img {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Sticky Header and Footer Styles */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    /* Bootstrap sticky-top z-index */
    background-color: rgba(245, 245, 245, 0.95);
    /* Match body bg with slight transparency */
    backdrop-filter: blur(5px);
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    /* Match note container max-width */
    z-index: 1030;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
    /* Rounded top corners */
}
/* Tiptap Editor Styles */
.tiptap-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
