@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --bg: #f8fafc;
    --card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body { 
    font-family: 'Inter', sans-serif; background: var(--bg); 
    color: var(--text-main); margin: 0; padding: 0 0 100px 0; 
}

h1, h2, .brand { font-family: 'Plus Jakarta Sans', sans-serif; }

.container { max-width: 600px; margin: 0 auto; padding: 20px; }

/* Glassmorphism Header */
.app-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    sticky: top; position: sticky; top: 0; z-index: 1000;
    padding: 15px 20px; border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    display: flex; justify-content: space-between; align-items: center;
}

.brand { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -1px; }

/* Search & Filters */
.search-container {
    background: var(--card); border-radius: 16px; padding: 5px 15px;
    display: flex; align-items: center; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    margin: 20px 0; border: 1px solid #e2e8f0;
}
.search-container input { border: none; padding: 12px; width: 100%; outline: none; font-size: 16px; }

/* Grid Layout */
.book-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.book-grid.list-view { grid-template-columns: 1fr; }

.book-card {
    background: var(--card); border-radius: 20px; overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.04);
    transition: transform 0.2s; border: 1px solid #f1f5f9;
}

.book-card img { width: 100%; height: 220px; object-fit: cover; background: #e2e8f0; }

.card-content { padding: 12px; }
.category-label { font-size: 10px; font-weight: 700; color: var(--primary); text-transform: uppercase; margin-bottom: 4px; }
.book-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }

/* Status Badges */
.status { font-size: 11px; display: flex; align-items: center; gap: 5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-available { background: #10b981; }
.dot-loaned { background: #94a3b8; }

/* Bottom Tab Bar */
.bottom-nav {
    position: fixed; bottom: 20px; left: 20px; right: 20px;
    background: #1e293b; border-radius: 24px; padding: 12px;
    display: flex; justify-content: space-around; align-items: center;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
}
.nav-item { color: #94a3b8; text-decoration: none; font-size: 12px; font-weight: 600; text-align: center; }
.nav-item.active { color: white; }

/* Buttons */
.btn-primary { 
    background: var(--primary); color: white; border: none; 
    padding: 12px 20px; border-radius: 12px; font-weight: 600; cursor: pointer; width: 100%;
}