/* Base Theme Styles - base-theme.css */

:root {
    --primary-color: #5e2594;
    --primary-light: #7c44b2;
    --primary-dark: #3c0e6b;
    --secondary-color: #8b67cd;
    --accent-color: #28a745;
    --background-color: #f8f9fc;
    --text-color: #2c3e50;
    --text-light: #6c757d;
    --border-color: #e9ecef;
    --tooltip-background: #333;
    --tooltip-text: #fff;
    --white: #ffffff;
    --light-gray: #f1f3f9;
    --medium-gray: #d1d9e6;
    --dark-gray: #495057;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 60px;
    --footer-height: 60px;
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
}

/* Base and Typography */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: -webkit-fill-available;
}

body {
    font-family: 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    line-height: 1.6;
    font-size: clamp(15px, calc(0.9rem + 0.2vw), 17px);
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: calc(var(--footer-height) + var(--safe-area-inset-bottom));
    padding-top: calc(var(--header-height) + var(--safe-area-inset-top));
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

h1 {
    font-size: clamp(1.75rem, calc(1.5rem + 1.5vw), 2.5rem);
}

h2 {
    font-size: clamp(1.5rem, calc(1.25rem + 1.25vw), 2.25rem);
}

h3 {
    font-size: clamp(1.25rem, calc(1.125rem + 0.75vw), 1.75rem);
}

h4 {
    font-size: clamp(1.125rem, calc(1rem + 0.5vw), 1.5rem);
}

h5 {
    font-size: clamp(1rem, calc(0.875rem + 0.5vw), 1.25rem);
}

h6 {
    font-size: clamp(0.875rem, calc(0.75rem + 0.5vw), 1.125rem);
}

/* Modern Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    padding: 0;
    border-bottom: 2px solid var(--primary-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--header-height);
    transition: transform 0.3s ease;
    padding-top: var(--safe-area-inset-top);
}

.navbar.nav-up {
    transform: translateY(-100%);
}

.navbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1rem;
}

.navbar-brand {
    padding: 0;
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 38px;
    width: auto;
    transition: all 0.2s ease;
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        height: 32px;
    }
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition-standard);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link i {
    margin-right: 0.5rem;
    font-size: 1rem;
    opacity: 0.7;
    transition: var(--transition-standard);
}

.nav-link:hover i,
.nav-link:focus i,
.nav-item.active .nav-link i {
    opacity: 1;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color);
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-link:focus:after,
.nav-item.active .nav-link:after {
    width: 80%;
}

.nav-item.active .nav-link {
    color: var(--primary-color);
    font-weight: 600;
}

/* Modern Toggler Button */
.navbar-toggler {
    border: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    position: relative;
    background-color: transparent;
    transition: var(--transition-standard);
    outline: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1031;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler .toggler-icon {
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    display: block;
    position: absolute;
    border-radius: 2px;
    transition: var(--transition-standard);
}

.navbar-toggler .toggler-icon:nth-child(1) {
    transform: translateY(-6px);
}

.navbar-toggler .toggler-icon:nth-child(3) {
    transform: translateY(6px);
}

.navbar-toggler.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler.active .toggler-icon {
    background-color: var(--white);
}

.navbar-toggler.active .toggler-icon:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.navbar-toggler.active .toggler-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.active .toggler-icon:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/* Modern Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: 0.5rem;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    border-top: 3px solid var(--primary-color);
    animation: menuFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top center;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: var(--transition-standard);
    color: var(--text-color);
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
}

.dropdown-item i {
    margin-right: 0.75rem;
    font-size: 1rem;
    width: 20px;
    text-align: center;
    opacity: 0.7;
    transition: var(--transition-standard);
}

.dropdown-item:hover i,
.dropdown-item:focus i {
    opacity: 1;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(94, 37, 148, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.dropdown-divider {
    margin: 0.5rem 1rem;
}

/* Mobile Drawer Navigation */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1040;
    pointer-events: none;
    transition: visibility 0.2s ease;
    visibility: hidden;
}

.mobile-drawer.active {
    visibility: visible;
    pointer-events: auto;
}

.mobile-drawer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.mobile-drawer.active .mobile-drawer-backdrop {
    opacity: 1;
}

.mobile-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 85vw;
    max-width: 360px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: calc(var(--header-height) + 1rem) 1rem 1rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.2);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.mobile-drawer.active .mobile-drawer-content {
    transform: translateX(0);
}

.mobile-nav-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition-standard);
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.mobile-nav-link i {
    margin-right: 0.75rem;
    font-size: 1.125rem;
    width: 24px;
    text-align: center;
}

/* Mobile Accordion Dropdown */
.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition-standard);
}

.mobile-dropdown-toggle:hover,
.mobile-dropdown-toggle:active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.mobile-dropdown-toggle .toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition-standard);
}

.mobile-dropdown-toggle.active .toggle-icon {
    background-color: var(--white);
    color: var(--primary-color);
    transform: rotate(180deg);
}

.mobile-dropdown-toggle .left-icon {
    margin-right: 0.75rem;
    font-size: 1.125rem;
    width: 24px;
    text-align: center;
}

.mobile-dropdown-menu {
    padding: 0.5rem 0 0.5rem 2.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-dropdown-menu.active {
    max-height: 500px;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 400;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    transition: var(--transition-standard);
}

.mobile-dropdown-item:hover,
.mobile-dropdown-item:active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.mobile-dropdown-item i {
    margin-right: 0.75rem;
    font-size: 1rem;
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

.mobile-user-section {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content */
main {
    flex: 1 0 auto;
    width: 100%;
    padding: 1.5rem 0;
    position: relative;
    margin-bottom: var(--footer-height);
}

/* Modern Footer */
.footer {
    background-color: #2a2a2a;
    color: rgba(255, 255, 255, 0.8);
    padding: 0;
    font-size: 0.85rem;
    border-top: 3px solid var(--primary-color);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    z-index: 1020;
    padding-bottom: var(--safe-area-inset-bottom);
}

.footer-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1rem;
}

@media (max-width: 767.98px) {
    .footer-wrapper {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-links {
        margin-top: 0.5rem;
    }
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.5rem;
}

.footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* User Clock */
#user-clock {
    position: fixed;
    z-index: 1025;
    font-weight: 500;
    border-radius: 12px;
    transition: var(--transition-standard);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--white);
    border-left: 3px solid var(--primary-color);
    right: 1rem;
    bottom: calc(var(--footer-height) + 1rem + var(--safe-area-inset-bottom));
}

@media (min-width: 768px) {
    #user-clock {
        top: calc(var(--header-height) + 1rem);
        right: 1rem;
        bottom: auto;
    }
}

#clock-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
}

#clock-time {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Morning Theme */
#user-clock.morning {
    background-color: rgba(255, 236, 179, 0.9);
    color: #ff9800;
    border-left: 3px solid #ff9800;
}

/* Afternoon Theme */
#user-clock.afternoon {
    background-color: rgba(187, 222, 251, 0.9);
    color: #1e88e5;
    border-left: 3px solid #1e88e5;
}

/* Evening Theme */
#user-clock.evening {
    background-color: rgba(179, 157, 219, 0.9);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

/* Night Theme */
#user-clock.night {
    background-color: rgba(207, 216, 220, 0.9);
    color: #37474f;
    border-left: 3px solid #37474f;
}

/* Loader and Overlay */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#loader {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    position: relative;
}

.spinner div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 40px;
    height: 40px;
    margin: 6px;
    border: 6px solid;
    border-radius: 50%;
    animation: spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--primary-color) transparent transparent transparent;
}

.spinner div:nth-child(1) {
    animation-delay: -0.45s;
    border-color: var(--primary-color) transparent transparent transparent;
}

.spinner div:nth-child(2) {
    animation-delay: -0.3s;
    border-color: var(--secondary-color) transparent transparent transparent;
}

.spinner div:nth-child(3) {
    animation-delay: -0.15s;
    border-color: var(--primary-light) transparent transparent transparent;
}

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Modern Cards */
.card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    border: none;
    overflow: hidden;
    transition: var(--transition-standard);
    margin-bottom: 1.5rem;
    height: 100%;
}

.card:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-4px);
}

.card-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    border-left: 4px solid var(--primary-color);
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition-standard);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn i {
    margin-right: 0.5rem;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn:active::after {
    animation: ripple 0.6s ease-out;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--hover-shadow);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-back {
    background-color: var(--light-gray);
    border: 1px solid var(--medium-gray);
    color: var(--text-color);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-standard);
    margin-right: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
}

.btn-back i {
    margin-right: 0.5rem;
}

.btn-back:hover {
    background-color: #e5e9f0;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Form Controls */
.form-control,
.form-select {
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: var(--white);
    height: auto;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(94, 37, 148, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.form-text {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Alerts */
.alert {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid transparent;
    display: flex;
    align-items: flex-start;
}

.alert .alert-icon {
    margin-right: 1rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-primary {
    background-color: rgba(94, 37, 148, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #20773d;
    border-left-color: #20773d;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ad8a06;
    border-left-color: #ad8a06;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #a71d2a;
    border-left-color: #a71d2a;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-dark);
    padding: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table td {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    .table-responsive-sm {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-mobile {
        display: flex;
        flex-direction: column;
    }

    .table-mobile-row {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 1rem;
        background-color: var(--white);
        border-radius: 8px;
        box-shadow: var(--box-shadow);
        overflow: hidden;
    }

    .table-mobile-col {
        flex: 1 0 50%;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .table-mobile-header {
        font-weight: 600;
        color: var(--primary-dark);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.25rem;
    }

    .table-mobile-data {
        font-size: 0.95rem;
    }
}

/* Badge Styles */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
    border-radius: 50rem;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
}

.badge i {
    margin-right: 0.35rem;
}

.badge-primary {
    background-color: var(--primary-color);
    color: white;
}

.badge-secondary {
    background-color: var(--secondary-color);
    color: white;
}

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 1rem;
}

.page-title {
    font-size: clamp(1.5rem, calc(1.25rem + 1.25vw), 1.75rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

/* Medical Paper */
.medical-paper {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-color);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .medical-paper {
        padding: 2rem;
    }
}

.medical-paper h1,
.medical-paper h2,
.medical-paper h3 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.paper-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.paper-section:last-child {
    border-bottom: none;
}

/* Responsive Table of Contents */
.toc {
    background-color: #f8f9fc;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.toc-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-size: clamp(1rem, calc(0.9rem + 0.5vw), 1.25rem);
}

.toc-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.toc-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #e1e5ee;
}

.toc-list li:last-child {
    border-bottom: none;
}

.toc-list a {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease;
    padding: 0.25rem 0;
}

.toc-list a:hover {
    transform: translateX(5px);
}

/* Modern Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
    border-radius: 0;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    padding: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-standard);
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 600;
}

/* Responsive Utilities */
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none;
    }
}

@media (min-width: 992px) {
    .mobile-drawer {
        display: none !important;
    }

    .navbar-toggler {
        display: none;
    }
}

/* Print Styles */
@media print {

    html,
    body {
        background-color: #fff;
        font-size: 12pt;
        margin: 0;
        padding: 0;
    }

    nav,
    .mobile-drawer,
    footer,
    #overlay,
    #loader,
    .navbar-toggler,
    .btn,
    .dropdown-menu,
    .introjs-tooltip,
    .introjs-custom-tooltip,
    #user-clock {
        display: none !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    body,
    .container,
    .form-paper {
        margin: 0;
        padding: 0;
    }

    .form-paper {
        border: none;
        box-shadow: none;
        padding: 20px;
    }

    body {
        background: white;
        color: #000;
    }

    * {
        background: none !important;
        color: #000 !important;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .page-break {
        page-break-before: always;
    }

    .no-print {
        display: none !important;
    }
}

/* Accessibility Enhancements */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus outlines - essential for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link for keyboard users */
.skip-link {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    left: 50%;
    padding: 8px;
    position: absolute;
    transform: translateY(-100%);
    transition: transform 0.3s;
    z-index: 100;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Add smooth scrolling behavior for focus management */
.scroll-mt {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}