/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    background-color: #f8f9fa;
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
}

/* Book Card Styles */
.book-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.book-icon {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 10px;
    margin: 0 auto;
    width: fit-content;
}

.book-icon i {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.book-card .card-title {
    color: #2c3e50;
    min-height: 40px;
    margin-bottom: 10px;
}

.book-card .badge {
    padding: 5px 10px;
}

.price-section {
    border-top: 2px solid #e9ecef;
    padding-top: 10px;
}

.order-btn {
    transition: all 0.3s ease;
    font-weight: 600;
    border-radius: 5px;
}

.order-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Filter Card */
.card {
    border: none;
    border-radius: 10px;
}

.form-label {
    font-weight: 600;
    color: #495057;
}

.form-select,
.form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.form-select:focus,
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline-secondary:hover {
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    margin-top: 30px;
}

.page-link {
    border-radius: 5px;
    margin: 0 3px;
    border: 1px solid #dee2e6;
    color: #0d6efd;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #0d6efd;
    color: white;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.page-item.disabled .page-link {
    cursor: not-allowed;
}

/* Loading Spinner */
#loadingSpinner {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Modal Styles */
.modal-header {
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

#bookDetailsCard {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: none;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 6px 12px;
}

.badge.bg-danger {
    z-index: 10;
}

/* Search Input */
.input-group {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 5px;
}

.input-group-text {
    background-color: white;
    border-right: none;
}

#searchInput {
    border-left: none;
    box-shadow: none !important;
    outline: none !important;
    border-color: #ced4da !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .book-card .card-title {
        min-height: 35px;
    }

    .book-icon {
        padding: 15px;
    }

    .float-end {
        float: none !important;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .col-md-3 {
        margin-bottom: 1rem;
    }

    .order-btn {
        padding: 8px 12px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.book-card {
    animation: fadeIn 0.5s ease;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* No Results */
#noResults {
    min-height: 400px;
}

#noResults i {
    opacity: 0.3;
}

/* Alert Positioning */
.alert.position-fixed {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
    }

    to {
        transform: translate(-50%, 0);
    }
}

/* Text Truncate */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body label.form-label {
    margin-bottom: 3px !important;
}

@keyframes scale {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1);
    }
}

.btn-animate {
    animation: scale 0.4s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
}