* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f7fa;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2d3748;
    line-height: 1.6;
}

/* Navigation Bar Styles */
.nav {
    background-color: #ffffff;
    height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.book {
    font-weight: 700;
    font-size: 24px;
    color: #1b7a6a;
    margin-left: 12px;
    letter-spacing: -0.5px;
}

.vitlogo {
    border-radius: 6px;
    object-fit: cover;
}

.menu-bar {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    padding: 4px;
}

.menu-bar div {
    width: 100%;
    height: 2px;
    background-color: #2d3748;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-menu {
    display: none;
    background-color: #ffffff;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    padding: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    justify-content: end;
    list-style-type: none;
}

.nav-menu li {
    margin: 16px 0;
}

.nav-menu a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 16px;
}

.nav-menu a:hover {
    color: #1b7a6a;
}

.nav-menu button {
    height: 36px;
    padding: 0 20px;
    font-size: 16px;
    color: #1b7a6a;
    border: 2px solid #1b7a6a;
    background-color: transparent;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-menu button:hover {
    background-color: #1b7a6a;
    color: white;
    transform: translateY(-1px);
}

.nav-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

/* Content Area Styles */
.content {
    padding-top: 88px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
}

.text {
    margin: 0 auto 40px;
    max-width: 800px;
    padding: 0 24px;
}

.text-bold {
    font-size: 36px;
    font-weight: 800;
    color: #1a202c;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.2;
}

.text-thin {
    font-size: 18px;
    color: #4a5568;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Area Styles */
.search {
    margin: 0 auto 40px;
    max-width: 600px;
    padding: 0 24px;
}

.search form {
    display: flex;
    gap: 12px;
}

.search form input {
    flex: 1;
    height: 48px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 16px;
    background-color: white;
    transition: all 0.2s ease;
}

.search form input:focus {
    border-color: #1b7a6a;
    box-shadow: 0 0 0 3px rgba(27, 122, 106, 0.2);
    outline: none;
}

.search form button {
    height: 48px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background-color: #1b7a6a;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search form button:hover {
    background-color: #156758;
    transform: translateY(-1px);
}

/* Search Results Styles */
#search-results {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

#results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.book-card {
    background-color: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.book-card:hover {
    transform: translateY(-4px);
}

#image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

#title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a202c;
}

#author {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 12px;
}

#genre {
    font-size: 14px;
    color: #718096;
    margin-bottom: 12px;
}

#description {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 16px;
    line-height: 1.5;
}

#availability {
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

.available {
    background-color: #c6f6d5;
    color: #22543d;
}

.unavailable {
    background-color: #fed7d7;
    color: #822727;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .text-bold {
        font-size: 28px;
    }
    
    .text-thin {
        font-size: 16px;
    }
    
    .search form {
        flex-direction: column;
    }
    
    .search form input {
        width: 100%;
    }
    
    .search form button {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .menu-bar {
        display: none;
    }
    
    .nav-menu {
        display: block;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
    }
    
    .nav-menu ul {
        display: flex;
        align-items: center;
        gap: 32px;
    }
    
    .nav-menu li {
        margin: 0;
    }
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}