.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.book-card {
    background: linear-gradient(145deg, #f0f8ff, #e6f7ff);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-card .cover img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.book-card .details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1rem;
    justify-content: space-between;
}

.book-card h4 {
    margin-top: 0;
    color: #003366;
}

.book-card .actions {
    margin-top: auto;
    padding: 0rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.book-card .actions .button {
    flex: 1;
    text-align: center;
}

.button.view {border: none; background-color: #4CAF50; color: white; }
.button.edit {border: none; background-color: #2196F3; color: white; }
.button.delete {border: none; background-color: #f44336; color: white; }
.button.cart {border: none; background-color: #ff9800; color: white; }
.button.new-book {border: none; background-color: #673ab7; color: white; }
.button.show-cart {border: none; background-color: #ff9800; color: white; }

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap; /* Optional for mobile responsiveness */
}
.action-bar h3 {
    margin: 0;
    font-size: 3.5rem;
    color: black;
}

.header-actions .button {
    margin-left: auto;
}

.button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

