
:root {
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body {
    font-family: "Lato", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    font-weight: normal;
    background: #f8f9fd;
    /*color: gray;*/
}

a {
    -webkit-transition: .3s all ease;
    -o-transition: .3s all ease;
    transition: .3s all ease;
    color: #1089ff;
}

a:hover, a:focus {
    text-decoration: none !important;
    outline: none !important;
    -webkit-box-shadow: none;
    box-shadow: none;
}

h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5 {
    line-height: 1.5;
    font-weight: 400;
    font-family: "Lato", Arial, sans-serif;
    color: #000;
}

.bg-primary {
    background: #1089ff !important;
}

.ftco-section {
    padding: 7em 0;
}

.ftco-no-pt {
    padding-top: 0;
}

.ftco-no-pb {
    padding-bottom: 0;
}

.heading-section {
    font-size: 28px;
    color: #000;
}

.img {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.login-wrap {
    position: relative;
    background: #fff;
    border-radius: 10px;
    -webkit-box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24);
    -moz-box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24);
    box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24);
}

.login-wrap h3 {
    font-weight: 300;
}

.login-wrap .icon {
    width: 80px;
    height: 80px;
    background: #1089ff;
    border-radius: 50%;
    font-size: 30px;
    margin: 0 auto;
    margin-bottom: 10px;
}

.login-wrap .icon span {
    color: #fff;
}

.form-control {
    height: 52px;
    background: #fff;
    color: #000;
    font-size: 16px;
    border-radius: 5px;
    -webkit-box-shadow: none;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-control:focus, .form-control:active {
    outline: none !important;
    -webkit-box-shadow: none;
    box-shadow: none;
    border: 1px solid #1089ff;
}

textarea.form-control {
    height: inherit !important;
}

.checkbox-wrap {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default checkbox */
.checkbox-wrap input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "\f0c8";
    font-family: "FontAwesome";
    position: absolute;
    color: rgba(0, 0, 0, 0.1);
    font-size: 20px;
    margin-top: -4px;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}

/* Show the checkmark when checked */
.checkbox-wrap input:checked ~ .checkmark:after {
    display: block;
    content: "\f14a";
    font-family: "FontAwesome";
    color: rgba(0, 0, 0, 0.2);
}

/* Style the checkmark/indicator */
.checkbox-primary {
    color: #1089ff;
}

.checkbox-primary input:checked ~ .checkmark:after {
    color: #1089ff;
}

.btn {
    cursor: pointer;
    border-radius: 40px;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    font-size: 15px;
}

.btn:hover, .btn:active, .btn:focus {
    outline: none;
}

.btn.btn-primary {
    background: #1089ff !important;
    border: 1px solid #1089ff !important;
    color: #fff !important;
}

.login-text {
    font-weight: 300;
}

/* Sidebar Styles */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    margin-left: -250px;
}

.sidebar .sidebar-header {
    padding: 20px;
    background: #007bff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar .sidebar-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
}

.sidebar-profile {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.sidebar-profile .profile-pic {
    margin-bottom: 10px;
    color: #007bff;
}

.sidebar-profile .profile-info {
    display: flex;
    flex-direction: column;
}

.sidebar-profile .profile-info span {
    font-weight: bold;
    color: #333;
}

.sidebar-profile .profile-info small {
    color: #666;
}

.sidebar ul.components {
    padding: 20px 0;
    margin: 0;
}

.sidebar ul li {
    padding: 0;
    margin: 0;
}

.sidebar ul li a {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    position: relative; /* Add this */
}

.sidebar ul li a:hover {
    background: #f8f9fa;
    color: #007bff;
}

.sidebar ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.btn-logout {
    width: 100%;
    background: none;
    border: none;
    color: #dc3545;
    text-align: left;
    padding: 10px;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #fee2e2;
}

#sidebarCollapse {
    background: none;
    border: none;
    color: #fff;
    display: none;
}

/* Content Style */
#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
}

/* Responsive Design */
@media (max-width: 991.98px) { /* Bootstrap's lg breakpoint */
    #content {
        margin-top: 56px; /* Height of navbar */
    }
}

#adminSubmenu {
    padding-left: 35px;
    background: #f8f9fa;
}

#adminSubmenu li a {
    padding: 10px 20px;
    font-size: 0.9em;
}

#adminSubmenu li a:hover {
    background: #eaeaea;
}

#adminSubmenu li a::after {
    display: none;
}

.sidebar ul li a.dropdown-toggle {
    padding-right: 40px; /* Add space for the arrow */
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

/* Password validation styles */
.password-requirements {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

.password-requirements ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.password-requirements li {
    margin-bottom: 0.2rem;
}

.is-valid {
    border-color: #28a745 !important;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Form validation styles */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-control.is-valid,
.was-validated .form-control:valid {
    border-color: #28a745;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.form-text {
    margin-top: .25rem;
    font-size: .875rem;
}

.form-text ul {
    margin-top: .5rem;
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.form-text li {
    margin-bottom: .2rem;
}

/* Sidebar submenu styling */
.sidebar ul.components .dropdown-toggle,
.sidebar ul.components .collapse.list-unstyled li a {
    font-size: 0.9em;    /* Consistent font size for both main and submenu items */
}

.sidebar ul.components .collapse.list-unstyled {
    padding-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-left: 10px;
}

.sidebar ul.components .collapse.list-unstyled li a {
    padding-left: 10px;
}

/* Prevent text size jumping on hover */
.sidebar ul li a:hover {
    background: #f8f9fa;
    color: #007bff;
    transform: none;  /* Prevent any transform on hover */
}

/* Consistent submenu styling for both Attorneys and Administration */
#attorneySubmenu,
#adminSubmenu,
#caseworkerSubmenu,
#patientSubmenu {
    padding-left: 35px;
    background: #f8f9fa;
}

#attorneySubmenu li a,
#adminSubmenu li a,
#caseworkerSubmenu li a,
#patientSubmenu li a {
    padding: 10px 20px;
    font-size: 0.9em;
}

#attorneySubmenu li a:hover,
#adminSubmenu li a:hover,
#caseworkerSubmenu li a:hover,
#patientSubmenu li a:hover {
    background: #eaeaea;
}

#attorneySubmenu li a::after,
#adminSubmenu li a::after,
#caseworkerSubmenu li a::after,
#patientSubmenu li a::after {
    display: none;
}

/* Dropdown toggle arrow positioning */
.sidebar ul li a.dropdown-toggle {
    padding-right: 40px;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.color-preview {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: inline-block;
    margin-right: 8px;
}

.color-container {
    display: flex;
    align-items: center;
}

input[type="color"] {
    height: 38px;
    padding: 2px;
    width: 100%;
}

.fc-event-main-frame {
    overflow: hidden;
}

.event-content-wrapper {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    font-size: 0.85em;
    line-height: 1.2;
    padding: 2px 4px;
}

.sortable-row {
    transition: background-color 0.2s ease;
}
.sortable-ghost {
    background-color: #f8f9fa !important;
    opacity: 0.5;
}
.sortable-chosen {
    background-color: #fff !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.handle {
    cursor: move;
    padding: 8px;
    text-align: center;
}
.handle i {
    font-size: 1.2em;
}

.common-diagnosis {
    color: #2c3e50;
    position: relative;
    margin-bottom: 0.5rem;
    text-align: left;
    transition: all 0.3s ease;
}

.selected-diagnosis {
    background-color: #e8f4ff !important;
    border-color: #0d6efd !important;
    color: #0d6efd !important;
    padding-right: 35px !important;
}

.selected-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #0d6efd;
    font-weight: bold;
}

.common-diagnosis:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.selected-diagnosis:hover {
    background-color: #d1e7ff !important;
}

/* Delete button for selected diagnoses */
.delete-code {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #dc3545;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.delete-code:hover {
    color: #c82333;
}

/* Stylish search input */
.icd10-search {
    width: 100%;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s ease-in-out;
}

/* Search results dropdown */
#searchResults {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 5px;
}

/* Search results items */
#searchResults .list-group-item {
    padding: 10px;
    border: none;
    font-size: 0.95rem;
    transition: background 0.3s;
    cursor: pointer;
}

#searchResults .list-group-item:hover {
    background: #007bff;
    color: #fff;
}

/* Selected Diagnosis Cards */
/*.card {*/
/*    position: relative;*/
/*    border-radius: 8px;*/
/*    border: 1px solid #ddd;*/
/*    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
/*}*/

/* Common Diagnoses Section */
#commonDiagnoses button {
    margin: 5px;
}

/*.card-header {*/
/*    padding: 0;*/
/*    background-color: #f8f9fa;*/
/*}*/

.category-btn {
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    color: #0056b3;
    text-decoration: none;
    background-color: transparent;
    border: none;
}

.category-btn:hover {
    text-decoration: none;
    color: #004085;
    background-color: #e7f1ff;
}

.category-btn:focus {
    outline: none;
    box-shadow: none;
}

.category-btn[aria-expanded="true"] {
    background-color: #e7f1ff;
    color: #004085;
}

.common-diagnosis {
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    margin-bottom: 0.5rem;
}

.common-diagnosis:hover {
    transform: translateX(5px);
}

.diagnosis-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.diagnosis-code {
    font-weight: bold;
    white-space: nowrap;
}

.diagnosis-description {
    margin: 0;
}

.main-section-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    padding: 1rem 1.25rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 0.5rem 0.5rem 0 0;
    margin-bottom: 0;
    margin-top: 2rem;
}

.common-conditions {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

.common-conditions .form-check {
    margin-right: 1rem;
}

.common-conditions .form-check-label {
    font-size: 0.875rem;
}

/*.card {*/
/*    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);*/
/*    border: none;*/
/*    margin-bottom: 1rem;*/
/*}*/

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.table-borderless th {
    color: #6c757d;
}

.badge {
    padding: 0.5em 1em;
}

.badge-success {
    background-color: #28a745;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-warning {
    background-color: #ffc107;
    color: #000;
}

.badge-info {
    background-color: #17a2b8;
}

.badge-primary {
    background-color: #007bff;
}

.badge-secondary {
    background-color: #6c757d;
}

/* Force all calendar events to use dark gray color */
.fc-event {
    background-color: #404040 !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}

.fc-event:not(.fc-event-blocked) {
    background-color: #404040 !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}