/* assets/css/lista_livros.css */

.book-list-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #fff;
    transition: box-shadow 0.2s ease-in-out;
    margin-bottom: 1rem;
}

.book-list-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.book-cover {
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.book-details {
    flex-grow: 1;
}

.book-details .book-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.book-details .book-author {
    font-size: 0.9rem;
    color: #6b7280;
}

.book-availability {
    flex-shrink: 0;
    width: 160px;
    text-align: center;
}

.book-actions {
    flex-shrink: 0;
    width: 220px;
    text-align: end;
}

/* Responsividade para telemóveis */
@media (max-width: 767.98px) {
    .book-list-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .book-cover {
        margin-right: 0;
        margin-bottom: 1rem;
        align-self: center;
    }
    .book-availability, .book-actions {
        width: 100%;
        text-align: left;
        margin-top: 1rem;
    }
    .book-actions .btn-group {
        width: 100%;
        display: flex;
    }
    .book-actions .btn-group .btn {
        flex-grow: 1;
    }
}
