html {
  font-size: 18px;
}
.pre_errors{
    overflow: auto;
    max-width: 450px;
    max-height: 240px;
}
table#result_list th, table#result_list td{
    min-width: 100px;
    word-break: break-word;
    word-wrap: break-word;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Buttons on fly */
#jazzy-actions {
    position: fixed;
    top: 167px;
    right: 10px;
    max-width: 25%;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px 20px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: top 0.3s ease;
    min-width: 200px;
}

.changeTimeAudio {
    cursor: pointer;
    /*text-decoration: green wavy underline;*/
    text-decoration: underline dotted green;
}

.playerSpeedLabel {
    min-width: 35px;
    text-align: center;
}

/* Admin timeline */
.vertical-timeline {
    width: 100%;
    position: relative;
    padding: 0rem 0 1rem;
}

.vertical-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 170px;
    height: 100%;
    width: 4px;
    background: #e9ecef;
    border-radius: .25rem;
}

.vertical-timeline-element {
    position: relative;
    margin: 0 0 1rem;
}

.vertical-timeline--animate .vertical-timeline-element-icon.bounce-in {
    visibility: visible;
    animation: cd-bounce-1 .8s;
}
.vertical-timeline-element-icon {
    position: absolute;
    top: -2px;
    left: 160px;
}

.vertical-timeline-element-icon .badge-dot-xl {
    box-shadow: 0 0 0 5px #fff;
}

.badge-dot-xl {
    width: 18px;
    height: 18px;
    position: relative;
}
.badge:empty {
    display: none;
}


.badge-dot-xl::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: .25rem;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -5px 0 0 -5px;
    background: #fff;
}

.vertical-timeline-element-content {
    position: relative;
    margin-left: 90px;
    font-size: .8rem;
}

.vertical-timeline-element-content .timeline-title {
    font-size: .8rem;
    text-transform: uppercase;
    margin: 0 0 0px 96px;
    padding: 0px 0 0;
    font-weight: bold;
}

.vertical-timeline-element-content .vertical-timeline-element-date {
    display: block;
    position: absolute;
    left: -90px;
    top: 0;
    padding-right: 10px;
    text-align: right;
    color: #adb5bd;
    font-size: .7619rem;
    white-space: nowrap;
}

.vertical-timeline-element-content:after {
    content: "";
    display: table;
    clear: both;
}

.select2-selection__rendered {
    margin-top: 0 !important;
}

table#result_list th, table#result_list td {
    min-width: 110px;
}

.select2-container {
    min-width: 120px;
}

table#result_list td {
    word-break: break-word;
    word-wrap: break-word;
}

table#result_list th {
    word-break: normal;
    word-wrap: normal;
}

.no-wrap {
    white-space: nowrap;
}

th:last-child {
  text-align: center;
  vertical-align: middle;
}

/* Improved view of cards on the dashboard */

.card-header {
    border-radius: 8px 8px 0 0 !important;
    padding: 15px;
    font-weight: bold;
}

/* Стилизация таблиц */
.table thead th {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Improved buttons */
.btn {
    border-radius: 6px;
    padding: 8px 16px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

.btn-success {
    background: linear-gradient(135deg, #1cc88a 0%, #169a6e 100%);
}

.btn-info {
    background: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #e74a3b 0%, #c52121 100%);
}

/* Animations for page transitions */
.fade-transition {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

body.ready .content-wrapper {
    animation: fadeIn 0.3s ease-in-out;
}

/* Styling of forms */
.form-control {
    border-radius: 6px;
    padding: 10px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    border-color: #bac8f3;
}

/* Bootstrap-style URL input */
input[type="url"] {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

input[type="url"]:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

input[type="url"]:hover {
    border-color: #86b7fe;
}

input[type="url"]::placeholder {
    color: #6c757d;
    opacity: 1;
}

/* Bootstrap validation states */
input[type="url"]:valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' 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(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

input[type="url"]:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4M7.2 4.6l-1.4 1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Bootstrap disabled state */
input[type="url"]:disabled,
input[type="url"][readonly] {
    background-color: #e9ecef;
    opacity: 1;
}

/* Bootstrap form-floating style for URL inputs */
.form-floating input[type="url"] {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

/* Bootstrap input group styling for URL inputs */
.input-group input[type="url"] {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

/* Styles for statuses */
.badge {
    padding: 5px 10px;
    font-weight: 500;
    border-radius: 30px;
}

.badge-success {
    background-color: #1cc88a;
}

.badge-warning {
    background-color: #f6c23e;
}

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

.badge-info {
    background-color: #36b9cc;
}

@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.main-sidebar, .main-sidebar::before {
    width: 210px !important;
}

.content-wrapper, .main-header, .main-footer {
    margin-left: 210px !important;
}

@media (min-width: 992px) {
    .sidebar-mini.sidebar-collapse .content-wrapper,
    .sidebar-mini.sidebar-collapse .main-footer,
    .sidebar-mini.sidebar-collapse .main-header {
        margin-left: 4.6rem !important;
    }
}

/* Reduce font size and menu padding to eliminate scrolling */
.nav-sidebar .nav-item .nav-link {
    padding: 8px 10px !important;
    font-size: 0.9rem !important;
    white-space: normal !important; /* Разрешаем перенос текста */
}

/* Reduce indents in submenus */
.nav-sidebar .nav-treeview {
    padding-left: 0.5rem !important;
}

/* Improving the appearance of icons in the menu */
.nav-sidebar .nav-link p {
    margin-left: 5px !important;
}

/* Handling long names in menus */
.nav-sidebar .nav-link {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

/* Reduce indents for menu section headings */
.nav-header {
    padding: 8px 10px 8px 10px !important;
    font-size: 0.85rem !important;
}

.sidebar-mini .main-sidebar .nav-link,
.sidebar-mini-md .main-sidebar .nav-link,
.sidebar-mini-xs .main-sidebar .nav-link {
    width: calc(205px - .5rem* 2) !important;
    transition: width ease-in-out .3s;
}

.content-wrapper>.content {
    padding: 0.2rem 0.2rem !important;
}

.btn-link{
    padding: 8px 16px;
    display: inline-block;
}

#jazzy-logo img {
    max-width: 50px;   
    max-height: 50px;  
    width: auto;
}

[class*=sidebar-dark-] .nav-header {
    color: rgb(255, 255, 255, 0.3);
    margin-top: 0rem;
}

/* Password field styles for admin */
input[type="password"] {
    font-family: monospace !important;
    letter-spacing: 0.1em !important;
    font-size: 16px !important;
}

/* Password input wrapper styles */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    top: -15px;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    padding-right: 45px !important;
    font-family: monospace !important;
    letter-spacing: 0.1em !important;
    font-size: 16px !important;
}

/* Ensure password fields look consistent */
.form-control[type="password"] {
    font-family: monospace !important;
    letter-spacing: 0.1em !important;
    font-size: 16px !important;
}

/* Override any other styles for password fields */
input.form-control[type="password"] {
    font-family: monospace !important;
    letter-spacing: 0.1em !important;
    font-size: 16px !important;
}

/* Make text fields in password wrappers look like password fields */
.password-input-wrapper input[type="text"] {
    font-family: monospace !important;
    letter-spacing: 0.1em !important;
    font-size: 16px !important;
}

/* Ensure all password-related fields have consistent styling */
.password-input-wrapper .form-control {
    font-family: monospace !important;
    letter-spacing: 0.1em !important;
    font-size: 16px !important;
}

/* Override any form-specific styles */
#user_form input[type="password"],
#user_form input[type="text"] {
    font-family: monospace !important;
    letter-spacing: 0.1em !important;
    font-size: 16px !important;
}

/* Override any main.css styles */
input[type="password"].form-control,
input[type="text"].form-control {
    font-family: monospace !important;
    letter-spacing: 0.1em !important;
    font-size: 16px !important;
}

/* Most specific selector to override everything */
#user_form .password-input-wrapper input[type="password"],
#user_form .password-input-wrapper input[type="text"] {
    font-family: monospace !important;
    letter-spacing: 0.1em !important;
    font-size: 16px !important;
}

/* Debug styles - make it very obvious */
input[type="password"] {
    font-family: "Courier New", monospace !important;
    letter-spacing: 0.2em !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

.password-input-wrapper input[type="text"] {
    font-family: "Courier New", monospace !important;
    letter-spacing: 0.2em !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

/* Password toggle button styles */
.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    z-index: 10;
    transition: color 0.3s ease;
    outline: none;
    box-shadow: none;
    display: block;
    width: 30px;
    height: 30px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 30px;
    text-align: center;
}

.password-toggle-btn:hover {
    color: #495057;
    text-decoration: none;
}

.password-toggle-btn:focus {
    outline: none;
    color: #007bff;
    box-shadow: none;
    border: none;
    text-decoration: none;
}

.password-toggle-btn:active {
    outline: none;
    box-shadow: none;
    border: none;
    text-decoration: none;
}

.password-toggle-btn:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.password-toggle-btn i {
    font-size: 16px;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

input[type="password"] {
    height: calc(2.25rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    box-shadow: inset 0 0 0 transparent;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    width: 100%;
}

/* Hospital Admin Form Error Styling */

/* Enhanced error highlighting for location form fields */
.errorlist {
    color: #dc3545;
    font-weight: bold;
    margin: 5px 0 0 0 !important;
    padding: 5px !important; 
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    list-style: none;
}

/* Highlight fields with errors */
.field-name.has-error input,
.field-address.has-error input,
.field-point.has-error input,
.field-radius.has-error input {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
}

/* Specific styling for location name field errors */
.field-name.has-error input {
    border-color: #dc3545 !important;
}

/* Error message styling */
.errorlist li {
    margin-bottom: 3px;
}

/* Success message styling */
.messagelist .success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Warning message styling */
.messagelist .warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* Inline form error styling */
.inline-group .inline-related .form-row.has-error {
    background-color: #fff5f5;
    border-left: 4px solid #dc3545;
    padding-left: 10px;
    margin-bottom: 10px;
}

/* Location form specific styling */
.inline-related .form-row.has-error {
    border-left: 4px solid #dc3545;
    background-color: #fff5f5;
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
}

/* Field label error styling */
.inline-related .form-row.has-error label {
    color: #dc3545;
    font-weight: bold;
}

/* Input field focus with error */
.inline-related .form-row.has-error input:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Required field indicator */
.field-point label::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Help text styling */
.help {
    font-size: 12px;
    color: #6c757d;
    margin-top: 3px;
    font-style: italic;
}

/* Map container styling */
.map-container {
    margin: 20px 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#map {
    height: 400px;
    width: 100%;
}

/* Inline form header styling */
.inline-related h3 {
    background-color: #f8f9fa;
    padding: 10px 15px;
    margin: 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

/* Add/Remove buttons styling */
.inline-related .add-row a,
.inline-related .delete a {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin: 5px 0;
}

.inline-related .add-row a:hover,
.inline-related .delete a:hover {
    background-color: #0056b3;
    text-decoration: none;
    color: white;
}

.inline-related .delete a {
    background-color: #dc3545;
}

.inline-related .delete a:hover {
    background-color: #c82333;
} 

.map-container {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

#map {
    height: 400px;
    width: 100%;
}

.location-instructions {
    background-color: #f8f9fa;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 4px solid #007bff;
}

.location-instructions h4 {
    margin-top: 0;
    color: #007bff;
}

.location-instructions ul {
    margin-bottom: 0;
}