﻿


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



.user-actions {
    display: none;
}

.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


.hero {
    text-align: center;
    padding: 4rem 0;
    color: white;
}

    .hero h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        opacity: 0.9;
    }

.filter-btn {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .filter-btn.active {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
    }

.services {
    padding: 3rem 0;
}

    .services h2 {
        text-align: center;
        margin-bottom: 3rem;
        color: white;
        font-size: 2.5rem;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 2rem;
}


    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.custom-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.stat-wrapper {
    display: flex;
    gap: 60px;
    flex-wrap: nowrap;
    justify-content: center;
}

.custom-search {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .custom-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-bottom: 1rem;
    }

    .custom-search {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }

        .custom-search input {
            flex: 1;
            min-width: 200px;
        }
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.page-content {
    min-height: 80vh;
    padding: 40px 20px;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

    .page-header h1 {
        color: #2c3e50;
        font-size: 2.5rem;
        margin-bottom: 10px;
        background-color: #2c3e50;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .page-header p {
        color: #7f8c8d;
        font-size: 1.1rem;
    }

.stats {
    display: flex;
    justify-content: center;
    gap: 120px;
    margin-bottom: 60px;
    padding: 20px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
}


.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    display: block;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 5px;
}

.filter-section {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    text-decoration: none !important;
    color: #2c3e50 !important;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-color: white;
    cursor: pointer;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
}

    .category-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        text-decoration: none !important;
    }

    .category-btn.active {
        background-color: #0099FF;
        color: white;
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

.search-section {
    margin-top: 40px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}


.search-box {
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    width: 300px;
    transition: all 0.3s ease;
}

    .search-box:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.search-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    background-color: #0099FF;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .search-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.book-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

    .book-card::before {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(45deg, #667eea, #764ba2);
    }

    .book-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        border-color: #667eea;
    }

.book-cover {
    width: 80px;
    height: 120px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    float: left;
    margin-right: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.book-info {
    flex: 1;
}

.book-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.book-author {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 10px;
    font-style: italic;
}

.book-category {
    display: inline-block;
    background-color: #0099FF;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.book-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 10px;
    max-height: 4.5em;
    clear: both;
    text-overflow: ellipsis;
}

    .book-description.full {
        max-height: none;
    }

.book-status {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.status-borrowed {
    background: #f8d7da;
    color: #721c24;
}

.borrow-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .borrow-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    }

    .borrow-btn:disabled {
        background: #6c757d;
        cursor: not-allowed;
    }


.page-header h1 {
    font-size: 2rem;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@media (max-width: 480px) {
    .books-grid {
        padding: 5px 10px;
        margin-left: -5px;
    }

    .book-card {
        margin: 0 5px 15px -20px;
        max-width: 100%;
        transform: translateX(-5px);
    }

    .d-flex.justify-content-end {
        justify-content: center !important;
        margin-top: 15px;
    }
}
