.filters-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.filters input,
.filters select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    outline: none;
    max-width: 250px;
}

.filters select option {
    background-color: #1a1a1a;
    color: white;
    padding: 10px;
}

.notes-grid-section {
    flex: 1;
    padding-bottom: 20px;
}

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

.note-card {
    padding: 24px;
    border-radius: 18px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);

    display: flex;
    flex-direction: column;
    height: 100%;
    transition: 0.3s ease;
}

.note-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.unavailable {
    opacity: 0.5;
    pointer-events: none;
}

.note-subject {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2em;
}

.note-info {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 5px;
}

.note-btn {
    margin-top: auto;

    display: block;
    text-align: center;
    padding: 12px;
    background: white;
    color: black;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s;
}

.note-btn:hover {
    background: var(--primary-gradient);
    color: white;
}

@media (max-width: 768px) {

    .filters {
        padding: 10px 0 20px;
    }

    .filters-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0 15px;
    }

    .filters input,
    .filters select {
        width: 100%;
        max-width: 100%;
        padding: 12px;
        font-size: 16px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
    }

    .notes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
        grid-auto-rows: auto;
    }

    .note-card {
        padding: 20px;
        min-height: auto;
        height: auto;
    }

    .note-subject {
        font-size: 1.1rem;
        margin-bottom: 12px;
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }

    .note-btn {
        margin-top: 15px;
        width: 100%;
        padding: 14px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .notes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters-row {
        flex-wrap: wrap;
        justify-content: center;
    }
}