:root {
    --main: #59baae;
    --dark: #333;
    --wp-sidebar-bg: #1d2327;
    --wp-sidebar-item: #c3c4c7;
    --wp-sidebar-hover: #f0f0f1;
    --wp-sidebar-active: #2271b1;
    --wp-content-bg: #f0f0f1;
}

a.navbar-brand img {
    width: 200px;
}

.page-header h1 {
    font-size: 30px;
    float: left;
}

.page-header {
    background-image: linear-gradient(to bottom, #fff, #f6f6f6);
    border-radius: 10px !important;
}

.form-group.main-form {
    background: #f0f0f0;
    padding: 10px 10px 14px 10px;
    width: calc(100% - 22px);
    border-radius: 4px;
    border: 1px solid #ccc;
}

.ui-widget.ui-widget-content {
    z-index: 1040;
}

ul.list-group li span {
    float: left;
}

ul.list-group li {
    border-bottom: 1px solid #ccc;
    padding: 7px 0;
    text-align: right;
}

ul.list-group {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

td.fc-timegrid-slot.fc-timegrid-slot-lane:hover {
    background: #59baae3d;
}

td.fc-timegrid-slot.fc-timegrid-slot-lane.highlighted-date {
    background: #59baae3d;
}

#calendar a {
    color: #333;
    text-decoration: none;
}

ul.list-group li p {
    margin: 0;
}

/* Compact timeline */
.timeline {
    position: relative;
    padding: 0 0 0 14px;
    margin: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #dfe5ea;
}

.timeline-item {
    position: relative;
    padding-left: 14px;
    margin-bottom: 8px;
}

.timeline-marker {
    position: absolute;
    left: -1px;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #fff;
    box-shadow: 0 0 0 1px #dfe5ea;
}

.timeline-marker.bg-primary {
    background-color: #0d6efd;
}

.timeline-marker.bg-success {
    background-color: #198754;
}

.timeline-marker.bg-warning {
    background-color: #ffc107;
}

.timeline-marker.bg-secondary {
    background-color: #6c757d;
}

.timeline-content {
    background: #fff;
    border: 1px solid #e6eaee;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 14px;
    line-height: 1.25;
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}

.timeline-header .badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
}

.timeline-date {
    font-size: 10px;
    color: #6c757d;
    white-space: nowrap;
}

.timeline-body {
    font-size: 14px;
}

.timeline-description p {
    margin: 0 0 3px;
}

.timeline-description p:last-child {
    margin-bottom: 0;
}

.timeline-description ul,
.timeline-description ol {
    margin: 3px 0 3px 14px;
    padding: 0;
}

.timeline-description li {
    margin: 0;
}

.timeline-link {
    text-decoration: none;
    color: inherit;
}

.timeline-link:hover {
    text-decoration: none;
}

.timeline-body small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
}

/* Patient info card on patient/show */
.patient-data-card {
    background: #fff;
    border: 1px solid #e6eaee;
    border-radius: 8px;
    padding: 8px 10px;
}

.patient-data-list {
    text-align: left;
}

.patient-data-list li {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 8px;
    align-items: start;
    border-bottom: 1px dashed #e5e9ed;
    padding: 5px 0;
    text-align: left;
    font-size: 12px;
    line-height: 1.3;
}

.patient-data-list li:last-child {
    border-bottom: 0;
}

.patient-data-list .label {
    float: none;
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.patient-data-list .value {
    text-align: left;
    color: #212529;
    word-break: break-word;
}

.patient-data-list .diagnosis-row .value p {
    margin: 0 0 3px;
}

.patient-data-list .diagnosis-row .value p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .patient-data-list li {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

img.file-icon {
    width: 30px;
}

.dropzone {
    border: 1px dashed #89a790;
    background: #d4e9d942;
}

.dz-message::before {
    content: "\f093";
    font-weight: 900;
    font-family: "Font Awesome 6 Free";
    display: block;
    font-size: 37px;
    margin-top: -31px;
    color: #2d9da1;
}

.dropzone .dz-message .dz-button {
    color: #2d9da1;
}

.nav-link {
    font-weight: 600;
    color: #484848;
}

a.nav-link.active {
    color: #2d9da1 !important;
}

a.nav-link:hover {
    color: #2d9da1 !important;
}

.navbar {
    padding: 0.9rem 0;
}

.admin-shell {
    min-height: 100vh;
    display: flex;
    background: var(--wp-content-bg);
}

.admin-sidebar {
    width: 250px;
    background: var(--wp-sidebar-bg);
    color: var(--wp-sidebar-item);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: visible;
}

.sidebar-brand-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand img {
    width: 155px;
    max-width: 100%;
}

.sidebar-toggler {
    border: 0;
    color: #fff;
    font-size: 18px;
    padding: 4px 8px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sidebar-nav {
    padding: 10px 0;
}

.sidebar-nav-bottom {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar .nav-link {
    color: var(--wp-sidebar-item);
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    font-weight: 500;
    line-height: 1.2;
}

.admin-sidebar .nav-icon {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.admin-sidebar .nav-link:hover {
    color: var(--wp-sidebar-hover) !important;
    background: rgba(255, 255, 255, 0.05);
}

.admin-sidebar .nav-link.active {
    color: #fff !important;
    background: var(--wp-sidebar-active);
}

.admin-sidebar .dropdown-menu {
    margin-left: 14px;
    margin-right: 14px;
    border: 1px solid #ccd0d4;
    border-radius: 0;
}

.admin-sidebar .notification-link .badge {
    position: static;
    margin-left: auto;
}

.admin-content {
    flex: 1;
    min-width: 0;
}

a {
    color: #2d9da1;
}

table.visits {
    border-collapse: collapse;
    width: 100%;
    float: left;
}

table.visits th {
    text-transform: uppercase;
    font-size: 14px;
    background: #f0f0f0;
    padding: 8px 0;
}

table.visits td {
    font-size: 14px;
    border-bottom: 1px solid #ccc;
    padding: 4px 4px;
}

td.login_user_status {
    color: green;
}

td.user_agent span {
    margin-right: 14px;
    font-size: 13px;
}

nav.navbar {
    background: #e3f2fd !important;
}

.login-col.right {
    right: 0;
    left: auto;
    background: #f7f7f7;
    width: 60%;
}

.login-col {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
}

.login-col.left {
    background: url(https://skymed.bg/wp-content/uploads/2024/06/medconsult.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right;
    width: 40%;
}

.login-form {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
}

.login-form form {
    border-radius: 6px;
    -webkit-box-shadow: 0px 2px 4px rgba(126, 142, 177, 0.12);
    box-shadow: 0px 2px 4px rgba(126, 142, 177, 0.12);
    background: #fff;
    float: left;
    padding: 20px 20px;
    color: #6c757d !important;
    width: 100%;
}

a.login-brand {
    text-align: center;
    margin-bottom: 20px;
    float: left;
    width: 100%;
}

a.login-brand img {
    width: 69%;
    float: none;
}

.form-row {
    float: left;
    width: 100%;
    margin-bottom: 11px;
}

.login-col.left:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #36ab9c2e;
}

.fright {
    float: right;
}

.notification-message span {
    width: 100%;
    float: left;
}

.notification-message span.title {
    margin-bottom: 10px;
}

.notification-message span.meta {
    margin-bottom: 10px;
    color: #0000a6;
    font-size: 14px;
    text-align: right;
}

.notification-link i {
    color: #000;
    font-size: 21px;
}

.notification-link span.badge {
    position: absolute;
    top: 1px;
    right: 8px;
}

.notification-link {
    position: relative;
}

.notification-message {
    float: left;
    width: calc(100% - 10px);
    padding: 5px;
}

.notification-message:hover {
    background: #f0f0f0;
}

*:not([class^="swal2"]) {
    border-radius: 0 !important;
}

.support-chat {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #fff;
    display: none;
}

.support-chat form {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
}

a.support-link {
    position: fixed;
    right: 10px;
    bottom: 10px;
    background: #FFEB3B;
    border-radius: 50px !important;
    width: 50px;
    height: 50px;
    text-align: center;
    color: #040470;
    line-height: 50px;
    z-index: 11;
}

.spinner-border {
    border-radius: 50% !important;
    width: 100px;
    height: 100px;
    border-width: 13px;
}

div#loader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #ffffff96;
    display: none;
    z-index: 11111;
}

div#loader .loader {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

td.user-date span {
    display: block;
    font-size: 14px;
    font-style: italic;
    color: #666666;
}

.popover {
    max-width: none !important;
    width: 800px;
    height: 900px;
}

.popover-body {
    padding: 0;
}

.popover iframe,
.popover img {
    display: block;
    width: 100%;
    height: auto;
    height: 900px;
    max-height: 900px;
}


a.fc-event {
    max-width: 200px;
}

.select2-container {
    z-index: 1040;
}

.select2-container--open {
    z-index: 1048;
}

.select2-dropdown {
    z-index: inherit;
}

/* Keep Select2/jQuery UI above modal content only when a modal is open */
.modal-open .select2-container--open,
.modal-open .ui-widget.ui-widget-content {
    z-index: 1060 !important;
}

.timeline-bubble {
    background: #dfdfdf;
    margin: 10px;
    padding: 10px;
}
span.timeline-bubble-title {
    background: forestgreen;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    color: #fff;
}
span.timeline-bubble-date {
    font-size: 10px;
    color: #6c757d;
    white-space: nowrap;
    float: right;
}