/* ********************* */
/* Flashcard Font Styles */
/* ********************* */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

.inter-light {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}
.inter-regular {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
.inter-medium {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}
.inter-semibold {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}
.inter-bold {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}
.inter-extrabold {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
}

/* ********************* */
/* Custom Scroll Bar CSS */
/* ********************* */
::-webkit-scrollbar {
	width: 7px;
}
::-webkit-scrollbar-track {
	background: silver;
}
::-webkit-scrollbar-thumb {
	background: var(--flashcards-color);
	border-radius: 12px;
	transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
	background: var(--flashcards-color-hover);
}

/* ************ */
/* basic styles */
/* ************ */
* {
	scroll-behavior: smooth;
}

:root {

	/* main cms color danger */
	--flashcards-color: #229ac8;
    --flashcards-color-rgb: 34, 154, 200;
	--flashcards-color-hover: #43a9d0;
    --flashcards-border-color: #38a4ce;
    --flashcards-background-gray: #f5f7fa;
    --flashcards-background-blue: rgb(137, 207, 240, 0.25);
    --flashcards-background-blue-hover: rgb(137, 207, 240, 0.50);
    --flashcards-backgraound-gray-e: #E5E5E5;

    --flashcards-footer-background: #242d37;
    --flashcards-footer-text: #969fa8;
    --flashcards-footer-text-hover: #06b7f0;

}

body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
#main-container {
    padding-top: calc(60px + 2rem);
    padding-bottom: 2rem;
    min-height: calc(100vh - 60px);
    transition: all ease 0.5s;
}

.text-flashcards {
    background-clip: text;
    background: -webkit-linear-gradient(#1f90bb, #145e7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-justify {
    text-align: justify;
}
.text-shadow {
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.75);
}
.capitalize {
    display: inline-block;
}
.capitalize::first-letter {
    text-transform: capitalize;
}
.text-default {
    color: var(--flashcards-color) !important;
    text-decoration: none;
}
.text-default:hover {
    color: var(--flashcards-color-hover) !important;
    text-decoration: none;
}
.bg-default-subtle {
    background-color: var(--flashcards-background-blue)!important;
}
.link-primary {
    color: var(--flashcards-color) !important;
    text-decoration: none;
}
.link-primary:hover {
    color: var(--flashcards-color-hover) !important;
}



/* **************** */
/* bootstrap styles */
/* **************** */

.btn-outline-flashcards {
    color: var(--bs-dark);
    background-color: white;
    border-color: var(--flashcards-border-color);
    text-shadow: 0 -1px 0 rgba(0, 0 , 0, 0.25);
    transition: all 0.25s ease;
}
.btn-outline-flashcards:hover {
    color: var(--bs-white);
    background-color: var(--flashcards-color);
    border-color: var(--flashcards-color-hover);
    background-image: linear-gradient(to bottom,#23a1d1,#1f90bb);
    background-repeat: repeat-x;
    border-color: #1f90bb #1f90bb #145e7a;
}
.btn:focus.btn-outline-flashcards {
    color: var(--bs-dark) !important;
}
.btn:focus.btn-outline-flashcards:hover {
    color: var(--bs-white) !important;
}

.btn-flashcards {
    color: var(--bs-white);
    letter-spacing: 0.5px;
    background-color: var(--flashcards-color);
    text-shadow: 0 -1px 0 rgba(0, 0 , 0, 0.25);
    background-image: linear-gradient(to bottom,rgb(35, 161, 209),rgb(31, 144, 187));
    background-repeat: repeat-x;
    border-color: #1f90bb #1f90bb #145e7a;
    transition: all 0.2s ease;
}
.btn-flashcards:hover {
    color: var(--bs-white);
    background-image: linear-gradient(to bottom,rgb(35, 161, 209),rgb(35, 135, 170));
}
.btn:focus.btn-flashcards, .btn:active.btn-flashcards {
    border-color: #1f90bb #1f90bb #145e7a;
}
.btn:focus.btn-flashcards:hover {
    color: var(--bs-white) !important;
}

.form-check-input:checked {
    background-color: var(--flashcards-color) !important;
    border-color: var(--flashcards-color) !important;
}


/* ============================================================
   1. FLASHCARDS MAIN NAVIGATION
   ============================================================ */
.flashcards-main-navbar {
    min-height: 60px;

    padding: 8px 0;

    background: var(--flashcards-footer-background);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}


/* ============================================================
   2. NAVBAR BRAND
   ============================================================ */

.flashcards-main-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: #ffffff;

    font-size: 19px;
    font-weight: 700;

    letter-spacing: -0.4px;

    text-decoration: none;

    transition: color 0.2s ease;
}

.flashcards-main-navbar .navbar-brand:hover {
    color: #ffffff;
}


/* ------------------------------------------------------------
   Brand icon
   ------------------------------------------------------------ */

.flashcards-main-navbar .flashcards-brand-icon {
    color: var(--flashcards-color-hover);

    font-size: 19px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.flashcards-main-navbar .navbar-brand:hover .flashcards-brand-icon {
    color: #ffffff;

    transform: rotate(-8deg);
}


/* ============================================================
   3. NAVIGATION LINKS
   ============================================================ */

.flashcards-main-navbar .navbar-nav {
    gap: 6px;
}

.flashcards-main-navbar .navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 40px;

    padding: 9px 15px;

    color: #b9c4cf;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.4;

    border: 1px solid transparent;
    border-radius: 8px;

    background: transparent;

    text-decoration: none;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}


/* ------------------------------------------------------------
   Navigation icons
   ------------------------------------------------------------ */

.flashcards-main-navbar .navbar-nav .nav-link .fa-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 17px;

    font-size: 14px;

    color: inherit;
}


/* ------------------------------------------------------------
   Hover
   ------------------------------------------------------------ */

.flashcards-main-navbar .navbar-nav .nav-link:hover {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.08);
}


/* ============================================================
   4. ACTIVE NAVIGATION
   ============================================================ */

.flashcards-main-navbar .navbar-nav .nav-link.active {
    color: #ffffff;

    background: var(--flashcards-color);

    border-color: var(--flashcards-color);

    font-weight: 600;
}

.flashcards-main-navbar .navbar-nav .nav-link.active:hover {
    color: #ffffff;

    background: var(--flashcards-color-hover);

    border-color: var(--flashcards-color-hover);
}


/* ------------------------------------------------------------
   Keyboard focus
   ------------------------------------------------------------ */

.flashcards-main-navbar .navbar-nav .nav-link:focus-visible {
    outline: 2px solid var(--flashcards-color-hover);
    outline-offset: 3px;
}


/* ============================================================
   5. MOBILE NAVIGATION
   ============================================================ */

@media (max-width: 991.98px) {

    .flashcards-main-navbar .navbar-collapse {
        padding-top: 14px;
        padding-bottom: 8px;
    }

    .flashcards-main-navbar .navbar-nav {
        gap: 5px;
    }

    .flashcards-main-navbar .navbar-nav .nav-link {
        display: flex;

        justify-content: flex-start;

        width: 100%;

        padding: 12px 15px;
    }

    .flashcards-main-navbar .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.2);
        border-radius: 8px;
    }

    .flashcards-main-navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(var(--flashcards-color-rgb), 0.25);
    }

}


/* ******************* */
/* module: breadcrumbs */
/* ******************* */
.flashcards-breadcrumb {
    margin: 0 0 1.5rem 0;
    padding: 0.5rem 1.2rem;
    background: var(--flashcards-background-gray);
    border-radius: 0.5rem;
    list-style: none;
    font-weight: 500;
    border: 1px solid var(--bs-gray-200);
}
.flashcards-breadcrumb li {
    display: inline;
    color: var(--bs-dark);
}
.flashcards-breadcrumb li a {
    text-decoration: none;
    transition: all 0.5s ease;
    color: var(--bs-dark);
}
.flashcards-breadcrumb li a:hover {
    color: var(--flashcards-color-hover);
    background: -webkit-linear-gradient(#1f90bb, #145e7a);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.flashcards-breadcrumb li span.flashcards-breadcrumb-divider::after {
    content: '\00BB';
    padding: 0 0.75rem;
    color: var(--bs-gray-500);
    font-size: 1.1rem;
    font-weight: 900;
    background: -webkit-linear-gradient(var(--bs-gray-400), var(--bs-gray-600));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.flashcards-breadcrumb i {
    font-size: 15px;
}
@media (min-width: 576px) {
    .flashcards-breadcrumb li span.flashcards-breadcrumb-divider::after {
        content: '|';
        padding: 0 1.1rem;
        background: -webkit-linear-gradient(var(--bs-gray-400), var(--bs-gray-500));
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}


/* *********************** */
/* page: account / account */
/* *********************** */
#page-account-account-content .profile-box {
    padding: 1.5rem;
    height: 100%;
    border: 1px solid var(--bs-gray-300);
    border-radius: 0.5rem;
}
#page-account-account-content .profile-box:hover {
    -webkit-box-shadow: 0 5px 25px -15px rgba(0,0,0,.5);
    box-shadow: 0 5px 25px -15px rgba(0,0,0,.5);
}

/* ************************** */
/* page: account / flashcards */
/* ************************** */
.table-flashcards {
    vertical-align: middle!important;
    white-space: nowrap!important;
}
.table-flashcards thead th {
    --bs-border-opacity: 1;
    border-color: rgba(var(--flashcards-color-rgb),var(--bs-border-opacity))!important;
}



/* *********** */
/* Page: LOGIN */
/* *********** */
#form-login {
    width: 80%;
}
#form-login img {
    display: block;
    margin: auto;
    height: 150px;
    width: 150px;
    transition: all 0.25s ease;
}
@media (min-width: 767.98px) {
    #form-login {
        width: 50%;
    }
    #form-login img {
        height: 200px;
        width: 200px;
    }
}
@media (min-width: 991.98px) {
    #form-login {
        width: 40%;
    }
}
@media (min-width: 1199.98px) {
    #form-login {
        width: 35%;
    }
}








/* **************** */
/* Page: Flashcards */
/* **************** */

#page-flashcards-content {
    padding: 0;
}

.flashcard-list-selector {
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.flashcard-main-card {
    overflow: hidden;
    border: 1px solid #d9dee5;
    border-radius: 10px;
    background: #ffffff;
}

.flashcard-substance-header {
    padding: 24px 24px 16px;
}

.flashcard-substance-title {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
    color: #2f65e8;
}

.flashcard-substance-title small {
    font-size: 0.78em;
    font-weight: 400;
}

.flashcard-inn {
    margin-bottom: 14px;
}

.flashcard-description-wrapper {
    margin-top: 8px;
}

.flashcard-section-label {
    margin-bottom: 8px;
    font-weight: 700;
}

.substance-description {
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.substance-description > :last-child {
    margin-bottom: 0;
}

.flashcard-category-navigation {
    padding: 8px 24px 0;
}

.flashcard-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #ffffff;
}

.flashcard-tabs .nav-item {
    flex: 1 1 0;
    min-width: 0;
}

.flashcard-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 58px;
    padding: 11px 12px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #495057;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.flashcard-tab:hover {
    background: #f8f9fa;
}

.flashcard-tab:focus {
    box-shadow: inset 0 0 0 2px rgba(13, 110, 253, 0.18);
}

.flashcard-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.flashcard-tab-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.flashcard-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.flashcard-tab-indications {
    color: #198754;
}

.flashcard-tab-indications .flashcard-tab-icon {
    color: #ffffff;
    background: #198754;
}

.flashcard-tab-indications .flashcard-tab-count {
    background: #198754;
}

.flashcard-tab-indications.active {
    color: #198754;
    border-bottom-color: #198754;
    background: #f1fbf6;
}

.flashcard-tab-contraindications {
    color: #dc3545;
}

.flashcard-tab-contraindications .flashcard-tab-icon {
    color: #dc3545;
    background: #fff1f2;
}

.flashcard-tab-contraindications .flashcard-tab-count {
    background: #dc3545;
}

.flashcard-tab-contraindications.active {
    color: #dc3545;
    border-bottom-color: #dc3545;
    background: #fff5f6;
}

.flashcard-tab-side-effects {
    color: #e67e00;
}

.flashcard-tab-side-effects .flashcard-tab-icon {
    color: #ffffff;
    background: #f59e0b;
}

.flashcard-tab-side-effects .flashcard-tab-count {
    background: #f59e0b;
}

.flashcard-tab-side-effects.active {
    color: #d97706;
    border-bottom-color: #f59e0b;
    background: #fff9ed;
}

.flashcard-tab-interactions {
    color: #0d6efd;
}

.flashcard-tab-interactions .flashcard-tab-icon {
    color: #ffffff;
    background: #0d6efd;
}

.flashcard-tab-interactions .flashcard-tab-count {
    background: #0d6efd;
}

.flashcard-tab-interactions.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    background: #f1f6ff;
}

.flashcard-tab-content {
    padding: 24px;
}

.flashcard-panel-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 700;
}

.flashcard-panel-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 13px;
    line-height: 1;
}

.flashcard-panel-heading-indications {
    color: #198754;
}

.flashcard-panel-heading-indications .flashcard-panel-heading-icon {
    background: #198754;
}

.flashcard-panel-heading-contraindications {
    color: #dc3545;
}

.flashcard-panel-heading-contraindications .flashcard-panel-heading-icon {
    background: #dc3545;
}

.flashcard-panel-heading-side-effects {
    color: #d97706;
}

.flashcard-panel-heading-side-effects .flashcard-panel-heading-icon {
    background: #f59e0b;
}

.flashcard-panel-heading-interactions {
    color: #0d6efd;
}

.flashcard-panel-heading-interactions .flashcard-panel-heading-icon {
    background: #0d6efd;
}

.flashcard-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flashcard-info-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 14px 16px;
    border: 1px solid #dee2e6;
    border-left-width: 4px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(33, 37, 41, 0.05);
}

.flashcard-info-item-indication {
    border-left-color: #198754;
}

.flashcard-info-item-contraindication {
    border-left-color: #dc3545;
}

.flashcard-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.flashcard-info-item-indication .flashcard-info-icon {
    color: #198754;
}

.flashcard-info-item-contraindication .flashcard-info-icon {
    color: #dc3545;
}

.flashcard-info-content {
    min-width: 0;
}

.flashcard-info-title {
    color: #212529;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.flashcard-info-description {
    margin-top: 3px;
    color: #5f6670;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.flashcard-info-description > :last-child {
    margin-bottom: 0;
}

.flashcard-side-effects-accordion,
.flashcard-interactions-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flashcard-frequency-group,
.flashcard-interaction-item {
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #ffffff;
}
.flashcard-frequency-group {
    border-left: 4px solid #f59e0b;
}

.flashcard-frequency-group .accordion-button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 16px;
    color: #343a40;
    background: #ffffff;
    font-weight: 600;
    box-shadow: none;
}

.flashcard-frequency-group .accordion-button:not(.collapsed) {
    color: #9a5a00;
    background: #fff8e8;
}

.flashcard-frequency-group .accordion-button:focus {
    border-color: transparent;
    box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.flashcard-frequency-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.flashcard-frequency-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    height: 23px;
    margin-left: 0.25rem;
    padding: 0 6px;
    border-radius: 999px;
    color: #ffffff;
    background: #f59e0b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.flashcard-frequency-group .accordion-body {
    padding: 8px 16px 14px;
    background: #ffffff;
}

.flashcard-side-effect-list {
    display: flex;
    flex-direction: column;
}

.flashcard-side-effect-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 9px 0;
    border-bottom: 1px solid #edf0f2;
}

.flashcard-side-effect-item:last-child {
    border-bottom: 0;
}

.flashcard-side-effect-bullet {
    flex: 0 0 auto;
    color: #f59e0b;
    font-size: 22px;
    line-height: 18px;
}

.flashcard-side-effect-content {
    min-width: 0;
}

.flashcard-side-effect-name {
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.flashcard-side-effect-description {
    margin-top: 3px;
    color: #5f6670;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.flashcard-interaction-item {
    border-left: 4px solid #0d6efd;
}

.flashcard-interaction-item .accordion-button {
    padding: 14px 16px;
    color: #212529;
    background: #ffffff;
    box-shadow: none;
}

.flashcard-interaction-item .accordion-button:not(.collapsed) {
    color: #0d6efd;
    background: #f4f8ff;
}

.flashcard-interaction-item .accordion-button:focus {
    border-color: transparent;
    box-shadow: inset 0 0 0 2px rgba(13, 110, 253, 0.16);
}

.flashcard-interaction-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: calc(100% - 10px);
    min-width: 0;
    padding-right: 8px;
}

.flashcard-interaction-name {
    min-width: 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.flashcard-interaction-inn {
    margin-left: 4px;
    color: #6c757d;
    font-weight: 400;
}

.flashcard-interaction-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    flex: 0 0 auto;
}

.flashcard-severity-badge {
    color: #ffffff;
    background: #dc3545;
}

.flashcard-interaction-type-badge {
    color: #ffffff;
    background: #6c757d;
}

.flashcard-interaction-body {
    padding: 16px;
}

.flashcard-interaction-detail {
    margin-bottom: 15px;
}

.flashcard-interaction-detail:last-child {
    margin-bottom: 0;
}

.flashcard-interaction-detail-label {
    margin-bottom: 3px;
    font-weight: 700;
}

.flashcard-interaction-detail-text {
    color: #4f565e;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.flashcard-interaction-detail-text > :last-child {
    margin-bottom: 0;
}

.flashcard-interaction-recommendation {
    padding: 12px 14px;
    border-left: 4px solid #0d6efd;
    border-radius: 6px;
    background: #f4f8ff;
}

.flashcard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    border-top: 1px solid #e4e7eb;
    background: #fafbfc;
}

.flashcard-progress-information {
    line-height: 1.6;
}

.flashcard-next-button {
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {
    .flashcard-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
        border: 0;
        background: transparent;
    }

    .flashcard-tabs .nav-item {
        width: 100%;
    }

    .flashcard-tab {
        min-height: 82px;
        padding: 10px;
        border: 1px solid #dee2e6;
        border-bottom-width: 1px;
        border-radius: 8px;
        flex-direction: column;
        gap: 5px;
        white-space: normal;
    }

    .flashcard-tab-indications.active {
        border-color: #198754;
    }

    .flashcard-tab-contraindications.active {
        border-color: #dc3545;
    }

    .flashcard-tab-side-effects.active {
        border-color: #f59e0b;
    }

    .flashcard-tab-interactions.active {
        border-color: #0d6efd;
    }

    .flashcard-tab-text {
        overflow: visible;
        text-overflow: clip;
        line-height: 1.25;
    }

    .flashcard-tab-count {
        position: static;
    }
}

@media (max-width: 767.98px) {

    .flashcard-list-selector .form-label {
        margin-bottom: 8px;
    }

    .flashcard-substance-header {
        padding: 20px 18px 14px;
    }

    .flashcard-substance-title {
        font-size: 25px;
    }

    .flashcard-category-navigation {
        padding: 6px 12px 0;
    }

    .flashcard-tab-content {
        padding: 20px 16px;
    }

    .flashcard-interaction-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .flashcard-interaction-badges {
        justify-content: flex-start;
    }

    .flashcard-footer {
        padding: 16px 18px;
    }
}

@media (max-width: 575.98px) {
    .flashcard-main-card {
        border-radius: 8px;
    }

    .flashcard-substance-header {
        padding: 18px 14px 12px;
    }

    .flashcard-substance-title {
        font-size: 22px;
    }

    .flashcard-category-navigation {
        padding: 4px 10px 0;
    }

    .flashcard-tabs {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        overflow: hidden;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        background: #ffffff;
    }

    .flashcard-tabs .nav-item + .nav-item {
        border-top: 1px solid #dee2e6;
    }

    .flashcard-tab {
        min-height: 48px;
        padding: 10px 12px;
        border: 0;
        border-radius: 0;
        flex-direction: row;
        justify-content: flex-start;
        gap: 9px;
        text-align: left;
    }

    .flashcard-tab-text {
        flex: 1 1 auto;
    }

    .flashcard-tab-count {
        margin-left: auto;
    }

    .flashcard-tab-indications.active {
        border: 0;
        box-shadow: inset 3px 0 0 #198754;
    }

    .flashcard-tab-contraindications.active {
        border: 0;
        box-shadow: inset 3px 0 0 #dc3545;
    }

    .flashcard-tab-side-effects.active {
        border: 0;
        box-shadow: inset 3px 0 0 #f59e0b;
    }

    .flashcard-tab-interactions.active {
        border: 0;
        box-shadow: inset 3px 0 0 #0d6efd;
    }

    .flashcard-tab-content {
        padding: 18px 12px;
    }

    .flashcard-panel-heading {
        font-size: 17px;
    }

    .flashcard-info-item {
        gap: 10px;
        padding: 12px;
    }

    .flashcard-info-title {
        font-size: 15px;
    }

    .flashcard-info-description {
        font-size: 13px;
    }

    .flashcard-frequency-group .accordion-button {
        padding: 11px 12px;
    }

    .flashcard-frequency-group .accordion-body {
        padding: 7px 12px 12px;
    }

    .flashcard-interaction-item .accordion-button {
        padding: 12px;
    }

    .flashcard-interaction-body {
        padding: 13px 12px;
    }

    .flashcard-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 15px 14px;
    }

    .flashcard-next-button {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .flashcard-substance-title {
        font-size: 20px;
    }

    .flashcard-tab {
        font-size: 14px;
    }

    .flashcard-interaction-badges {
        align-items: flex-start;
        flex-direction: column;
    }
}

.substance-description-collapsed {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.flashcard-description-toggle {
    color: var(--flashcards-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.flashcard-description-toggle:hover {
    color: var(--flashcards-color-hover);
    text-decoration: underline;
}

.flashcard-description-toggle-icon {
    display: inline-block;
    margin-left: 4px;
}




















/* *************** */
/* section: header */
/* *************** */
#alert.toast-container {
    pointer-events: unset !important;
}
#alert .alert-dismissible {
    margin-bottom: 1rem;
}



/* *************** */
/* section: footer */
/* *************** */
#footer {
    background-color: var(--flashcards-footer-background);
    padding: 60px 30px;
    font-size: 14px;
    color: var(--bs-white);
    border-top: 4px solid var(--flashcards-color);
}
#footer h5 {
    margin: 0 0 20px;
    font-weight: 400;
    color: var(--flashcards-footer-text);
    letter-spacing: 2px;
    text-transform: uppercase;
}
#footer li a {
    padding: 3px 0;
    display: inline-block;
    font-size: 14px;
    color: var(--bs-white);
    text-decoration: none;
    background-color: transparent;
}
#footer a:focus, #footer a:hover {
    color: var(--flashcards-footer-text-hover);
}
#footer .footer-copyright {
    color: var(--bs-gray-500);
    text-decoration: none;
}
#footer .payment-icons {
    max-width: 100%;
    width: 25px;
    height: auto;
    aspect-ratio: auto 25 / 25;
    border: 0;
}
#footer .payment-icons.visa {
    width: 50px;
    aspect-ratio: auto 50 / 25;
}
#footer .payment-icons.mastercard {
    width: 30px;
    aspect-ratio: auto 30 / 30;
}
#footer .payment-description {
    font-size: 7px;
    margin-bottom: 0;
    margin-top: 0;
    font-weight: 700;
    color: var(--bs-white);
}
#footer .payment-container {
    min-width: 70px;
    min-height: 44px;
    padding-top: 2px !important;
    padding-bottom: 0 !important;
    padding-right: .5rem !important;
    padding-left: .5rem !important;
    text-align: center;
    background: white;
    border: 1px solid #eaeaea;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}
#footer .payment-container.visa {
    padding-top: 7px !important;
}
#footer .payment-container.mastercard {
    padding-top: 5px !important;
}
