/* ჩათის ძირითადი სტილები */
.chat-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #00a4bd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 164, 189, 0.3);
    z-index: 1050;
    transition: all 0.3s ease;
}

.chat-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 164, 189, 0.4);
}

.chat-icon.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 164, 189, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 164, 189, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 164, 189, 0);
    }
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.chat-modal {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 1049;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.chat-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-modal.minimized {
    height: 60px;
    overflow: hidden;
}

.chat-header {
    padding: 15px 20px;
    background-color: #1a365d;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.chat-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-controls {
    display: flex;
    gap: 8px;
}

.chat-control-btn {
    background: none;
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease;
}

.chat-control-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    max-width: 80%;
}

.admin-message {
    margin-right: auto;
}

.user-message {
    margin-left: auto;
}

.message-content {
    padding: 10px 14px;
    border-radius: 15px;
    position: relative;
}

.admin-message .message-content {
    background-color: #e9ecef;
    border-bottom-left-radius: 5px;
}

.user-message .message-content {
    background-color: #00a4bd;
    color: white;
    border-bottom-right-radius: 5px;
}

.message-content p {
    margin: 0;
    padding: 0;
    line-height: 1.4;
    font-size: 14px;
}

.message-time {
    display: block;
    font-size: 10px;
    margin-top: 5px;
    opacity: 0.7;
    text-align: right;
}

.chat-footer {
    padding: 10px 15px;
    border-top: 1px solid #dee2e6;
    background-color: #ffffff;
}

.chat-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

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

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

.chat-send-btn:hover {
    background-color: #008ca0;
    transform: scale(1.05);
}

.chat-send-btn i {
    font-size: 14px;
}

/* ტაიპინგ ინდიკატორის სტილები */
.typing-indicator {
    padding: 12px 14px;
    min-width: 40px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: #666;
    border-radius: 50%;
    display: inline-block;
    animation: typing-animation 1.5s infinite ease-in-out;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-animation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
    100% {
        transform: translateY(0);
    }
}

/* მედია მოთხოვნები მობილური მოწყობილობებისთვის */
@media (max-width: 576px) {
    .chat-modal {
        right: 10px;
        left: 10px;
        bottom: 80px;
        width: auto;
        max-width: none;
    }
    
    .chat-icon {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}