/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #333;
    display: inline-block;
    margin-right: 20px;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: flex-end;
}

/* Book Log Button */
#newBookBtn, #dashboardBtn {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#newBookBtn:hover, #dashboardBtn:hover {
    background-color: #0056b3;
}

#logoutButton {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#logoutButton:hover {
    opacity: 0.8;
}

/* Book Entry Styles */
.book-entry {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    box-sizing: border-box;
}

.book-image-container {
    position: relative;
    display: inline-block;
    margin-right: 20px;
}

.book-entry img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
}

.book-actions {
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
}

.icon-button {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.icon-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.edit-button {
    color: #007bff;
}

.delete-button {
    color: #dc3545;
}

.book-info {
    flex-grow: 1;
}

.book-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
}

.reading-time {
    font-size: 1em;
    color: #555;
}

/* Rating Stars */
.star-rating-display {
    font-size: 1.2em;
}

.book-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.favorite-things {
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .book-entry {
        flex-direction: column;
        align-items: center;
    }

    .book-title-row {
        flex-direction: column;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    #newBookBtn, #dashboardBtn, #logoutButton {
        margin-bottom: 10px;
    }
}
