 /* Global Styles */
        :root {
            --primary: #6c5ce7;
            --primary-light: #a29bfe;
            --secondary: #00cec9;
            --dark: #2d3436;
            --light: #f5f6fa;
            --success: #00b894;
            --warning: #fdcb6e;
            --danger: #d63031;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: var(--light);
            color: var(--dark);
            line-height: 1.6;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .btn {
            display: inline-block;
            padding: 10px 20px;
            border-radius: 5px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            text-align: center;
        }

        .btn-primary {
            background-color: var(--primary);
            color: white;
        }

        .btn-primary:hover {
            background-color: var(--primary-light);
            transform: translateY(-2px);
        }

        .btn-secondary {
            background-color: var(--secondary);
            color: white;
        }

        .btn-secondary:hover {
            opacity: 0.9;
            transform: translateY(-2px);
        }

        .btn-outline {
            background-color: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
        }

        .btn-outline:hover {
            background-color: var(--primary);
            color: white;
        }

        .section-title {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            color: var(--dark);
            position: relative;
            display: inline-block;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 50%;
            height: 4px;
            background-color: var(--primary);
            border-radius: 2px;
        }

        /* Header Styles */
        header {
            background-color: white;
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 0;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary);
            display: flex;
            align-items: center;
        }

        .logo i {
            margin-right: 10px;
        }

        .nav-links {
            display: flex;
            list-style: none;
        }

        .nav-links li {
            margin-left: 30px;
        }

        .nav-links a {
            font-weight: 600;
            transition: var(--transition);
            position: relative;
        }

        .nav-links a:hover {
            color: var(--primary);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--primary);
            transition: var(--transition);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .user-actions {
            display: flex;
            align-items: center;
        }

        .user-actions a {
            margin-left: 20px;
            font-weight: 600;
        }

        .user-actions .btn {
            margin-left: 20px;
        }

        .mobile-menu-btn {
            display: none;
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: white;
            padding: 80px 0;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
            opacity: 0.1;
        }

        .hero-content {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
        }

        .hero-text {
            flex: 1;
            min-width: 300px;
            padding-right: 20px;
        }

        .hero-text h1 {
            font-size: 3rem;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .hero-text p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            opacity: 0.9;
        }

        .hero-image {
            flex: 1;
            min-width: 300px;
            text-align: center;
        }

        .hero-image img {
            max-width: 100%;
            height: auto;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            transform: perspective(1000px) rotateY(-10deg);
            transition: var(--transition);
        }

        .hero-image img:hover {
            transform: perspective(1000px) rotateY(0deg);
        }

        /* Categories Section */
        .categories {
            padding: 80px 0;
        }

        .category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }

        .category-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            text-align: center;
            padding: 20px;
        }

        .category-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }

        .category-card i {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 15px;
        }

        .category-card h3 {
            font-size: 1.2rem;
            margin-bottom: 10px;
        }

        .category-card p {
            color: #666;
            font-size: 0.9rem;
        }

        /* Featured Books Section */
        .featured-books {
            padding: 80px 0;
            background-color: #f9f9f9;
        }

        .book-carousel {
            position: relative;
            margin-top: 40px;
        }

        .carousel-container {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            gap: 30px;
            padding: 20px 0;
            scrollbar-width: none; /* Firefox */
        }

        .carousel-container::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Opera */
        }

        .book-card {
            flex: 0 0 250px;
            scroll-snap-align: start;
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .book-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .book-cover {
            height: 300px;
            overflow: hidden;
        }

        .book-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .book-card:hover .book-cover img {
            transform: scale(1.05);
        }

        .book-info {
            padding: 20px;
        }

        .book-info h3 {
            font-size: 1.1rem;
            margin-bottom: 5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .book-info .author {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 10px;
        }

        .book-info .price {
            font-weight: 700;
            color: var(--primary);
            font-size: 1.2rem;
            margin-bottom: 15px;
        }

        .book-actions {
            display: flex;
            justify-content: space-between;
        }

        .book-actions .btn {
            padding: 8px 15px;
            font-size: 0.9rem;
        }

        .carousel-nav {
            display: flex;
            justify-content: center;
            margin-top: 20px;
            gap: 10px;
        }

        .carousel-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: #ddd;
            cursor: pointer;
            transition: var(--transition);
        }

        .carousel-dot.active {
            background-color: var(--primary);
        }

        /* Books Listing Page */
        .books-listing {
            padding: 80px 0;
        }

        .filter-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 20px;
        }

        .search-box {
            flex: 1;
            min-width: 250px;
            position: relative;
        }

        .search-box input {
            width: 100%;
            padding: 12px 20px;
            border-radius: 30px;
            border: 1px solid #ddd;
            font-size: 1rem;
            padding-left: 45px;
            transition: var(--transition);
        }

        .search-box input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
        }

        .search-box i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #666;
        }

        .sort-options select {
            padding: 12px 20px;
            border-radius: 5px;
            border: 1px solid #ddd;
            font-size: 1rem;
            background-color: white;
            cursor: pointer;
        }

        .books-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 30px;
        }

        /* Book Detail Page */
        .book-detail {
            padding: 80px 0;
        }

        .book-detail-container {
            display: flex;
            gap: 40px;
            flex-wrap: wrap;
        }

        .book-cover-large {
            flex: 1;
            min-width: 300px;
            max-width: 400px;
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }

        .book-cover-large img {
            width: 100%;
            height: auto;
            display: block;
        }

        .book-detail-content {
            flex: 2;
            min-width: 300px;
        }

        .book-detail-content h1 {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: var(--dark);
        }

        .book-detail-content .author {
            font-size: 1.2rem;
            color: #666;
            margin-bottom: 20px;
            display: block;
        }

        .price-tag {
            font-size: 1.8rem;
            color: var(--primary);
            font-weight: 700;
            margin: 20px 0;
        }

        .book-description {
            margin: 30px 0;
            line-height: 1.8;
        }

        .book-meta {
            display: flex;
            gap: 20px;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #666;
        }

        .purchase-options {
            margin-top: 40px;
        }

        .purchase-options .btn {
            margin-right: 15px;
            margin-bottom: 15px;
        }


        .user-profile {
            display: flex;
            align-items: center;
            margin-bottom: 30px;
            gap: 15px;
        }

        .user-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            font-weight: bold;
        }

        .user-info h3 {
            font-size: 1.2rem;
            margin-bottom: 5px;
        }

        .user-info p {
            color: #666;
            font-size: 0.9rem;
        }

        .dashboard-menu {
            list-style: none;
        }

        .dashboard-menu li {
            margin-bottom: 10px;
        }

        .dashboard-menu a {
            display: block;
            padding: 12px 15px;
            border-radius: 5px;
            transition: var(--transition);
            font-weight: 500;
        }

        .dashboard-menu a:hover, .dashboard-menu a.active {
            background-color: var(--primary-light);
            color: white;
        }

        .dashboard-menu i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
        }

        .main-content {
            flex: 3;
            min-width: 300px;
        }

        .dashboard-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .dashboard-title {
            font-size: 1.8rem;
            color: var(--dark);
        }

        .library-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
        }

        .library-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .library-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .library-cover {
            height: 180px;
            overflow: hidden;
        }

        .library-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .library-info {
            padding: 15px;
        }

        .library-info h3 {
            font-size: 1rem;
            margin-bottom: 5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .library-info .author {
            font-size: 0.8rem;
            color: #666;
            margin-bottom: 10px;
        }

        .library-actions {
            display: flex;
            justify-content: space-between;
        }

        .library-actions .btn {
            padding: 6px 12px;
            font-size: 0.8rem;
        }

        /* Footer */
        footer {
            background-color: var(--dark);
            color: white;
            padding: 60px 0 20px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-column h3 {
            font-size: 1.2rem;
            margin-bottom: 20px;
            position: relative;
        }

        .footer-column h3::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 40px;
            height: 3px;
            background-color: var(--primary);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 10px;
        }

        .footer-links a {
            color: #ddd;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--primary-light);
            padding-left: 5px;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.1);
            transition: var(--transition);
        }

        .social-links a:hover {
            background-color: var(--primary);
            transform: translateY(-3px);
        }

        .copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    font-size: 1rem;
    background-color: #111; /* Optional: Add subtle background */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
}


        /* Responsive Styles */
        @media (max-width: 992px) {
            .hero-text h1 {
                font-size: 2.5rem;
            }
            
            .section-title {
                font-size: 2rem;
            }
        }

        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
            }
            
            .nav-links {
                position: fixed;
                top: 80px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 80px);
                background-color: white;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                transition: var(--transition);
                box-shadow: var(--shadow);
            }
            
            .nav-links.active {
                left: 0;
            }
            
            .nav-links li {
                margin: 15px 0;
            }
            
            .hero-content {
                flex-direction: column;
                text-align: center;
            }
            
            .hero-text {
                padding-right: 0;
                margin-bottom: 40px;
            }
            
            .hero-image img {
                transform: none;
            }
            
            .hero-image img:hover {
                transform: none;
            }
            
            .book-detail-container {
                flex-direction: column;
            }
            
            .book-cover-large {
                max-width: 100%;
                margin: 0 auto;
            }
        }

        @media (max-width: 576px) {
            .hero-text h1 {
                font-size: 2rem;
            }
            
            .btn {
                padding: 8px 15px;
                font-size: 0.9rem;
            }
            
            .section-title {
                font-size: 1.8rem;
            }
            
            .filter-bar {
                flex-direction: column;
                align-items: stretch;
            }
            
            .search-box {
                min-width: 100%;
            }
        }


.feedback {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.feedback-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.feedback-form .form-group {
    margin-bottom: 20px;
}

/* ===== LOGIN INPUT FIX ===== */

/* ===== FORM INPUTS WITH ICON ===== */

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(5px);
    color: #777;
    font-size: 14px;
    pointer-events: none;
}

/* INPUT */
.input-field {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
}


textarea.input-field {
    padding-top: 12px;
    min-height: 100px;
}


input,
textarea,
select {
    appearance: none;
    -webkit-appearance: none;
}

/* FOCUS */
.input-field:focus {
    border-color: #6c5ce7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(108,92,231,0.1);
}


.feedback-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.feedback-form input,
.feedback-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}
.super-categories {
    padding: 80px 0;
    background-color: #ffffff;
}

.super-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.super-category-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.super-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.super-category-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.super-category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.super-category-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}
.about {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 280px;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.about-text ul {
    margin: 15px 0;
    padding-left: 20px;
}

.about-text ul li {
    margin-bottom: 10px;
}

.about-image {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
/* ========== LOGIN PAGE STYLES ========== */

.login-container {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
    padding: 60px 20px;
    background-color: #f9f9f9;
    gap: 40px;
}

.left-section, .right-section {
    flex: 1 1 400px;
    background-color: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
}

.left-section {
    max-width: 600px;
}

.right-section {
    background: linear-gradient(to right, #6c5ce7, #a29bfe);
    color: white;
    text-align: left;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.logo i {
    margin-right: 10px;
    color: var(--primary);
}

h2, h3, h4 {
    margin-bottom: 10px;
}

.welcome-text {
    margin-bottom: 25px;
    font-size: 1rem;
    color: #444;
}

.error-message {
    background-color: #ffe6e6;
    color: #d63031;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}





.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.login-btn {
    background-color: var(--primary);
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: var(--primary-light);
}

.social-login {
    text-align: center;
    margin: 20px 0 10px;
    font-weight: bold;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #eee;
    color: #555;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary);
    color: white;
}

.signup-link {
    text-align: center;
    margin-top: 15px;
    font-size: 0.95rem;
}

.features {
    margin-top: 30px;
}

.feature {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.feature i {
    font-size: 1.5rem;
    color: white;
}

.feature h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.feature p {
    font-size: 0.95rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        padding: 30px 15px;
    }
}




.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.book-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.book-cover img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}
.book-info h3 {
  margin: 0.5rem 0;
}
.book-actions {
  margin-top: 10px;
}
.btn {
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  background: #007bff;
  color: #fff;
  border-radius: 4px;
  margin-right: 5px;
}
.btn-outline {
  background: transparent;
  border: 1px solid #007bff;
  color: #007bff;
}


.btn {
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #a71d2a;
}

/* ===== CLEAN DASHBOARD LAYOUT ===== */

.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 80px); /* subtract header height */
}

/* Sidebar */
.dashboard-sidebar {
    width: 250px;
    background: #1e293b;
    color: white;
    padding: 20px;
}

.dashboard-sidebar h3 {
    margin-bottom: 20px;
}

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

.dashboard-sidebar ul li {
    margin-bottom: 15px;
}

.dashboard-sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 6px;
    transition: 0.3s;
}

.dashboard-sidebar ul li a:hover {
    background: #334155;
}

/* Content */
.dashboard-content {
    flex: 1;
    padding: 30px;
    background: #f5f7fa;
}

/* Cards */
.dashboard-cards {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.card i {
    font-size: 30px;
    margin-bottom: 10px;
    color: #6c5ce7;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
    }
}

.book-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* message below buttons */
.login-msg {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 8px;
}

/* disabled button */
.btn-disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

#pdf-container {
    margin-top: 20px;
}

#pdf-container canvas {
    width: 100%;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

#pdf-info p {
    margin: 5px 0;
}

.form-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}



.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

/* FORCE SIDEBAR LINKS WHITE */
.sidebar a,
.sidebar a:link,
.sidebar a:visited,
.sidebar a:hover,
.sidebar a:active,
.sidebar a:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Optional: hover background */
.sidebar a:hover {
    background: #334155;
}

header {
    height: 100px;        /* fixed height */
    display: flex;
    align-items: center; /* vertically center everything */
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}


.logo img {
    height: 60px;  /* you can increase this freely */
    width: auto;
}

.navbar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#pdf-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 600px;
    overflow-y: auto;
    text-align: center;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

#pdf-wrapper canvas {
    margin: 10px auto;
    display: block;
}
.pdf-separator {
    width: 80%;
    height: 2px;
    margin: 40px auto;
    background: linear-gradient(to right, transparent, #ccc, transparent);
}

/* ===== MOBILE FIX FOR BOOK PREVIEW ===== */
/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

    .preview-container {
        width: calc(100% - 20px) !important;
        margin: 15px auto !important;
        padding: 15px !important;
    }

    .preview-container > div {
        flex-direction: column !important;
        align-items: center !important;
    }

    .book-cover {
        width: 100% !important;
        flex: unset !important;
    }

    .book-cover img {
        width: 160px !important;
        height: auto !important;
    }

    .book-meta {
        width: 100% !important;
    }

    .book-info-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    #pdf-wrapper {
        height: 500px !important;
        padding: 10px !important;
    }

    #pdf-wrapper canvas {
        width: 100% !important;
        height: auto !important;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    header {
        height: auto !important;
    }

    .navbar {
        flex-wrap: wrap;
    }
}


@media(max-width:768px){
    .book-info-grid{
        grid-template-columns:1fr;
    }
}

#screen-protector{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    pointer-events:none;
    z-index:9999;
    background-image:
      repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.02),
        rgba(255,255,255,0.02) 2px,
        transparent 2px,
        transparent 8px
      );
}

