/* ========================================================
    Global Resets and Defaults
   ======================================================== */

/* Normalize/reset styles or your own CSS reset */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
dl,
dd,
ol,
ul,
figure,
hr {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font: inherit;
    text-decoration: none;
}

ul {
    padding-left: 0px !important;
    margin-bottom: 0px !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-bottom: 0 !important;
}

a {
    text-decoration: none !important;
}

/* Set box-sizing globally */
*,
*::before,
*::after {
    box-sizing: inherit;
}

/* ========================================================
    Global Styles
   ======================================================== */

/* :root section for defining colors and other variables */

:root {
    --primary-color: #05274a; /* Primary color */
    --secondary-color: #33afdd; /* Secondary color */
    --text-color: #0c0c0c; /* Text color */
    --white-color: #ffffff;
    --main-red: #c62e2e;
    --main-green: #35bc6c;
    --borders-color: #f2f2f2; /* borders color */
    --main-border-radius: 8px;
}

@font-face {
    font-family: "Bahnschrift-Custom";
    src: url("/fonts/BAHNSCHRIFT-5.woff2") format("woff2"),
        url("/fonts/BAHNSCHRIFT-5.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

/* Body and Typography */
body {
    font-family: "Bahnschrift-Custom", sans-serif;
    background-color: var(--borders-color) !important;
}

.main-body {
    background-image: url("../images/backgrounds/background-design-login-pattern.png");
    /* Position the background */
    background-position: center;
    background-repeat: repeat-y;
}

.container-fix {
    padding: 0 3em !important;
}

/* 
    =======================================================
    Sidebar Styles
   ======================================================== 
*/
.sidebar {
    position: fixed;
    left: 0;
    width: 256px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--primary-color);
    padding: 24px;
    border-top-right-radius: var(--main-border-radius);
    border-bottom-right-radius: var(--main-border-radius);
    gap: 20px;
    transition-property: width;
    transition: all 0.3s;
    z-index: 50;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar .head {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--borders-color);
}

.side-logo {
    width: 170px;
}

.side-logo img {
    width: 100%;
    object-fit: cover;
}

/* Hide the small logo by default */
.side-logo .logo-small {
    display: none;
    width: 38px;
    padding-left: 6px;
    padding-bottom: 8px;
}

/* When the sidebar is active (closed) */
.sidebar.active .side-logo .logo-large {
    display: none;
}

.sidebar.active .side-logo .logo-small {
    display: block;
}

.sidebar-title {
    font-size: 10px;
    font-weight: 500;
    color: var(--white-color);
    text-transform: uppercase;
    margin-bottom: 10px !important;
}

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

.sidebar-menu ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    color: var(--white-color);
    padding: 12px 15px;
    border-radius: var(--main-border-radius);
    transition: all 0.3s;
}

.sidebar-menu ul li a span {
    margin-bottom: -4.5px;
}

.sidebar-menu ul li:hover a,
.sidebar-menu ul li.active > a {
    color: var(--secondary-color);
    background-color: var(--white-color);
}

.sidebar-menu ul li svg {
    font-size: 18px; /* Controls the size */
    color: var(--white-color); /* Changes the stroke color */
    width: 1em; /* Makes size relative to font-size */
    height: 1em; /* Matches height to width */
    display: inline-block; /* Ensures it aligns properly */
    transition: all 0.3s;
}

.sidebar-menu ul li:hover svg,
.sidebar-menu ul li.active svg {
    color: var(--secondary-color); /* Hover color */
}

.sidebar-menu ul li .sidebar-menu-text {
    flex: 1;
}

.sidebar-menu:not(:last-child) {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--borders-color);
}

.sidebar-nav {
    flex: 1;
}

.sidebar-open-btn {
    position: absolute;
    right: -14px;
    top: 3.5%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--main-border-radius);
    border: 2px solid var(--borders-color);
    color: var(--primary-color);
    background-color: var(--white-color);
}

.sidebar-open-btn i {
    transition: all 0.3s;
}

.sidebar-open-btn:hover i {
    color: var(--text-color);
}

.sidebar.active {
    width: 92px;
}

.sidebar.active .sidebar-open-btn i {
    transform: rotate(180deg);
    line-height: 30px;
}

.sidebar.active .logo-details {
    display: none;
}

.sidebar.active .sidebar-menu .sidebar-title {
    text-align: center;
}

.sidebar.active .sidebar-menu > ul > li > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar.active .sidebar-menu > ul > li > a .sidebar-menu-text {
    width: 110px;
    text-align: center;
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    border-radius: var(--main-border-radius);
    color: var(--white-color);
    background-color: var(--primary-color);
    display: none;
    transition: all 0.3s;
}

.sidebar.active .sidebar-menu > ul > li > a .sidebar-menu-text::after {
    content: "";
    position: absolute;
    left: -5px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 2px;
    background-color: var(--primary-color);
    transform: rotate(45deg);
    z-index: -1;
}

.sidebar.active .sidebar-menu > ul > li > a:hover .sidebar-menu-text {
    left: 70px;
    display: block;
}

.sidebar .sidebar-menu .sidebar-menu-profile {
    display: none;
}

/* 
    =======================================================
    Main Style
   ======================================================== 
*/

.main-content {
    margin-left: 256px;
    transition-property: margin-left;
    transition: all 0.3s;
}

/* When sidebar is collapsed */
.sidebar.active + .main-content {
    margin-left: 92px; /* Match the collapsed width of the sidebar */
}

.link-btn-comp,
.btn-comp {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white-color);
    background-color: var(--secondary-color);
    border: none;
    border-radius: var(--main-border-radius);
    padding: 0.6em 1em;
    transition: all 0.2s;
}

.gradiant-btn {
    background: linear-gradient(
        to right,
        var(--secondary-color),
        var(--primary-color)
    );
}
.gradiant-btn:hover {
    background: linear-gradient(to right, #08759d, #021c37);
}

/* 
    =======================================================
    Navbar Style
   ======================================================== 
*/

.navbar-head {
    z-index: 1000;
}

.navbar-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px !important;
}

.navbar-title p {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--secondary-color);
}

.nav-avatar {
    cursor: pointer;
}

.avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
}

.avatar img {
    width: 100%;
    object-fit: cover;
    cursor: pointer;
}

.avatar-list.dropdown-menu {
    transform: translate(0px, 50px) !important;
}

.dropdown-menu {
    transform: translate(0px, 45.5px) !important;
    background-color: var(--white-color) !important;
    padding: 1em !important;
    border-radius: var(--main-border-radius) !important;
}

.dropdown p {
    font-size: 20px;
    font-weight: 400;
    margin-top: -7px;
}

.nav-avatar .dropdown i {
    margin-left: 10px;
    margin-bottom: 0.6em;
}

.dropdown-menu li {
    margin-bottom: 0.8em;
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

.dropdown-menu li a {
    font-size: 1.1rem !important;
    color: var(--secondary-color);
    padding-top: 0.7em;
    padding-bottom: 0.6em;
}

.dropdown-menu li a:hover {
    color: var(--secondary-color) !important;
    background-color: var(--borders-color) !important;
    border-radius: var(--main-border-radius) !important;
}

.dropdown-menu li a:active {
    color: var(--secondary-color) !important;
    background-color: var(--borders-color) !important;
    border-radius: var(--main-border-radius) !important;
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    margin-right: 0.5em;
}

/* 
    =======================================================
    Footer Style
   ======================================================== 
*/

.main-footer {
    background-color: transparent;
    padding: 1.3em 0;
    color: var(--text-color);
    font-size: 1rem;
    background-color: var(--white-color);
    text-align: center;
}

.main-footer a {
    color: var(--secondary-color);
}

/* ========================================================
    Login Page Styles
   ======================================================== */
.form-infield {
    position: relative;
    margin: 5px 0px;
    width: 100%;
}

.input-form-inner {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--white-color);
    border: none;
    outline: none;
    border-radius: var(--main-border-radius);
}

.input-form {
    width: 100%;
    padding: 12px 15px;
    background-color: #f3f3f3;
    border: none;
    outline: none;
    border-radius: var(--main-border-radius);
}

.fileds-head {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid var(--white-color);
    padding-bottom: 0.5em;
}

.fixed-textarea {
    width: 100%; /* Set your desired fixed width */
    max-width: 100%; /* Ensure it doesn't exceed container width on smaller screens */
    height: 150px; /* Set a fixed height if needed */
    resize: none; /* Prevent users from resizing the textarea */
    overflow: auto; /* Enable scrollbars when content overflows */
}

.select-form-inner {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--white-color);
    border: none;
    outline: none;
    border-radius: var(--main-border-radius);
    color: var(--text-color); /* Text color */
    font-size: 16px;
}

.select-border {
    border: 1px solid var(--secondary-color);
}

.error-input-login,
.remember-me {
    font-size: 1rem;
    font-weight: 500;
    display: block;
}

.error-input-login {
    color: var(--main-red);
    margin-bottom: 5px;
    margin-top: 8px;
}

.lable-form-inner {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
    margin-top: 16px;
    display: block;
}

.login-body {
    height: 100vh;
    display: grid;
    place-content: center;
    background-image: url("../images/backgrounds/background-design-login-pattern.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.login-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 850px;
    height: 500px;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.25);
    border-radius: var(--main-border-radius);
    overflow: hidden;
    z-index: 100;
}

.login-form-container {
    width: 60%;
    height: 100%;
    padding: 0px 40px;
    background-color: var(--white-color);
}

.login-interface-container {
    z-index: 2;
}

.login-form-container form {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.login-form-container form h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5em !important;
}

.form-reset-password {
    color: var(--secondary-color);
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0px 30px 0px;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--borders-color);
}

.login-overlay-container {
    width: 40%;
    height: 100%;
    overflow: hidden;
    z-index: 9;
}

.login-overlay {
    position: relative;
    background: url("../images/backgrounds/login-left-overlay.png"),
        linear-gradient(
            149.66deg,
            #33afdd 15.28%,
            #2077a0 58.94%,
            #05274a 116.41%
        );

    /* Position the background */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    color: var(--white-color);
    height: 100%;
    width: 100%;
}

.login-overlay-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0px 40px;
    text-align: center;
    height: 100%;
}

.login-overlay-panel h1 {
    font-size: 2rem;
    color: var(--white-color);
    font-weight: 700;
}

.login-overlay-panel p {
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 10px 0 20px;
}

.login-overlay-panel .overlay-logo {
    width: 200px;
    margin-bottom: 2em;
}
.login-overlay-panel .overlay-logo img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 
    =======================================================
    Table Styles
   ======================================================== 
*/
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--white-color);
    color: var(--text-color);
    border-radius: var(--main-border-radius);
    overflow: hidden; /* Ensures border-radius is applied correctly */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-table thead {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.custom-table thead th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

tbody,
td,
tfoot,
th,
thead,
tr {
    border-left: 1px solid var(--borders-color);
    transition: background-color 0.3s;
}

.custom-table tbody tr:nth-child(odd) {
    background-color: var(--white-color);
}

/* Apply gray color to even rows */
.custom-table tbody tr:nth-child(even) {
    background-color: #eee;
}

.custom-table tbody td {
    padding: 12px;
}

.taple-empty {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-color);
    padding: 20px 0 !important;
    text-align: center;
}

.table-info-showing {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    padding-top: 20px;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5em;
    margin-top: 2em;
}

.pagination-link {
    color: var(--text-color);
    cursor: pointer;
}
.pagination-link i {
    padding: 0 0.5em !important;
}

.pagination-link-number {
    color: rgba(172, 168, 168, 1);
    background-color: transparent;
    padding: 0.5em 0.7em;
    border-radius: var(--main-border-radius);
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-link-number:hover {
    color: var(--white-color);
    background-color: var(--secondary-color);
}

.pagination-link-number.active {
    color: var(--white-color);
    background-color: var(--secondary-color);
}

/* ========================================================
    Taps Styles
   ======================================================== */
.nav-tabs {
    width: 99.5%;
}

.nav-tabs .nav-link {
    color: var(--secondary-color);
    font-size: 20px;
    font-weight: 700;
    padding: 0.5em 2em;
}

.nav-tabs .nav-link:hover {
    color: var(--white-color);
    background-color: var(--secondary-color);
}

.nav-tabs .nav-link.active {
    font-weight: bold;
    color: var(--white-color);
    background-color: var(--secondary-color);
}

.tab-content > .tab-pane {
    padding: 20px 0;
    border-top: 1px solid rgba(172, 168, 168, 1);
}

.profile-heads {
    width: 225px;
    font-size: 24px;
    color: var(--secondary-color);
    font-weight: 700;
    padding-bottom: 0.2em;
    margin: 0.3em 0;
    border-bottom: 1px solid var(--secondary-color);
}

.history-cards {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 2.5em;
    background-color: var(--white-color);
    border-radius: var(--main-border-radius);
    padding: 1em 2em;
    margin-bottom: 0.7em;
}

.history-cards p {
    font-size: 18px;
    font-weight: 400;
}

.history-cards svg {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
    margin-top: -3px;
}

.history-cards:last-child {
    margin-bottom: 0px;
}

/* ========================================================
    Loading Styles
   ======================================================== */

/* Loading Overlay Styles */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(
        255,
        255,
        255,
        0.8
    ); /* Semi-transparent background */
    z-index: 9999; /* Ensure it's above all other elements in .main-content */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    opacity: 1;
}

#loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ========================================================
    Card Styles
   ======================================================== */
.patient-card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1em;
}
.patient-card {
    background-color: var(--white-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: var(--main-border-radius);
}

.patient-card-head {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--borders-color);
    gap: 1em;
    padding: 20px 20px 0.8em 20px;
}

.patient-card-head svg {
    font-size: 28px; /* Controls the size */
    color: var(--secondary-color); /* Changes the stroke color */
    width: 1em; /* Makes size relative to font-size */
    height: 1em; /* Matches height to width */
    display: inline-block; /* Ensures it aligns properly */
    transition: all 0.3s;
}

.patient-card-name {
    font-weight: 700;
    font-size: 20px;
    color: var(--text-color);
}
.patient-card-status,
.out-patient {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--white-color);
    padding: 0.7em 0;
    margin-top: 0.8em;
    border-bottom-left-radius: var(--main-border-radius);
    border-bottom-right-radius: var(--main-border-radius);
}

.patient-card-status {
    background-color: var(--main-green);
}

.out-patient {
    background-color: var(--main-red);
}

.patient-card-status svg,
.out-patient svg {
    font-size: 22px; /* Controls the size */
    color: var(--white-color); /* Changes the stroke color */
    width: 1em; /* Makes size relative to font-size */
    height: 1em; /* Matches height to width */
    display: inline-block; /* Ensures it aligns properly */
    transition: all 0.3s;
}

.patient-card-head-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8em;
    padding: 0.7em 20px 0px 20px;
}

.btn-action-icon,
.btn-action-icon-close {
    border-radius: var(--main-border-radius);
    background-color: transparent;
    color: var(--secondary-color);
    transition: all 0.3s;
    text-align: center;
}

.btn-action-icon {
    border: 1px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5em 0.7em;
}

.btn-action-icon-close {
    border: 1px solid var(--main-red);
    line-height: 35px;
    padding: 0 0.7em;
}

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

.btn-action-icon svg {
    font-size: 18px; /* Controls the size */
    color: var(--secondary-color); /* Changes the stroke color */
    width: 1em; /* Makes size relative to font-size */
    height: 1em; /* Matches height to width */
    transition: all 0.3s;
}

.btn-action-icon:hover svg {
    color: var(--white-color);
}

.btn-action-icon-close:hover {
    background-color: var(--main-red);
}

.btn-action-icon:hover i,
.btn-action-icon-close:hover i {
    color: var(--white-color);
}

.btn-action-icon i {
    color: var(--secondary-color);
    transition: all 0.3s;
}

.btn-action-icon-close i {
    color: var(--main-red);
}

.patient-card-items {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 1.5em 20px 0px 20px;
}

.patient-card-items-left {
    width: 50%;
    border-right: 1px solid var(--borders-color);
    padding-right: 1.3em;
}
.patient-card-items-right {
    width: 50%;
    padding-left: 1.3em;
}

.patient-card-items h3 {
    color: rgba(172, 168, 168, 1);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0.35em !important;
}

.patient-card-items h3:last-child {
    margin-bottom: 0px !important;
}

.patient-card-items h4 {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 400;
}

.patient-card-items h4:last-child {
    margin-bottom: 0px !important;
}

.card-space {
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--borders-color);
}

.card-space:last-child {
    border: none;
    margin-bottom: 0px;
}

/* ========================================================
    Radio Styles
   ======================================================== */

/* Style the radio group container */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Style each radio wrapper */
.radio-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Style the radio button itself */
.radio-form {
    width: 18px;
    height: 18px;
    appearance: none;
    border: 2px solid var(--secondary-color);
    border-radius: 50%; /* Make it circular */
    background-color: var(--white-color);
    transition: background-color 0.2s, border-color 0.2s;
    cursor: pointer;
}

/* Radio checked state */
.radio-form:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Add a dot effect for checked state */
.radio-form:checked::after {
    content: "";
    background-color: var(--white-color);
    border-radius: 50%; /* Dot inside circle */
    margin: auto;
}

/* Style the label */
.radio-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    margin-top: 3px;
}

/* Focus state for accessibility */
.radio-form:focus {
    outline: 2px solid #80bdff;
    outline-offset: 2px;
}

.mid-head {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.7em !important;
}

/* ========================================================
    Check box Styles
   ======================================================== */

/* Style the checkbox group container */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Style each checkbox wrapper */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Style the checkbox itself */
.checkbox-form {
    width: 18px;
    height: 18px;
    appearance: none;
    border: 2px solid var(--secondary-color);
    border-radius: 4px;
    background-color: var(--white-color);
    transition: background-color 0.2s, border-color 0.2s;
    cursor: pointer;
}

/* Checkbox checked state */
.checkbox-form:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Add a checkmark effect */
.checkbox-form:checked::after {
    content: "";
    margin: auto;
    background-color: var(--white-color);
    border-radius: 2px;
    transform: scale(1);
    transition: transform 0.2s ease-in-out;
}

/* Style the label */
.checkbox-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    margin-top: 3px;
}

/* Focus state for accessibility */
.checkbox-form:focus {
    outline: 2px solid #80bdff;
    outline-offset: 2px;
}

/* ========================================================
    Steps Styles
   ======================================================== */
.steps {
    display: flex;
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.step {
    text-align: center;
    position: relative;
    flex: 1;
}

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

.step-circle {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border-radius: 50%;
    background-color: #e0e0e0; /* Gray for incomplete steps */
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number {
    font-size: 18px;
    font-weight: bold;
}

.step-title {
    color: var(--text-color);
    margin-top: 10px;
    font-size: 15px;
}

.step-line {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #e0e0e0; /* Gray line for incomplete steps */
    z-index: -1;
}

.step:last-child .step-line {
    display: none;
}

.step.completed .step-circle {
    background-color: var(--main-green); /* Green for completed steps */
    color: #fff;
}

/* Line after a completed step */
.step.completed .step-line {
    background-color: var(--main-green); /* Green line */
}

.step.active .step-circle {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* ========================================================
    Dashbaord Upper Box Styles
   ======================================================== */
.dashboard-upper-box {
    background: url("../images/backgrounds/login-left-overlay.png"),
        linear-gradient(90deg, #33afdd 0%, #05274a 100%);

    /* Position the background */
    background-position: center;
    background-repeat: repeat-x;
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 55px 40px 0 40px;
    position: relative;
}

.dashbaord-upper-box-left {
    margin-top: -50px;
}

.dashbaord-upper-box-left h2 {
    color: var(--primary-color);
    font-size: 48px;
    font-weight: 700;
}

.dashbaord-upper-box-left h3 {
    color: var(--white-color);
    font-size: 48px;
    font-weight: 700;
}

.dashbaord-upper-box-left h4 {
    color: var(--white-color);
    font-size: 32px;
    font-weight: 400;
    margin-top: 20px;
}

.dashbaord-upper-box-right img {
    width: 100%;
    height: 100%;
    margin-top: -100px;
}

.dashboard-num-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.8em;
    margin: 27px 0;
}

.dashboard-num-cards {
    background-color: #fff;
    border: 1px solid var(--secondary-color);
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 1.2em;
    padding: 12px 24px;
}

.dashboard-num-cards-icon svg {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
}

.dashboard-num-cards-icon {
    border: 1.7px solid var(--primary-color);
    padding: 15px;
    border-radius: 50%;
}

.dashboard-num-cards-numbers h3 {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-color);
}

.dashboard-num-cards-numbers h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-color);
}
.dashboard-num-cards-numbers h4 {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-color);
}

.charts-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2em;
}

.chart-box,
.chart-box-2 {
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid var(--secondary-color);
    border-radius: 40px;
    padding: 0px 24px;
}

.chart-box {
    width: 400px;
    height: 420px;
}

chart-box-2 {
    width: 100%;
    height: 440px;
}

/* ========================================================
    Search & Filters Styles
   ======================================================== */
.icon-search-box {
    position: absolute;
    top: 0;
    right: 0;
    padding-right: 0.5em;
    transform: translateY(50%);
}

.notfound-text {
    font-size: 24px;
    font-weight: 400;
}

/* ========================================================
    Media Queries and Responsive Styles
   ======================================================== */

/* Mobile-first styles */

@media only screen and (max-width: 1400px) {
    .dashboard-num-cards-container {
        gap: 1.8em;
    }

    .dashboard-num-cards-numbers h3 {
        font-size: 16px;
    }
}

@media only screen and (max-width: 992px) {
    .login-container {
        flex-direction: column;
        width: 600px;
        height: 600px;
    }

    .login-overlay-container {
        width: 100%;
    }
    .login-form-container {
        width: 100%;
        padding: 20px 40px;
    }

    .patient-card-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .login-overlay-panel .overlay-logo {
        width: 140px;
        margin-bottom: 1em;
    }
    .login-overlay-panel h1 {
        font-size: 1.6rem;
    }

    .login-overlay-panel p {
        font-size: 13px;
    }
}

@media only screen and (max-width: 768px) {
    .sidebar .sidebar-menu .sidebar-menu-profile {
        display: block;
    }

    .login-container {
        width: 500px;
    }

    .custom-table thead {
        display: none;
    }

    .custom-table tbody tr {
        display: block;
        margin-bottom: 15px;
    }

    .custom-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 12px;
    }

    .custom-table tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--secondary-color);
    }

    .custom-table tbody td:last-child {
        border-bottom: none;
    }

    .patient-card-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media only screen and (max-width: 576px) {
    .container-fix {
        padding: 0 1em !important;
    }

    .navbar-title {
        width: 100%;
    }

    .navbar-title h2 {
        font-size: 1.8rem;
        font-weight: 700;
    }

    .navbar-title p {
        font-size: 1.2rem;
        font-weight: 500;
    }

    .nav-avatar {
        display: none;
    }

    .main-footer {
        font-size: 0.9rem;
    }

    .link-btn-comp,
    .btn-comp {
        font-size: 1rem;
        padding: 0.4em 0.9em;
    }

    .login-container {
        width: 350px;
    }

    .login-form-container {
        padding: 20px 0px;
    }

    .login-overlay-panel .overlay-logo {
        width: 110px;
        margin-bottom: 1em;
    }

    .login-overlay-panel h1 {
        font-size: 1.4rem;
    }

    .login-overlay-panel p {
        font-size: 12px;
    }

    .login-form-container form {
        padding: 0 20px;
    }

    .mt-5 {
        margin-top: 1em !important;
    }
}
