/* Notes Panel */
.notes-drawer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
}

.notes-drawer.translated-down {
    transform: translateY(120%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .notes-drawer {
        width: 100%;
        height: 60vh;
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 20px 20px 0 0;
    }
}

.notes-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notes-header h3 {
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notes-toolbar {
    padding: 0.8rem;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#student-notes-area {
    flex: 1;
    border: none;
    padding: 1rem;
    resize: none;
    background: var(--bg-body);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    outline: none;
}

.notes-status {
    padding: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: right;
    background: var(--glass-bg);
    border-top: 1px solid var(--border-color);
}

/* Floating Action Button (FAB) */
.fab-notes {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.2s ease, opacity 0.3s;
}

.fab-notes:hover {
    transform: scale(1.1);
}

.fab-notes.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.btn-icon-small {
    background: none;
    border: 1px solid var(--border-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.btn-icon-small:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}