.notebooks-container {
    padding: 20px;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.note-card {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--glass);
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.note-card h4 {
    margin: 0 0 10px 0;
    color: var(--accent-text);
}

.note-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.note-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--muted);
}

.notebook-actions .small-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 20px;
}

.notebook-menu {
    position: absolute;
    background: var(--panel);
    border: 1px solid var(--glass);
    border-radius: var(--radius);
    z-index: 10;
    overflow: hidden;
}

.notebook-menu button {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--accent-text);
    text-align: left;
    cursor: pointer;
}

.notebook-menu button:hover {
    background: var(--glass);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--panel);
    padding: 30px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 400px;
}

.modal-content h3 {
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid var(--glass);
    background: var(--background);
    color: var(--accent-text);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.notebook-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 20px 0;
}

.notebook-list-item {
    padding: 15px;
    border-bottom: 1px solid var(--glass);
    cursor: pointer;
}

.notebook-list-item:hover {
    background: var(--glass);
}

.toast-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toast-message.show {
  opacity: 1;
}

.question-card {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 10px;
    border: 1px solid var(--glass);
}

.question-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}


@media (max-width: 768px) {
    .notes-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-head div {
        margin-top: 10px;
    }

    .practice-modal .modal-content {
        height: 100%;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }
}