body {
    background-color: white;
    font-family: Arial, sans-serif;
    width: 100%;
    margin: 0;
    padding: 0;
}


.alert-absolute {
    position: absolute;
    bottom: 0;
    visibility: hidden;
}

.container-timer {
    width: 100%;
    max-width: 600px;
    margin: auto;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    background-color: white;
    border-radius: 6px;
}

.content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-text {
    color: #333;
    font-weight: bold;
}

.overlay.active {
    display: flex;
}

#result {
    display: flex; /* Выравнивание блоков по горизонтали */
    flex-wrap: nowrap; /* Запрет на перенос строк */
}

#result .col-md-6 {
    flex: 1; /* Каждая колонка занимает равное пространство */
}

#diagnoses-buttons {
    width: 100%; /* Кнопки занимают всю ширину колонки */
}

.btn-block {
    display: block;
    width: 100%; /* Кнопки занимают всю ширину */
    height: 75px;
    font-size: large;
}

.symptom-card {
    transition: all 0.3s ease;
    border-left: 4px solid #4285F4;
}

.symptom-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.diagnosis-card {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.diagnosis-card:hover {
    transform: scale(1.02);
}

.probability-indicator {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #4285F4, #34A853);
}

.debug-tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.debug-tab {
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    margin-right: 5px;
    margin-bottom: 5px;
}

.debug-tab.active {
    border-color: #dee2e6 #dee2e6 #fff;
    background-color: #fff;
    font-weight: bold;
}

.debug-content > div {
    display: none;
}

.debug-content > div.active {
    display: block;
}

.tokens-container {
    line-height: 2;
    word-wrap: break-word;
}

.token-highlight {
    display: inline-block;
    margin: 2px;
    padding: 2px 4px;
    border-radius: 3px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.token-highlight small {
    display: block;
    font-size: 0.7em;
    color: #6c757d;
}

.negation-token {
    background-color: #ffcccc;
    border-color: #ffaaaa;
}

.pos-noun {
    background-color: #e3f2fd;
}

.pos-verb {
    background-color: #e8f5e9;
}

.pos-adj {
    background-color: #fff3e0;
}

.pos-num {
    background-color: #f3e5f5;
}

.processing-step {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.spelling-correction {
    background-color: #e8f5e9;
    padding: 5px;
    margin: 2px 0;
    border-radius: 3px;
}

.text-transformation {
    margin-bottom: 10px;
}

.text-transformation pre {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-top: 5px;
}

.sentence-container {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.extraction-detail {
    margin: 5px 0;
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 3px;
}

.sql-query {
    font-family: monospace;
    white-space: pre-wrap;
    background-color: #f8f9fa;
    padding: 5px;
    margin: 5px 0;
    border-radius: 3px;
}

.memory-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.memory-card {
    flex: 1;
    margin: 0 5px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.memory-before {
    background-color: #e3f2fd;
}

.memory-after {
    background-color: #e8f5e9;
}

.memory-diff {
    background-color: #fff3e0;
}

.symptom-match {
    padding: 5px;
    margin: 3px 0;
    border-radius: 3px;
    background-color: #f8f9fa;
}

.fuzzy-match {
    background-color: #e3f2fd;
}

.numeric-value {
    background-color: #e8f5e9;
}

.negated-symptom {
    background-color: #ffcccc;
}

.sentence-highlight {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
    background-color: #f8f9fa;
}