
:root {
    --primary-color: #01729e;
    --primary-gradient: linear-gradient(135deg, #01729e, #005f85);
    --bg-color: #ffffff;
    --light-gray: #f4f6f8;
    --text-color: #333333;
    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-button: 0 4px 15px rgba(1, 114, 158, 0.4);
    --radius-box: 20px;
    --radius-msg: 18px;
}

* {
    box-sizing: border-box;
    font-family: 'Damas Font', sans-serif;
}


.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-button);
    z-index: 10001;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.chat-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(1, 114, 158, 0.5);
}

.chat-button svg {
    width: 32px;
  
    height: 32px;

    fill: white;

    transition: transform 0.3s ease;
}

.chat-button:hover svg {
    transform: scale(1.1);
}


.chat-box {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    height: 520px;
    background-color: var(--bg-color);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-box);
    display: none;
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.chat-box.active {
    display: flex;
}


.chat-header {
    background: var(--primary-gradient);
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.chat-text-group {
    display: flex;
    flex-direction: column;
}

.chat-title {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
}

.chat-status {
    font-size: 11px;
    opacity: 0.85;
    display: block;
    margin-top: 2px;
}

.header-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    opacity: 0.7;
    transition: 0.2s;
    font-size: 16px;
    padding: 6px;
    border-radius: 6px;
}

.header-actions button:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}


.chat-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #fff;
}

.chat-content::-webkit-scrollbar {
    width: 5px;
}

.chat-content::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 10px;
}

.message {
    padding: 10px 16px;
    border-radius: var(--radius-msg);
    max-width: 85%;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bot-message {
    background-color: var(--light-gray);
    align-self: flex-start;
    color: var(--text-color);
    border-bottom-left-radius: 4px;
}

.user-message {
    background: var(--primary-gradient);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-content a {
    color: inherit;
    text-decoration: underline;
    font-weight: 500;
}


.chat-footer {
    padding: 15px;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--light-gray);
    border-radius: 30px;
    padding: 5px 5px 5px 15px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.input-wrapper:focus-within {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(1, 114, 158, 0.1);
}

#chat-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #333;
    padding: 8px 0;
}


.send-btn {
    background: var(--primary-color);
    border: none;
    width: 36px;
   
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    margin-left: 8px;
    padding: 0;

}

.send-btn:hover {
    transform: scale(1.1);
}

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

    margin-left: 2px;
 
}