@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --text-color: #333;
    --primary-color: #4a90e2;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 1.75rem;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    margin-bottom: 2rem;
}

h1,
h2,
h3 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: 0;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="search"] {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: #357abd;
    transform: translateY(-2px);
}

.book-list {
    list-style: none;
    padding: 0;
}

.book-item {
    background: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.book-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
}

.book-item a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: block;
    width: 100%;
    height: 100%;
}

.detail-section {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
}

.detail-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.flash-messages {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.flash-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    color: #fff;
}

.flash-message.error {
    background: rgba(220, 53, 69, 0.8);
}

.flash-message.success {
    background: rgba(40, 167, 69, 0.8);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}