* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #212529;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #4A6FA5;
}

.search-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}

.search-box {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s;
}

.search-box:focus {
    outline: none;
    border-color: #4A6FA5;
}

.search-btn {
    background: #4A6FA5;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #3a5a8a;
}

.add-btn {
    background: #5C9E6E;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.add-btn:hover {
    background: #4d8a5e;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tabs {
    display: flex;
    gap: 5px;
}

.tab {
    padding: 10px 24px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.tab.active {
    background: #4A6FA5;
    color: white;
}

.tab:hover:not(.active) {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-label {
    color: #6c757d;
    font-size: 14px;
}

.sort-select {
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.book-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f1f3f4;
}

.book-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.book-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.book-cover {
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.book-info {
    flex: 1;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: bold;
}

.status-want { 
    background: #e9ecef; 
    color: #6c757d; 
}

.status-reading { 
    background: #fff3cd; 
    color: #856404; 
}

.status-completed { 
    background: #d1edff; 
    color: #004085; 
}

.book-title {
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 18px;
    color: #212529;
    line-height: 1.3;
}

.book-author {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 10px;
}

.book-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    margin-bottom: 15px;
}

.rating {
    color: #ffc107;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-text {
    color: #6c757d;
    font-weight: normal;
}

.progress {
    color: #fd7e14;
    font-weight: bold;
}

.pages {
    color: #6c757d;
}

.book-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #f1f3f4;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: none;
    border: 1px solid #e9ecef;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #f8f9fa;
    border-color: #4A6FA5;
}