body {
    margin: 0;
    line-height: normal;
}

.medicines-page {
    position: relative;
    top: 30px;
    width: 1440px;
    margin: 0px auto;
    gap: 46px;
    text-align: left;
    font-size: var(--font-size-mini);
}


/* Sidebar css */

.sidebar {
    border-radius: var(--br-5xs);
    background-color: var(--color-white);
    box-shadow: var(--normal-box-shadow);
    width: 290px;
    border-radius: 10px;
    padding: 15px 0;
    transition: transform 0.3s ease-in-out;
}

.sidebar.active {
    transform: translateX(0) !important;
}

.filters-title {
    font-weight: bold;
    margin: 0px;
    font-size: 20px;
}

.sidebar-devider {
    border: 1px #e5e7eb solid;
    width: 100%;
    margin-bottom: 10px;
}

.sidebar-item {
    margin-bottom: 15px;
}

.sidebar-item .title-header {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 5px;
    margin-bottom: 8px !important;
}

.filter-options-container {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.filter-options-container::-webkit-scrollbar {
    width: 5px;
}

.filter-options-container::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 3px;
}

.filter-options-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.filter-options-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.checkbox-parent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-parent:hover {
    background-color: #f3f4f6;
}

.checkbox-parent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-parent .name {
    margin: 0 !important;
    font-size: 14px;
    color: #4b5563;
    word-break: break-word;
    cursor: pointer;
    line-height: 1.3;
}

.sidebar .mobile-sidebar-btn {
    display: none;
    position: absolute;
    right: 15px;
    top: 15px;
    border: none;
    outline: none;
    border-radius: 100%;
    padding: 5px;
    background: none;
}

.search-bar .mobile-sidebar-btn {
    display: flex;
    background: #F1F2FA;
    border: none;
    outline: none;
    border-radius: 100%;
    padding: 12px;
    height: auto;
    width: auto;
}

.sidebar .mobile-sidebar-btn .iconsax svg {
    width: 28px;
    height: 28px;
}


/* Medicine Body */

.container {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 23px;
    font-size: var(--font-size-xl);
}

.correct-words {
    gap: 20px;
}

.correct-words h2 {
    font-size: 20px;
}

.correct-words .words .word {
    text-decoration: none;
    display: flex;
    padding: 8px 20px;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    border-radius: 30px;
    background: var(--color-secondary);
    color: white;
}

.answer_card {
    padding: 1rem;
    text-align: left;
    border-radius: .8rem;
    background-color: white;
    color: #535353;
    font-size: 18px;
    display: none;
}

.answer_card.active {
    display: block;
}

.answer_card p {
    margin: 0px;
}

.answer_card .warning_note {
    position: relative;
    color: #ff1313;
    background-color: #edf3ff;
    padding: 8px 20px;
    margin-top: 11px;
    display: inline-block;
    border-radius: 30px;
}

.card__skeleton {
    background-image: linear-gradient(90deg, #afb7ff 0px, rgb(167 194 253 / 90%) 40px, #dbe6ff 80px);
    background-size: 300%;
    background-position: 100% 0;
    border-radius: inherit;
    animation: shimmer 1.5s infinite;
}

.card_title {
    height: 18px;
    margin-bottom: 15px;
}

@keyframes shimmer {
    to {
        background-position: -100% 0;
    }
}


/* Pagination Css */

.pagination-bar {
    margin: 0px auto;
}

.pagination-bar .pagination {
    display: flex;
    list-style: none;
    justify-content: center;
    background: white;
    width: fit-content;
    padding: 15px;
    border-radius: 8px;
    box-shadow: rgb(107 82 255 / 15%) 0px 4px 13px 0px;
}

.pagination-bar .pagination .page-item {
    margin: 0px 2px;
    padding: 2px 12px;
}

.pagination-bar .pagination .page-item a {
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    color: #909090;
}

.pagination-bar .pagination .page-item:hover a {
    color: #ffffff;
}

.pagination-bar .pagination .page-item.active,
.pagination-bar .pagination .page-item:hover {
    background: var(--color-secondary);
    border-radius: 5px;
}

.pagination-bar .pagination .page-item.active a {
    color: #ffffff;
}

.pagination-bar .pagination .page-item-btn {
    padding: 4px 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.pagination-bar .pagination .page-item-btn:hover {
    background: var(--color-third);
}

@media only screen and (max-width: 1440px) {
    .medicines-page {
        width: 1200px;
    }

    .container {
        width: 730px;
    }
}

@media only screen and (min-width: 1200px) {
    .mobile-sidebar-btn {
        display: none !important;
    }
}

@media only screen and (max-width: 1200px) {
    .medicines-page {
        width: 1084px;
    }

    .search-bar {
        padding: 10px 15px !important;
    }

    .search-medicines-generics {
        margin: 0px 10px;
    }

    .sidebar {
        position: fixed;
        height: 100%;
        overflow-y: auto;
        left: 0px;
        top: 0px;
        transform: translateX(-100%);
        z-index: 40;
        border-radius: 0px 20px 20px 0px;
    }

    .sidebar .mobile-sidebar-btn {
        display: block !important;
    }

    .container {
        width: 100%;
    }
}

@media only screen and (max-width: 1100px) {
    .medicines-page {
        width: 726px;
    }
}

@media only screen and (max-width: 750px) {
    .medicines-page {
        width: 80%;
    }

    .medicines-body .medicines .medicine {
        width: 100%;
    }
}

@media only screen and (max-width: 450px) {
    .search-bar {
        padding: 8px 10px 8px 10px !important;
    }

    .medicines-page {
        top: 0px;
        width: 95%;
    }

    .search-medicines-generics {
        margin: 0px 10px;
    }

    .mobile-sidebar-btn {
        display: block;
    }
}

/* Sidebar Backdrop Overlay */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 30;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: auto;
}

.sidebar-backdrop.active {
    opacity: 1;
}