/* Floating toggle button */
.search-toggle-btn {
    position: fixed;
    bottom: 70px;
    right: 5px;
    width: 40px;
    height: 40px;
	padding-bottom: 2px;
    border: none;
    border-radius: 50%;
    background: #2ABA66;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: 0.2s ease;
}

.search-toggle-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.search-toggle-btn:active {
    transform: scale(0.98);
}

/* Hidden by default */
.ebook-search-bar {
    position: fixed;
    bottom: 5px;
    left: 12px;
    right: 12px;
    background: #fff;
    padding: 12px;
    z-index: 9999;
    display: none;
    gap: 10px;
    align-items: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    border-radius: 12px;
    box-sizing: border-box;
}

/* Show when active */
.ebook-search-bar.active {
    display: flex;
}

.ebook-search-bar input {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid #2ABA66;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.ebook-search-bar input:focus {
    box-shadow: 0 0 0 3px rgba(42, 186, 102, 0.15);
}

.ebook-search-bar button {
    padding: 12px 20px;
    background: #2ABA66;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
}

.ebook-search-bar button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.ebook-search-bar button:active {
    transform: translateY(0);
}