body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
  /*pointer-events: none;*/
  user-select: none;
  -webkit-user-drag: none;
}

@media print {
    body { display: none !important; }
}

@media screen and (max-width: 600px) {
    .header-logo img {
        height: 55px;
    }
}

.chat-trigger {
    position: fixed;
    bottom: 30px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #6d211e, #925554);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(146, 85, 84, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.chat-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(146, 85, 84, 0.4);
}

.chat-trigger svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-overlay.active {
    display: flex;
    opacity: 1;
}

.chat-popup {
    width: 90%;
    max-width: 800px;
    height: 700px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.chat-overlay.active .chat-popup {
    transform: scale(1);
}

.chat-header {
    background: linear-gradient(135deg, #925554, #925554);
    padding: 10px 10px 10px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 16px;
    line-height: 1.5;
    animation: slideIn 0.3s ease;
    word-wrap: break-word;
}

.message.user {
    background: #925554;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.bot {
    background: #f8f9fa;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    position: relative;
    border: 1px solid #e9ecef;
}

/* HTML Content Styling */
.message.bot strong, .message.bot b {
    color: #925554;
    font-weight: 600;
}

.message.bot em, .message.bot i {
    color: #666;
    font-style: italic;
}

.message.bot code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: #d63384;
}

.message.bot pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 12px;
    border-radius: 8px;
    margin: 8px 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
}

.message.bot pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.message.bot a {
    color: #925554;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.message.bot a:hover {
    border-bottom-color: #925554;
}

.message.bot ul, .message.bot ol {
    margin: 8px 0;
    padding-left: 20px;
}

.message.bot li {
    margin: 4px 0;
}

.message.bot blockquote {
    border-left: 3px solid #925554;
    padding-left: 12px;
    margin: 8px 0;
    color: #666;
    font-style: italic;
}

.message.bot h1, .message.bot h2, .message.bot h3 {
    color: #2d3748;
    margin: 12px 0 8px 0;
    font-weight: 600;
}

.message.bot h1 {
    font-size: 18px;
}
.message.bot h2 {
    font-size: 16px;
}
.message.bot h3 {
    font-size: 14px;
}

.message.bot p {
    margin: 8px 0;
}

.message.bot p:first-child {
    margin-top: 0;
}

.message.bot p:last-child {
    margin-bottom: 0;
}

.typing-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    max-width: 85%;
    align-self: flex-start;
    margin: 0px 0px 10px 10px;
}

.typing-indicator.active {
    display: flex;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typingBounce 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-cursor {
    display: inline-block;
    width: 2px;
    height: 18px;
    background: #925554;
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

.chat-input-container {
    padding: 20px;
    border-top: 1px solid #e1e5e9;
    background: white;
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    border: 2px solid #e1e5e9;
    border-radius: 20px;
    padding: 12px 16px;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease;
    max-height: 120px;
    min-height: 50px;
    font-family: inherit;    
}

.chat-input:focus {
    border-color: #925554;
}

.send-btn {
    width: 44px;
    height: 44px;
    background: #925554;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.send-btn:hover:not(:disabled) {
    background: #6d211e;
    transform: scale(1.05);
}

.send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.send-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

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

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}