* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background-color: #FFFFFF;
    color: #37352f;
    min-height: 100vh;
    max-width: 100vw;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1rem;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.controls {
    text-align: center;
    margin-bottom: 30px;
}

.new-book-btn {
    font-size: 14px;
    padding: 6px 12px;
    border: 1px solid #e3e2df;
    background-color: #FFFFFF;
    border-radius: 6px;
    color: #37352f;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.new-book-btn:hover {
    background-color: #f0efeb;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.book-card {
    background-color: #ffff;
    border: 1px solid #e3e2df;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.book-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 5px;
}

.book-author {
    font-size: 1em;
    margin-bottom: 8px;
}

.book-pages {
    font-size: 0.9em;
    margin-bottom: 12px;
}

.book-status {
    display: inline-block;
    margin-bottom: 12px;
}

.status-read {
    background-color: #e6f4ea;
    color: #317853;
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 0.8em;
    font-weight: 500;
    user-select: none;
}

.status-unread {
    background-color: #fbeaea;
    color: #9b3b3b;
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 0.8em;
    font-weight: 500;
    user-select: none;
}

.book-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    font-size: 14px;
    padding: 6px 12px;
    background-color: #FFFFFF;
    border: 1px solid #e3e2df;
    border-radius: 6px;
    color: #37352f;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-toggle:hover {
    background-color: #e6f4f6;
    color: #0d6e78;
    border: 1px solid #b0d4d9;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* .btn-toggle:hover {
    background-color: #d0e9ec;
    border-color: #8bc1c5;
} */

.btn-remove:hover {
    background-color: #f9e6e8;
    color: #8b2e34;
    border: 1px solid #e7b9bc;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    position: relative;
    color: #37352f;
    user-select: text;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-weight: bold;
    font-size: 1.25rem;
    color: #37352f;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #37352f;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s ease;
}

.close-btn:hover {
    color: #37352f;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: #37352F;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="checkbox"] {
    font-size: 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 8px 12px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: #868686;
    box-shadow: 0 0 0 2px rgba(134, 134, 134, 0.15);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #37352f;
}

.checkbox-group label {
    text-align: center;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    transform: scale(1.2);
    cursor: pointer;
}

.submit-btn {
    margin-top: 1.5rem;
    width: 100%;
    padding: 12px 0;
    background: #FFFFFF;
    border: 1.5px solid #e3e2df;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    color: #37352f;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #f0efeb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}


/* .book-card,
.btn {
    box-shadow: none;
    border: 1px solid #e1e1e1;
    background: #fff;
    border-radius: 10px;
    transition: box-shadow 0.2s ease;
} */

.book-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.07);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.empty-state h2 {
    margin-bottom: 10px;
    font-size: 1.8em;
}

.empty-state p {
    font-size: 1.1em;
    opacity: 0.8;
}