/* styles.css */
/* Reset i podstawowe style */
/* Remove all link decorations globally */
/* Book carousel styles */
/* Modal styles */
/* Login Form Styles */
/* Registration Form */
/* Book Detail Page Styles */
/* Badge styles */
/* Library Page Styles */
/* Profile Page Styles */
.books-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}
.view-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 0.5rem;
    cursor: pointer;
}

.view-btn.active {
    background: #f0f0f0;
}
.price-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.price-inputs input {
    width: 80px;
    padding: 0.5rem;
}

.range-slider {
    height: 4px;
    margin: 1rem 0;
}

/* View options */
.view-options {
    display: flex;
    gap: 0.5rem;
}
.browse-container {
    display: flex;
    gap: 2rem;
}

.filters-sidebar {
    flex: 0 0 280px;
}

.books-listing {
    flex: 1;
}

/* Filter groups */
.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}



.btn.btn-sm.btn-edit-status{color: white;background-color: #2a5885;border-radius: 10px;}
.btn.btn-sm.btn-remove{color: white; background-color: #2a5885;border-radius: 10px;}
.book-actions2 {
    display: flex;
    padding: 1rem 1rem 1rem;

    gap: 0.5rem;
}

.profile-page {
    padding: 2rem 0;
}

.profile-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.profile-avatar {
    position: relative;
    width: 150px;
    height: 150px;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #4a6fa5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
}

.profile-info h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem;
}

.email {
    color: #666;
    margin: 0 0 1rem;
}

.member-since {
    color: #888;
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #4a6fa5;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.badge.admin {
    background: #d32f2f;
    color: white;
}

.badge.author {
    background: #388e3c;
    color: white;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
}

.tab-btn.active {
    color: #4a6fa5;
    border-bottom-color: #4a6fa5;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Book Status */
.book-status {
    position: relative;
    bottom: 5%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem;
    text-align: center;
    font-size: 0.8rem;
}

.book-status.unread {
    background: rgba(156, 39, 176);
}

.book-status.reading {
    background: rgba(255, 152, 0);
}

.book-status.finished {
    background: rgba(76, 175, 80);
}

/* Rating Stars */
.rating {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-input {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
}

.rating-input i {
    margin-right: 0.25rem;
}

.rating-input i.filled {
    color: #ffc107;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 0;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #4a6fa5;
}

.empty-state h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.empty-state p {
    margin: 0 0 1.5rem;
    font-size: 1rem;
}

/* Settings Form */
.settings-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
}

.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #333;
}

.library-page {
    padding: 2rem 0;
}

.library-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2rem;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-button.active {
    border-bottom-color: #2a5885;
    font-weight: bold;
}

.tab-content {
    display: none;
    padding: 1rem 0;
}

.tab-content.active {
    display: block;
}

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

.library-book-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

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

.book-cover {
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    font-size: 2rem;
    font-weight: bold;
    color: #666;
}

.book-info {
    padding: 1rem;
}

.book-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-info .author {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.book-status {
    margin-top: 0.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.status-badge.unread {
    background: #f1c40f;
    color: #000;
}

.status-badge.reading {
    background: #3498db;
    color: #fff;
}

.status-badge.finished {
    background: #2ecc71;
    color: #fff;
}

.rating {
    color: #f39c12;
    margin-left: 0.5rem;
}

.book-actions {
    display: flex;
    padding: 1rem 1rem 1rem;
    height: 5rem;
    width: 13rem;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.empty-state p {
    margin-bottom: 1rem;
    color: #666;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}



.badge-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.badge:hover::after {
    opacity: 1;
}

/* Specific badge types */
.badge.new {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 2px 5px rgba(74, 172, 254, 0.3);
}

.badge.popular {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 2px 5px rgba(240, 147, 251, 0.3);
    animation: pulse 2s infinite;
}

.badge.discount {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 2px 5px rgba(67, 233, 123, 0.3);
}

/* Animation for popular badge */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Position badges on book cards */
.book-card .badge-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
    
    .book-card .badge-container {
        top: 5px;
        right: 5px;
    }
}






.book-detail {
    padding: 2rem 0;
}

.book-header {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.book-cover-container {
    position: relative;
    height: 350px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.main-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.book-meta h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.author {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #7f8c8d;
}

.book-badges {
    margin-bottom: 1.5rem;
}

.book-badges .badge {
    margin-right: 0.5rem;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
}

.book-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.book-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-genres {
    margin-bottom: 2rem;
    color: #555;
}

.book-actions {
    display: flex;
    gap: 2rem;
}

.btn-favorite {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #555;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-favorite:hover {
    background: #f1f1f1;
}

.book-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    padding-bottom: 20px;
}

.book-description {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.book-description h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

.book-description p {
    line-height: 1.8;
    color: #555;
}

.book-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.author-info,
.similar-books {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.author-info h3,
.similar-books h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.similar-books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.similar-book {
    display: block;
    transition: transform 0.3s;
}

.similar-book:hover {
    transform: translateY(-3px);
}

.similar-book img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.similar-book span {
    display: block;
    font-size: 0.9rem;
    color: #2c3e50;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .book-header {
        grid-template-columns: 1fr;
    }

    .book-content {
        grid-template-columns: 1fr;
    }

    .similar-books-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .book-actions {
        flex-direction: column;
    }

    .similar-books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

#2fa-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#2fa-modal .modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#2fa-code {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
#register-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

#password-strength {
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.strength-1 {
    color: #ff0000;
}

.strength-2 {
    color: #ff6600;
}

.strength-3 {
    color: #0099ff;
}

.strength-4 {
    color: #00aa00;
}

.terms {
    font-size: 0.9rem;
    margin: 1rem 0;
}
#login-section,
#verify-section {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#verify-section {
    display: none;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button[type="submit"] {
    background: #0066cc;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
}

button[type="submit"]:hover {
    background: #0052a3;
}

.verification-code {
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
    text-align: center;
    font-family: monospace;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 300px;
    border-radius: 5px;
}

.close-modal {
    float: right;
    cursor: pointer;
    font-size: 20px;
}

/* Auth button styles */
.auth-button {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.auth-button:hover {
    background-color: #45a049;
}

#auth-section {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}


.genres-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.genre-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.genre-card:hover {
    transform: translateY(-3px);
}

.genre-card h3 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.genre-link {
    text-decoration: none;
    color: inherit;
}
.book-carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.books-container {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
            /* Prevent wrapping */
}

.books-grid {
    display: inline-flex; /* Changed from flex to inline-flex */
    transition: transform 0.5s ease;
    padding: 10px 0;
    white-space: nowrap; /* Prevent wrapping */
}

.carousel-arrow {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #2c3e50;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    background: #3498db;
    color: white;
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.book-card {
    flex: 3 0 calc(20% - 25px);
    margin-right: 20px;
    box-sizing: border-box;
    display: inline-block;
    white-space: normal;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .book-card {
        min-width: 200px;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .book-card {
        min-width: 180px;
    }

    .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}
a {
    text-decoration: none;
    color: inherit;
    outline: none;
}

/* Visited links */
a:visited {
    color: none ;
}

/* Hover/focus states */
a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
    outline: none;
}

/* Active/pressed state */
a:active {
    color: inherit;
}

/* Specific exceptions (optional) */
.nav-link,
.btn-link {
    /* Add back any specific styling for navigation/button links */
    transition: all 0.3s ease;
}

/* For accessibility - focus indicators (recommended) */
a:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.book-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
/* Header styles */
.main-header {
    background: #7995b0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Footer styles */
.main-footer {
    background: #2c3e50;
    color: #fff;
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 1rem;
    display: none;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}
.book-card {
    transition: transform 0.2s ease;
}

.book-card:hover {
    transform: translateY(-5px);
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Kontener główny */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Nagłówek */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
}

/* Nawigacja */
.main-nav .nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    position: relative;
    left: 15vw;
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3498db;
}

/* Sekcje główne */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

/* Siatka książek */
.books-grid {
    
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
   
    padding: 1rem 0;
}

.book-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.book-cover {
    height: 300px;
    background-color: #ecf0f1;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info {
    padding: 1.5rem;
}

.book-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.book-author {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge.new {
    background: #27ae60;
    color: white;
}

.badge.popular {
    background: #2980b9;
    color: white;
}

/* Sekcja gatunków */
.genres-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.genre-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.genre-card h3 {
    font-size: 1.1rem;
    color: #3498db;
    margin-bottom: 0.5rem;
}

/* Formularz logowania */
.login-section {
    max-width: 400px;
    margin: 0 auto;
}

.login-form {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #bdc3c7;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
}

.form-label {
    position: absolute;
    left: 0.8rem;
    top: 0.8rem;
    color: #7f8c8d;
    pointer-events: none;
    transition: 0.3s ease all;
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
    top: -0.6rem;
    left: 0.5rem;
    font-size: 0.8rem;
    background: #fff;
    padding: 0 0.3rem;
    color: #3498db;
}

.btn-primary {
    background: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #2980b9;
}

/* Komunikaty błędów */
.global-error {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.loading-placeholder {
    text-align: center;
    color: #7f8c8d;
    padding: 2rem;
}

/* Responsywność */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .book-cover {
        height: 250px;
    }

    .login-form {
        padding: 1.5rem;
    }
}