body { font-family: sans-serif; background-color: #f4f4f4; margin: 0; color: #333; }
.wrapper { width: 100%; min-height: 100vh; }
.container { width: 90%; max-width: 1000px; margin: 0 auto; padding-bottom: 50px; }
.hidden { display: none !important; }

.header { background-color: #343a40; color: #fff; padding: 15px 0; margin-bottom: 30px; }
.nav { display: flex; gap: 15px; align-items: center; }
.logo { margin: 0; font-size: 24px; }

.control { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.btn { padding: 10px 20px; background-color: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; transition: opacity 0.2s; }
.btn:hover { opacity: 0.9; }

.btn-del { background-color: #dc3545; padding: 5px 10px; font-size: 12px; margin-left: 10px; }
.btn-edit { background-color: #ffc107; color: black; padding: 5px 10px; font-size: 12px; margin-left: 5px; }

.control-panel { display: flex; gap: 20px; margin-bottom: 20px; }
.col-half { flex: 1; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.subtitle { margin-top: 0; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.row { display: flex; gap: 10px; }

.author-card {
    background: white;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.author-header {
    background: #e9ecef;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
}

.book-list { list-style: none; padding: 0; margin: 0; }
.book-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.book-item:last-child { border-bottom: none; }

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
    .control-panel { flex-direction: column; }
}