/* /var/www/NexiTalk/services/chatbots/static/css/chat.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #333333;
    height: 100vh;
    overflow: hidden;
}
.header-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-content h3 {
    margin: 0;
}
.chat-container {
    display: flex;
    height: 100vh;
  
}
.chat-navigation {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
	margin-right:40px;

}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;

    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-btn:hover {
    background: #87CEFA;
    transform: scale(1.1);
}

.nav-btn:active {
    transform: scale(0.95);
}


/* Добавьте в ваш CSS файл */
.token-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.character-limit-indicator,
.token-limit-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
}

.character-warning,
.token-warning {
    font-size: 14px;
}

.limit-exceeded-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
}

.limit-header {
    font-weight: bold;
    color: #856404;
    margin-bottom: 8px;
}

.limit-reason {
    color: #856404;
    margin-bottom: 8px;
}

.limit-stats {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.limit-actions {
    display: flex;
    gap: 8px;
}

.btn-view-limits,
.btn-close-limit {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-view-limits {
    background: #007bff;
    color: white;
}

.btn-close-limit {
    background: #6c757d;
    color: white;
}
.limit-exceeded-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.limit-header {
    font-weight: bold;
    color: #856404;
    margin-bottom: 8px;
    font-size: 14px;
}

.limit-reason {
    color: #856404;
    margin-bottom: 8px;
    font-size: 13px;
}

.limit-stats {
    color: #856404;
    font-size: 12px;
    margin-bottom: 10px;
    font-style: italic;
}

.limit-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.btn-view-limits {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.btn-view-limits:hover {
    background: #0056b3;
}

.btn-close-limit {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.btn-close-limit:hover {
    background: #545b62;
}

.message-system {
    text-align: center;
}
/* Добавьте в ваш CSS файл */
.character-limit-indicator {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 12px;
    color: #6c757d;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
}

.message-input-container {
    position: relative;
}

.character-limit-indicator .character-warning {
    margin-left: 4px;
}

/* Существующие стили для сообщений о лимитах */
.limit-exceeded-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.limit-header {
    font-weight: bold;
    color: #856404;
    margin-bottom: 8px;
    font-size: 14px;
}

.limit-reason {
    color: #856404;
    margin-bottom: 8px;
    font-size: 13px;
}

.limit-stats {
    color: #856404;
    font-size: 12px;
    margin-bottom: 10px;
    font-style: italic;
}

.limit-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.btn-view-limits {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.btn-view-limits:hover {
    background: #0056b3;
}

.btn-close-limit {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.btn-close-limit:hover {
    background: #545b62;
}

.message-system {
    text-align: center;
}

/* Боковая панель */
.chat-sidebar {
    width: 220px;
    background-color: #f8f9fa;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.chat-sidebar.collapsed {
    width: 0;
    min-width: 0;
    overflow: hidden;
}

.sidebar-header {
    padding:10px;
	  width: 200px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    min-height: 60px;
}

.sidebar-actions {
    display: flex;
    gap: 8px;
	 justify-content: space-between;
}

/* Монохромные иконки без фона */
.btn-icon {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
}

.btn-icon:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-new-chat {
    color: #8b8b8b;
	width: 90%;
}

.btn-new-chat:hover {
   background: none;
    color: red;
}

.btn-export {
    color: #007bff;
}

.btn-export:hover {
    background: #e3f2fd;
    color: #0056b3;
}

.btn-import {
    color: #6f42c1;
}

.btn-import:hover {
    background: #e9ecef;
    color: #5a3596;
}

.btn-toggle-sidebar {
    color: #6c757d;
}

.btn-toggle-sidebar:hover {
    background: #8b8b8b;
    color: #495057;
}

/* Список чатов */
.chats-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.chat-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 15px;
}

.chat-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.chat-item.active {
    border-color: #007bff;
    background: #f8f9ff;
}

.chat-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.4;
}

.chat-info {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    justify-content: space-between;
}

.chat-actions {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.chat-item:hover .chat-actions {
    opacity: 1;
}

/* Монохромные иконки действий чата */
.btn-action {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6c757d;
}

.btn-action:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-rename:hover {
    color: #007bff;
}

.btn-delete:hover {
    color: #dc3545;
}

.btn-export-chat:hover {
    color: #28a745;
}

.btn-clear {
    color: #6c757d;
}

.btn-clear:hover {
    color: #ffc107;
}

/* Основная область чата */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    transition: margin-left 0.3s ease;
    padding: 0 20px;
}

.chat-main.expanded {
    margin-left: 0;
    padding: 0 40px;
}

.chat-header {
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.chat-header-actions {
    display: flex;
    gap: 10px;
}

/* Контейнер сообщений */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    background: #f8f9fa;
}

.welcome-message {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.welcome-message h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.welcome-message p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Сообщения */
.message {
    max-width: 90%;
    margin-bottom: 20px;
    position: relative;
	white-space: normal;
}

.message-user {
    margin-left: 100px;
	
}

.message-bot {
    margin-right: auto;
	
}

.message-bubble {
    padding: 16px 20px;
    border-radius: 18px;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-user .message-bubble {
    background: #e3f2fd;
    color: #1565c0;
    border-bottom-right-radius: 6px;
    border: 1px solid #bbdefb;
	white-space: normal;
}

.message-bot .message-bubble {
    background: #ffffff;
    color: #333;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 6px;
	white-space: normal;
}

.message-time {
    font-size: 11px;
    color: #6c757d;
    margin-top: 5px;
    text-align: right;
}

.message-bot .message-time {
    text-align: left;
}

/* Поле ввода */
.input-container {
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    background: #ffffff;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    max-width: 800px;
    margin: 0 auto;
}

#message-input {
    flex: 1;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 20px;
    color: #333;
    font-family: inherit;
    font-size: 15px;
    resize: none;
    min-height: 56px;
    max-height: 120px;
    transition: border-color 0.2s;
}

#message-input:focus {
    outline: none;
    border-color: #007bff;
}

.btn-send {
    background: #007bff;
    border: none;
    border-radius: 12px;
    color: white;
    padding: 16px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s;
    min-width: 80px;
}

.btn-send:hover:not(:disabled) {
    background: #0056b3;
}

.btn-send:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Скрытый input для импорта */
#import-file {
    display: none;
}

/* Стили для Markdown контента */
.message-bubble {
    line-height: 1.6;
}

.message-bubble h1, 
.message-bubble h2, 
.message-bubble h3, 
.message-bubble h4, 
.message-bubble h5, 
.message-bubble h6 {
    margin: 1em 0 0.5em 0;
    font-weight: 600;
    line-height: 1.25;
    color: #2c3e50;
}

.message-bubble h1 { 
    font-size: 1.5em; 
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.3em;
}

.message-bubble h2 { 
    font-size: 1.3em; 
    border-bottom: 1px solid #bdc3c7;
    padding-bottom: 0.3em;
}

.message-bubble h3 { 
    font-size: 1.1em; 
    color: #34495e;
}

.message-bubble h4 { font-size: 1em; }
.message-bubble h5 { font-size: 0.9em; }
.message-bubble h6 { font-size: 0.8em; }

.message-bubble p {
    margin: 0.5em 0;
}

.message-bubble ul, 
.message-bubble ol {
    margin: 0.5em 0;
    padding-left: 2em;
}

.message-bubble li {
    margin: 0.25em 0;
}

.message-bubble blockquote {
    border-left: 4px solid #e9ecef;
    margin: 1em 0;
    padding-left: 1em;
    color: #6c757d;
    font-style: italic;
}

.message-bubble table {
    border-collapse: collapse;
    margin: 1em 0;
    width: 100%;
}

.message-bubble th, 
.message-bubble td {
    border: 1px solid #e9ecef;
    padding: 0.5em;
    text-align: left;
}

.message-bubble th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Стили для блоков кода с CodeMirror */
.code-block-wrapper {
    position: relative;
    margin: 1em 0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:5px;

    border-bottom: 1px solid #e9ecef;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8em;
}

.code-language {
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
}

.copy-code-btn {

    border: none;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;

}

.copy-code-btn:hover {
    background: #7FFFD4;
}

/* Блоки кода */
.code-block {
    margin: 0 !important;
    padding: 1em !important;
    background: #f8f9fa !important;
    border-radius: 0 0 8px 8px !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

/* ВАЖНО: Стили для CodeMirror с !important */
.cm-s-idea .cm-keyword { color: #000080 !important; font-weight: bold !important; }
.cm-s-idea .cm-atom { color: #0000FF !important; }
.cm-s-idea .cm-number { color: #098658 !important; }
.cm-s-idea .cm-def { color: #000000 !important; }
.cm-s-idea .cm-variable { color: #001080 !important; }
.cm-s-idea .cm-variable-2 { color: #0451a5 !important; }
.cm-s-idea .cm-property { color: #795e26 !important; }
.cm-s-idea .cm-operator { color: #000000 !important; }
.cm-s-idea .cm-comment { color: #008000 !important; font-style: italic !important; }
.cm-s-idea .cm-string { color: #a31515 !important; }
.cm-s-idea .cm-string-2 { color: #a31515 !important; }
.cm-s-idea .cm-meta { color: #555555 !important; }
.cm-s-idea .cm-qualifier { color: #555555 !important; }
.cm-s-idea .cm-builtin { color: #097ead !important; }
.cm-s-idea .cm-bracket { color: #0451a5 !important; }
.cm-s-idea .cm-tag { color: #008000 !important; }
.cm-s-idea .cm-attribute { color: #ff0000 !important; }

/* Базовые стили для CodeMirror */
.cm-s-idea {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    background: transparent !important;
}

/* Стили для спан элементов которые создает CodeMirror */
.cm-s-idea span {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 13px !important;
}

/* Инлайн код */
.inline-code {
    background: #f1f3f4;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85em;
    color: #e01e5a;
    border: 1px solid #e1e5e9;
}

/* Индикатор печати для потоковой передачи */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.typing-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing-avatar {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.typing-text {
    font-size: 14px;
    color: #6c757d;
    margin-right: 8px;
}

.typing-dots {
    display: flex;
    gap: 3px;
    align-items: center;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: #6c757d;
    border-radius: 50%;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typingAnimation {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Курсор для стриминга */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #007bff;
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.streaming-message {
    position: relative;
}

/* Стили для плавного появления сообщений */
.message-fade-in {
    animation: messageFadeIn 0.3s ease-out;
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для статуса генерации */
.generation-status {
    font-size: 11px;
    color: #6c757d;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

.status-dot.thinking {
    background: #ffc107;
}

.status-dot.generating {
    background: #17a2b8;
}

.status-dot.complete {
    background: #28a745;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Полоса прокрутки */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Улучшенная прокрутка для блоков кода */
.code-block::-webkit-scrollbar {
    height: 8px;
}

.code-block::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.code-block::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.code-block::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Стили для панели статистики использования */
.usage-stats-panel {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.stats-content {
    font-size: 12px;
}

.stats-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-item {
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stats-item:last-child {
    margin-bottom: 0;
}

.stats-item span:first-child {
    color: #6c757d;
    font-size: 11px;
}

.stats-value {
    font-weight: 500;
    color: #333;
    font-size: 11px;
}

.stats-progress {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.stats-progress-bar {
    height: 100%;
    background: #28a745;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Стили для предупреждения о лимитах */
.limit-warning {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 400px;
    animation: slideInDown 0.3s ease-out;
}

.warning-icon {
    font-size: 18px;
}

.warning-content {
    flex: 1;
}

.warning-content strong {
    color: #856404;
    display: block;
    margin-bottom: 4px;
}

.warning-details {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.warning-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #856404;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Анимации */
@keyframes slideInDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.service-info-panel {
    animation: slideInRight 0.3s ease-out;
}

.service-info-panel:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

#limits-info-panel {
    animation: slideInUp 0.3s ease-out;
}

#limits-overlay {
    animation: fadeIn 0.3s ease-out;
}

.slow-connection-warning {
    animation: pulseWarning 2s infinite;
}

@keyframes pulseWarning {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .chat-sidebar {
        position: absolute;
        z-index: 1000;
        height: 100%;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    }
    
    .chat-main.expanded {
        margin-left: 0;
        padding: 0 20px;
    }
    
    .message {
        max-width: 85%;
    }
    
    .chat-main {
        padding: 0 15px;
    }
    
    .code-block {
        font-size: 0.8em;
        padding: 0.8em;
    }
    
    .code-header {
        padding: 6px 10px;
        font-size: 0.75em;
    }
}




/* Стили для CodeMirror с номерами строк */
.CodeMirror {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 13px !important;
    background: #f8f9fa !important;
}

.CodeMirror-gutters {
    background: #e9ecef !important;
    border-right: 1px solid #dee2e6 !important;
}

.CodeMirror-linenumber {
    color: #6c757d !important;
    padding: 0 8px !important;
}

/* Цвета подсветки */
.cm-s-idea .cm-keyword { color: #000080; font-weight: bold; }
.cm-s-idea .cm-atom { color: #0000FF; }
.cm-s-idea .cm-number { color: #098658; }
.cm-s-idea .cm-string { color: #a31515; }
.cm-s-idea .cm-comment { color: #008000; font-style: italic; }
.cm-s-idea .cm-def { color: #000000; }
.cm-s-idea .cm-variable { color: #001080; }
.cm-s-idea .cm-property { color: #795e26; }