/* تنسيق الصفحة العام والخلفية */
body {
    background-color: #f5f5dc; /* لون كريمي كلاسيكي */
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png'); /* زخرفة ورقية */
    margin: 0;
    padding: 0;
    margin-right: 0; /* إزاحة المحتوى لليمين لترك مساحة للقائمة */
    font-family: Arial, sans-serif;
    direction: rtl;
}

/* تنسيق الهيدر */
header {
    background-color: #5d4037;
    color: white;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
}

/* تنسيق القائمة الجانبية المزخرفة */
.sidebar {
    height: 100%;
    width: 200px;
    position: fixed;
    top: 0;
    right: 0;
    background-color: #5d4037; /* بني خشبي */
    border-left: 5px double #d4af37; /* إطار ذهبي مزدوج */
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    padding-top: 20px;
    color: white;
    text-align: center;
    z-index: 1000;
}

.sidebar h2 {
    color: #d4af37; /* ذهبي */
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
    margin: 0 20px 20px 20px;
    font-size: 22px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 15px;
    transition: 0.3s;
}

.sidebar ul li a:hover {
    background-color: #4e342e;
    color: #d4af37;
}

/* تنسيق بطاقات الكتب */
.books-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.book-card {
    background: white;
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.book-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
}

.btn {
    display: inline-block;
    background-color: #5d4037;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}
.sidebar {
    right: -210px; /* إخفاء القائمة خلف الشاشة من اليمين */
    transition: 0.5s; /* سرعة الانزلاق */
}

.sidebar.active {
    right: 0; /* إظهار القائمة عند تفعيلها */
}

.open-btn {
    font-size: 30px;
    cursor: pointer;
    background-color: #5d4037;
    color: white;
    padding: 10px 15px;
    border: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    border-radius: 5px;
}

.close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 30px;
    color: #d4af37 !important;
    text-decoration: none;
}
/* شريط التواصل الاجتماعي */
.social-sidebar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.social-sidebar a {
    text-decoration: none;
    color: white;
    padding: 15px;
    font-size: 20px;
    text-align: center;
    transition: 0.3s;
    border-radius: 0 5px 5px 0;
    margin: 5px 0;
}

.facebook { background-color: #3b5998; }
.instagram { background-color: #e4405f; }
.twitter { background-color: #1da1f2; }
.close-btn {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 36px;
    color: #d4af37 !important;
    text-decoration: none;
    cursor: pointer;
}
/* تنسيق أسفل الموقع (Footer) */
.site-footer {
    background-color: #4e342e; /* بني أغمق قليلاً من الهيدر */
    color: #f5f5dc; /* لون كريمي للنصوص */
    padding: 40px 20px 20px 20px;
    margin-top: 50px;
    border-top: 3px solid #d4af37; /* خط ذهبي في الأعلى */
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 10px;
    text-align: right;
}

.footer-section h3 {
    color: #d4af37; /* لون ذهبي للعناوين */
    border-bottom: 1px solid #d4af37;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li::before {
    content: "•";
    color: #d4af37;
    margin-left: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 14px;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    text-align: center;
}

#searchInput {
    width: 80%;
    margin: 20px auto;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
}

.book-card {
    background: white;
    margin: 10px auto;
    padding: 15px;
    width: 85%;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.dark-theme {
    background-color: #121212 !important;
    color: #ffffff !important;
}
.dark-theme .book-card {
    background-color: #1e1e1e !important;
    color: white !important;
    box-shadow: 0 2px 10px rgba(255,255,255,0.05);
}
.like-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 15px;
    transition: 0.3s;
}
.like-btn.active {
    background: #ffe6e6;
    border-color: #ff4d4d;
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-nav a {
    text-decoration: none;
    color: #555;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
