body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f6f8fa 0%, #f9f9ff 100%);
    color: #222;
    margin: 0;
    min-height: 100vh;
}

/* Шрифт для эмодзи */
.emoji {
    font-family: 'Noto Color Emoji', 'Segoe UI Emoji', 'Apple Color Emoji', 'Segoe UI Symbol', sans-serif;
    font-size: 1.1em;
    line-height: 1;
    vertical-align: middle;
}

.ticket-list {
    height: 80vh;
    overflow-y: auto;
    background: rgba(255,255,255,0.85);
    border-radius: 22px;
    box-shadow: 0 4px 32px 0 rgba(123,97,255,0.10);
    padding: 18px 10px;
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(123,97,255,0.08);
    transition: box-shadow 0.3s, border 0.3s;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.ticket-bubble-link {
    text-decoration: none;
    display: block;
}
.ticket-bubble-card {
    background: linear-gradient(120deg, #fff 60%, #f0f4ff 100%);
    border-radius: 18px;
    box-shadow: 0 2px 12px 0 rgba(123,97,255,0.07);
    padding: 18px 18px 14px 18px;
    transition: box-shadow 0.18s, background 0.18s, border 0.18s, transform 0.18s;
    border: 2px solid transparent;
    margin-bottom: 0;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ticket-bubble-card:hover {
    box-shadow: 0 6px 24px 0 rgba(123,97,255,0.13);
    background: linear-gradient(120deg, #f0f4ff 60%, #fff 100%);
    transform: translateY(-2px) scale(1.01);
    border: 2px solid #e0d7ff;
}
.ticket-bubble-card.selected {
    border: 2px solid #007bff;
    background: linear-gradient(120deg, #f0f4ff 60%, #e9e6ff 100%);
    box-shadow: 0 8px 32px 0 rgba(123,97,255,0.18);
}
.ticket-title {
    font-size: 0.95em;
    font-weight: 600;
    color: #222;
    letter-spacing: 0.01em;
}
.ticket-date {
    font-size: 0.8em;
    color: #aaa;
    font-weight: 400;
}
.ticket-extra {
    font-size: 0.9em;
    color: #007bff;
    font-weight: 500;
    margin-left: 8px;
}

.card {
    border-radius: 18px !important;
    box-shadow: 0 2px 12px 0 rgba(123,97,255,0.07);
    border: none;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(4px);
    transition: box-shadow 0.25s, transform 0.2s, background 0.2s;
}
.card:hover {
    box-shadow: 0 8px 32px 0 rgba(123,97,255,0.18);
    transform: translateY(-2px) scale(1.015);
    background: rgba(255,255,255,0.92);
}

.chat-box {
    height: 70vh;
    overflow-y: auto;
    border-radius: 22px;
    border: none;
    box-shadow: 0 4px 32px 0 rgba(123,97,255,0.10);
    padding: 24px 20px;
    background: rgba(245,247,255,0.92);
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(123,97,255,0.08);
    transition: box-shadow 0.3s, border 0.3s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

/* Автоматическое отображение последних сообщений в чате */
.chat-box {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

/* Принудительно показываем последние сообщения */
.chat-box:not(:empty) {
    justify-content: flex-end;
}

/* Контейнер сообщений */
.chat-box > div:not(.empty-chat-card) {
    margin-top: auto;
}

.message-bubble {
    max-width: 70%;
    padding: 14px 18px 10px 18px;
    border-radius: 20px 20px 20px 8px;
    margin-bottom: 2px;
    font-size: 1.13em;
    line-height: 1.5;
    box-shadow: 0 2px 12px 0 rgba(123,97,255,0.07);
    position: relative;
    word-break: break-word;
    animation: bubbleIn 0.3s cubic-bezier(.4,2,.6,1) both;
    background: linear-gradient(120deg, #fff 60%, #e9e6ff 100%);
    font-family: 'Inter', 'Noto Color Emoji', 'Segoe UI Emoji', 'Apple Color Emoji', 'Segoe UI Symbol', 'Segoe UI', sans-serif;
}
.message-bubble.client {
    background: linear-gradient(120deg, #e0f7fa 60%, #b2ebf2 100%);
    align-self: flex-end;
    border-radius: 20px 20px 8px 20px;
    box-shadow: 0 2px 16px 0 rgba(90,209,230,0.13);
}
.message-bubble.employee {
    background: linear-gradient(120deg, #eaf2ff 60%, #d7f0ff 100%);
    align-self: flex-start;
    border-radius: 20px 20px 20px 8px;
    box-shadow: 0 2px 16px 0 rgba(123,97,255,0.13);
}
.message-meta {
    font-size: 0.55em;
    color: #888;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.message-files {
    margin-top: 8px;
}
.message-files a {
    display: inline-flex;
    align-items: center;
    font-size: 0.98em;
    color: #7b61ff;
    text-decoration: none;
    margin-right: 10px;
    background: rgba(123,97,255,0.07);
    border-radius: 8px;
    padding: 3px 10px 3px 6px;
    transition: background 0.2s, color 0.2s;
}
.message-files a:hover {
    background: #7b61ff;
    color: #fff;
}
.message-files .bi {
    margin-right: 4px;
}

@keyframes bubbleIn {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.msg-input {
    width: 100%;
    border-radius: 14px;
    border: 1.5px solid #e0e0e0;
    padding: 12px 16px;
    font-size: 1.12em;
    transition: border 0.2s, box-shadow 0.2s;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 1px 4px 0 rgba(123,97,255,0.04);
    font-family: 'Inter', 'Noto Color Emoji', 'Segoe UI Emoji', 'Apple Color Emoji', 'Segoe UI Symbol', 'Segoe UI', sans-serif;
}
.msg-input:focus {
    border: 2px solid #007bff;
    outline: none;
    box-shadow: 0 0 0 2px #e9e6ff;
}

.btn-primary, .btn-success {
    color: white!important;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.08em;
    box-shadow: 0 2px 12px 0 rgba(123,97,255,0.10);
    background: linear-gradient(90deg, #007bff 0%, #17a2b8 100%);
    border: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    padding: 10px 28px;
}
.btn-primary:hover, .btn-success:hover {
    background: linear-gradient(90deg, #17a2b8 0%, #007bff 100%);
    box-shadow: 0 6px 24px 0 rgba(123,97,255,0.18);
    transform: scale(1.04);
}

.btn-outline-primary, .btn-outline-secondary, .btn-outline-success {
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.08em;
    border-width: 2px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
    padding: 10px 22px;
}
.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-outline-success:hover {
    background: #f0f4ff;
    color: #7b61ff;
    box-shadow: 0 2px 12px 0 rgba(123,97,255,0.10);
    transform: scale(1.03);
}

input[type="file"] {
    border-radius: 12px;
    background: #f6f8fa;
    border: 1.5px solid #e0e0e0;
    padding: 6px 10px;
    font-size: 1em;
}

.list-group-item {
    border-radius: 12px !important;
    margin-bottom: 8px;
    border: none;
    box-shadow: 0 2px 8px 0 rgba(123,97,255,0.06);
    background: rgba(255,255,255,0.85);
    transition: box-shadow 0.2s, background 0.2s;
}
.list-group-item:hover {
    background: rgba(123,97,255,0.07);
    box-shadow: 0 4px 16px 0 rgba(123,97,255,0.13);
}

.badge.bg-info {
    background: linear-gradient(90deg, #17a2b8 0%, #007bff 100%);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    font-size: 0.85em;
    padding: 7px 16px;
    box-shadow: 0 1px 4px 0 rgba(123,97,255,0.10);
    letter-spacing: 0.02em;
}

::-webkit-scrollbar {
    width: 10px;
    background: #f0f4ff;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}

.btn-primary, .btn-success, .badge.bg-info {
    box-shadow: 0 0 8px 0 rgba(123,97,255,0.10), 0 2px 12px 0 rgba(123,97,255,0.10);
}

.modal-content {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    border: 1.5px solid rgba(123,97,255,0.08);
}

.bi {
    font-size: 1.2em;
    vertical-align: -0.15em;
    margin-right: 4px;
}

.msg-img-preview {
    max-width: 220px;
    max-height: 160px;
    box-shadow: 0 2px 12px 0 rgba(123,97,255,0.13);
    margin: 4px 0;
    transition: box-shadow 0.2s, transform 0.2s;
    display: block;
}
.msg-img-preview:hover {
    box-shadow: 0 6px 24px 0 rgba(123,97,255,0.18);
    transform: scale(1.04);
}

.msg-img-deleted {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 48px;
    background: #f3f3f7;
    color: #888;
    border-radius: 12px;
    font-size: 1em;
    font-style: italic;
    margin: 4px 0;
    box-shadow: 0 1px 4px 0 rgba(123,97,255,0.06);
    padding: 10px 16px;
}

.msg-action-icon {
    font-size: 1.18em;
    padding: 3px 5px;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    cursor: pointer;
    display: inline-block;
    line-height: 1;
}
.msg-action-icon.edit {
    color: #7b61ff;
    font-size: 0.8em
}
.msg-action-icon.edit:hover {
    background: #f0f4ff;
    color: #4b2fff;
    box-shadow: 0 2px 8px 0 rgba(123,97,255,0.10);
}
.msg-action-icon.delete {
    color: #d33;
    font-size: 0.8em;
}
.msg-action-icon.delete:hover {
    background: #ffeaea;
    color: #a00;
    box-shadow: 0 2px 8px 0 rgba(220,50,50,0.10);
}

.msg-action-card {
    background: rgba(245,247,255,0.92);
    border-radius: 10px;
    box-shadow: 0 2px 8px 0 rgba(123,97,255,0.07);
    padding: 3px 8px 3px 8px;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}

.empty-chat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    background: rgba(245,247,255,0.92);
    border-radius: 18px;
    box-shadow: 0 2px 12px 0 rgba(123,97,255,0.07);
    padding: 32px 18px 28px 18px;
    margin: 0 auto;
    max-width: 420px;
}

.chat-info-card {
    background: linear-gradient(120deg, #fff 60%, #f0f4ff 100%);
    border-radius: 18px;
    box-shadow: 0 2px 12px 0 rgba(123,97,255,0.07);
    padding: 18px 24px 14px 24px;
    margin-bottom: 18px;
    margin-top: 0;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.chat-info-title {
    font-size: 1.18em;
    font-weight: 700;
    color: #222;
    letter-spacing: 0.01em;
}
.chat-info-status {
    font-size: 1.05em;
    padding: 7px 18px;
    border-radius: 10px;
    font-weight: 600;
}

.chat-filter-bar {
    margin-bottom: 18px;
    gap: 14px !important;
    flex-wrap: wrap;
    max-width: 100%;
}
.chat-filter-btn {
    border-radius: 10px !important;
    font-weight: 600;
    font-size: 0.85em;
    background: #f6f8fa;
    color: #007bff;
    border: 2px solid #e0d7ff;
    box-shadow: 0 2px 8px 0 rgba(123,97,255,0.07);
    padding: 6px 10px;
    transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-filter-btn.active, .chat-filter-btn:hover {
    background: linear-gradient(90deg, #007bff 0%, #17a2b8 100%);
    color: #fff;
    box-shadow: 0 4px 16px 0 rgba(123,97,255,0.13);
}
.chat-new-btn {
    border-radius: 14px !important;
    font-weight: 600;
    font-size: 1.08em;
    background: linear-gradient(90deg, #17a2b8 0%, #007bff 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 12px 0 rgba(123,97,255,0.10);
    padding: 10px 28px;
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
    width: 100%;
}
.chat-new-btn:hover {
    background: linear-gradient(90deg, #007bff 0%, #17a2b8 100%);
    color: #fff;
    box-shadow: 0 6px 24px 0 rgba(123,97,255,0.18);
    transform: scale(1.02);
}

@media (max-width: 900px) {
    .container-fluid .row {
        flex-direction: column;
    }
    .col-3, .col-9 {
        width: 100% !important;
        max-width: 100% !important;
    }
    .ticket-list, .chat-box {
        height: 40vh;
    }
} 

.emoji-btn {
    font-size: 1.35em;
    background: #f6f8fa;
    border: none;
    border-radius: 12px;
    padding: 7px 13px;
    margin-right: 2px;
    transition: background 0.16s, box-shadow 0.16s, transform 0.13s;
    box-shadow: 0 1px 4px 0 rgba(123,97,255,0.06);
    cursor: pointer;
    outline: none;
    line-height: 1;
    font-family: 'Noto Color Emoji', 'Segoe UI Emoji', 'Apple Color Emoji', 'Segoe UI Symbol', sans-serif;
}
.emoji-btn:hover, .emoji-btn:focus {
    background: #f0f4ff;
    box-shadow: 0 2px 8px 0 rgba(123,97,255,0.10);
    transform: scale(1.08);
}

.autoreply-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.08em;
    font-weight: 600;
    background: linear-gradient(90deg, #7b61ff 0%, #5ad1e6 100%);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    padding: 8px 20px;
    box-shadow: 0 2px 12px 0 rgba(123,97,255,0.10);
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
    text-decoration: none;
}
.autoreply-btn:hover {
    background: linear-gradient(90deg, #5ad1e6 0%, #7b61ff 100%);
    color: #fff !important;
    box-shadow: 0 6px 24px 0 rgba(123,97,255,0.18);
    transform: scale(1.04);
    text-decoration: none;
}
.autoreply-btn i {
    font-size: 1.2em;
    margin-right: 4px;
} 

.empty-chat-select-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    background: rgba(245,247,255,0.97);
    border-radius: 22px;
    box-shadow: 0 4px 24px 0 rgba(123,97,255,0.10);
    padding: 48px 24px 44px 24px;
    margin: 0 auto;
    max-width: 520px;
    font-size: 1.18em;
} 

.autoreply-card {
    background: linear-gradient(120deg, #fff 60%, #f0f4ff 100%);
    border-radius: 22px;
    box-shadow: 0 4px 32px 0 rgba(123,97,255,0.10);
    padding: 36px 32px 32px 32px;
    min-width: 320px;
    max-width: 540px;
}
.autoreply-title {
    font-size: 1.35em;
    font-weight: 700;
    color: #222;
    letter-spacing: 0.01em;
}
.autoreply-back-btn {
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05em;
    background: #f6f8fa;
    color: #7b61ff;
    border: 2px solid #e0d7ff;
    box-shadow: 0 2px 8px 0 rgba(123,97,255,0.07);
    padding: 7px 18px;
    transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
    text-decoration: none;
}
.autoreply-back-btn:hover {
    background: linear-gradient(90deg, #7b61ff 0%, #5ad1e6 100%);
    color: #fff;
    border: 2px solid #7b61ff;
    box-shadow: 0 4px 16px 0 rgba(123,97,255,0.13);
}
.autoreply-input {
    border-radius: 12px !important;
    font-size: 1.08em;
    padding: 10px 14px;
    border: 1.5px solid #e0e0e0;
    background: #f6f8fa;
    transition: border 0.18s;
}
.autoreply-input:focus {
    border: 2px solid #7b61ff;
    outline: none;
}
.autoreply-add-btn {
    border-radius: 12px;
    background: linear-gradient(90deg, #5ad1e6 0%, #7b61ff 100%);
    color: #fff;
    border: none;
    font-size: 1.18em;
    padding: 0 18px;
    box-shadow: 0 2px 8px 0 rgba(123,97,255,0.10);
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
}
.autoreply-add-btn:hover {
    background: linear-gradient(90deg, #7b61ff 0%, #5ad1e6 100%);
    color: #fff;
    box-shadow: 0 6px 24px 0 rgba(123,97,255,0.18);
    transform: scale(1.04);
}
.autoreply-bubble-card {
    background: linear-gradient(120deg, #fff 60%, #f0f4ff 100%);
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(123,97,255,0.07);
    padding: 12px 16px 10px 16px;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
    transition: box-shadow 0.18s, background 0.18s, border 0.18s, transform 0.18s;
}
.autoreply-bubble-card:hover {
    box-shadow: 0 6px 24px 0 rgba(123,97,255,0.13);
    background: linear-gradient(120deg, #f0f4ff 60%, #fff 100%);
    border: 2px solid #e0d7ff;
    transform: translateY(-2px) scale(1.01);
}
.autoreply-edit-btn {
    border-radius: 10px;
    background: #f6f8fa;
    color: #7b61ff;
    border: 2px solid #e0d7ff;
    font-size: 1.15em;
    padding: 4px 12px;
    transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
}
.autoreply-edit-btn:hover {
    background: linear-gradient(90deg, #7b61ff 0%, #5ad1e6 100%);
    color: #fff;
    border: 2px solid #7b61ff;
    box-shadow: 0 4px 16px 0 rgba(123,97,255,0.13);
}
.autoreply-del-btn {
    border-radius: 10px;
    background: #ffeaea;
    color: #d33;
    border: 2px solid #ffd7d7;
    font-size: 1.15em;
    padding: 4px 12px;
    transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
}
.autoreply-del-btn:hover {
    background: #d33;
    color: #fff;
    border: 2px solid #d33;
    box-shadow: 0 4px 16px 0 rgba(220,50,50,0.13);
} 

.login-card {
    background: linear-gradient(120deg, #fff 60%, #f0f4ff 100%);
    border-radius: 22px;
    box-shadow: 0 4px 32px 0 rgba(123,97,255,0.10);
    padding: 36px 32px 32px 32px;
    min-width: 280px;
    max-width: 400px;
}
.login-input {
    border-radius: 12px !important;
    font-size: 1.08em;
    padding: 10px 14px;
    border: 1.5px solid #e0e0e0;
    background: #f6f8fa;
    transition: border 0.18s;
}
.login-input:focus {
    border: 2px solid #7b61ff;
    outline: none;
}
.login-btn {
    border-radius: 14px !important;
    font-weight: 600;
    font-size: 1.08em;
    background: linear-gradient(90deg, #7b61ff 0%, #5ad1e6 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 12px 0 rgba(123,97,255,0.10);
    padding: 10px 28px;
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
}
.login-btn:hover {
    background: linear-gradient(90deg, #5ad1e6 0%, #7b61ff 100%);
    color: #fff;
    box-shadow: 0 6px 24px 0 rgba(123,97,255,0.18);
    transform: scale(1.04);
} 

.autoreply-section {
    display: flex;
    align-items: center;
    gap: 8px;
}
.autoreply-add-small-btn {
    border-radius: 8px;
    background: linear-gradient(90deg, #17a2b8 0%, #007bff 100%);
    color: #fff;
    border: none;
    font-size: 1.1em;
    padding: 4px 8px;
    box-shadow: 0 2px 8px 0 rgba(123,97,255,0.10);
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.autoreply-add-small-btn:hover {
    background: linear-gradient(90deg, #007bff 0%, #17a2b8 100%);
    color: #fff;
    box-shadow: 0 4px 16px 0 rgba(123,97,255,0.18);
    transform: scale(1.1);
}
.autoreply-list {
    margin-top: 12px;
}
.autoreply-item-btn {
    border-radius: 10px;
    background: #f6f8fa;
    color: #17a2b8;
    border: 2px solid #e0d7ff;
    font-size: 0.95em;
    font-weight: 600;
    padding: 6px 14px;
    transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 4px 0 rgba(123,97,255,0.06);
    cursor: pointer;
    outline: none;
}
.autoreply-item-btn:hover {
    background: linear-gradient(90deg, #007bff 0%, #17a2b8 100%);
    color: #fff;
    border: 2px solid #17a2b8;
    box-shadow: 0 4px 16px 0 rgba(123,97,255,0.13);
} 

.status-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    max-width: 100%;
}
.status-btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85em;
    background: #f6f8fa;
    color: #17a2b8;
    border: 2px solid #e0d7ff;
    box-shadow: 0 1px 4px 0 rgba(123,97,255,0.06);
    padding: 4px 8px;
    transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
    cursor: pointer;
    outline: none;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.status-btn.active, .status-btn:hover {
    background: linear-gradient(90deg, #17a2b8 0%, #007bff 100%);
    color: #fff;
    box-shadow: 0 2px 8px 0 rgba(123,97,255,0.13);
}

/* Адаптивные стили для кнопок статуса */
@media (max-width: 1200px) {
    .status-btn {
        font-size: 0.8em;
        padding: 3px 6px;
    }
}

@media (max-width: 900px) {
    .status-buttons {
        gap: 2px;
        justify-content: flex-start;
    }
    .status-btn {
        font-size: 0.75em;
        padding: 2px 4px;
        min-width: 60px;
        flex: 0 1 auto;
    }
}

/* Специальные стили для textarea */
#message-textarea {
    resize: none !important;
    overflow-y: hidden !important;
    min-height: 38px !important;
    max-height: 200px !important;
    transition: height 0.2s ease !important;
    line-height: 1.4 !important;
    font-family: 'Inter', 'Noto Color Emoji', 'Segoe UI Emoji', 'Apple Color Emoji', 'Segoe UI Symbol', 'Segoe UI', sans-serif !important;
}

#message-textarea::-webkit-scrollbar {
    width: 6px !important;
}

#message-textarea::-webkit-scrollbar-thumb {
    background: rgba(123,97,255,0.3) !important;
    border-radius: 3px !important;
}

#message-textarea::-webkit-scrollbar-track {
    background: rgba(123,97,255,0.05) !important;
    border-radius: 3px !important;
} 

.camera-btn {
    border-radius: 12px;
    background: #f6f8fa;
    border: 1px solid #e0e0e0;
    padding: 6px 10px;
    box-shadow: 0 1px 4px 0 rgba(123,97,255,0.06);
    transition: background 0.16s, box-shadow 0.16s, transform 0.13s;
}
.camera-btn:hover {
    background: #f0f4ff;
    box-shadow: 0 2px 8px 0 rgba(123,97,255,0.10);
    transform: scale(1.05);
} 

.screenshot-editor-body {
    min-height: 420px;
}
.editor-canvas-wrap {
    position: relative;
    width: 100%;
    min-height: 320px;
    background: #f6f8fa;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(123,97,255,0.08);
    padding: 10px;
}
#editor-canvas, #editor-overlay {
    position: absolute;
    top: 10px; left: 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
}
#editor-canvas { z-index: 1; }
#editor-overlay { z-index: 2; }
.screenshot-toolbar .btn { 
    border-radius: 10px; 
    font-size: 0.95em;
} 


/* Текст в модалках — чёрный */
.modal-content,
.modal-content .modal-title,
.modal-content label,
.modal-content .form-control,
.modal-content .form-text,
.modal-content .modal-body,
.modal-content .modal-header,
.modal-content .modal-footer {
    color: #000 !important;
}

/* Плейсхолдеры в полях модалок чуть светлее */
.modal-content ::placeholder {
    color: #555 !important;
}

/* Не трогаем основной цвет текста у action-кнопок */
.modal-content .btn-primary,
.modal-content .btn-success,
.modal-content .btn-outline-primary,
.modal-content .btn-outline-secondary,
.modal-content .btn-outline-success {
    color: inherit;
} 