.notebook-container {
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    max-height: none;
    background: linear-gradient(180deg, var(--paper-highlight) 0%, var(--paper-yellow) 18%, var(--paper-yellow) 100%);
    border-radius: 0;
    border: none;
    box-shadow: 0 22px 55px -20px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    /* Enable scrolling for mobile devices */
    overflow: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

@supports (height: 100dvh) {
    .notebook-container {
        min-height: 100dvh;
        height: 100dvh;
    }
}

/* Mobile layout fixes */
@media (max-width: 768px) {
    .notebook-container {
        height: 100% !important;
        min-height: unset !important;
        max-height: none !important;
        display: flex;
        flex-direction: column;
    }
    
    @supports (height: 100dvh) {
        .notebook-container {
            height: 100% !important;
            min-height: unset !important;
            max-height: none !important;
        }
    }
}

.notebook-header {
    background: var(--notebook-brown);
    padding: 1rem 1.25rem;
    border-radius: 0;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.notebook-header .nav-tabs {
    border: none;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.notebook-header .nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 1rem;
    color: var(--text-light-gray);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35);
}

.notebook-header .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 246, 210, 0.18);
    border-color: rgba(255, 246, 210, 0.35);
}

.notebook-header .nav-link.active {
    color: var(--text-dark);
    background: var(--paper-highlight);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 18px rgba(32, 14, 4, 0.35);
}

.notebook-content {
    flex: 1;
    width: 100%;
    background-color: var(--paper-yellow);
    background-image: linear-gradient(
        to bottom,
        transparent 0,
        transparent 29px,
        var(--line-blue) 29px,
        var(--line-blue) 30px
    );
    background-size: 100% 30px;
    background-repeat: repeat;
    background-attachment: local;
    padding: 0;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior: contain;
    min-height: calc(100vh - 100px);
}

.notebook-content::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.notes-area {
    padding-left: 2.25rem;
    padding-right: 1.5rem;
    min-height: calc(100vh - 120px);
    padding-bottom: 100px;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fab-container {
    margin-top: auto;
    padding: 0;
    position: sticky;
    bottom: 1.1rem;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 12;
}

.notebook-footer {
    background: linear-gradient(180deg, rgba(255, 243, 196, 0.9) 0%, rgba(255, 234, 174, 1) 100%);
    padding: 0.3rem 1rem 0.5rem;
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-top: auto;
    border-top: 1px solid var(--border-blue);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.search-container {
    margin-bottom: 0.25rem;
}

.brand-container {
    text-align: center;
    padding-bottom: 0.5rem;
}

#quick-note-smart-reminder{
    margin:auto;
}
