﻿/* Launcher */
.gdtg-launcher {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #0a7cff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    cursor: pointer;
}

    .gdtg-launcher:hover {
        transform: translateY(-1px);
    }

.gdtg-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ff4757;
    color: #fff;
    font-size: 11px;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Panel */
.gdtg-panel {
    position: fixed;
    right: 20px;
    bottom: 84px;
    z-index: 9999;
    width: 385px;
    max-height: 540px;
    display: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(0,0,0,.2);
    overflow: hidden;
}

.gdtg-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(90deg,#0084ff,#44bef1);
    color: #fff;
}

    .gdtg-head .ttl {
        font-weight: 700;
    }

.gdtg-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.gdtg-body {
    background: #f0f2f5;
    height: 410px;
    overflow: auto;
    padding: 14px;
}

.gdtg-day {
    position: sticky;
    top: 6px;
    display: inline-block;
    margin: 6px auto 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #e5efff;
    color: #2563eb;
    font-size: 12px;
}

.gdtg-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 8px 0;
}

.gdtg-avt {
    flex: 0 0 30px !important;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #667eea;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.gdtg-bubble {
    max-width: 72%;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 8px 10px;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}

.gdtg-meta {
    font-size: 11px;
    color: #9aa0a6;
    margin-top: 3px;
}

.gdtg-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    font-size: 13px;
    color: #667085;
}

.gdtg-action {
    cursor: pointer;
}

    .gdtg-action.liked {
        color: #0a7cff;
    }

.gdtg-foot {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #eee;
}

.gdtg-input {
    flex: 1;
    background: #f0f2f5;
    border-radius: 16px;
    padding: 8px 10px;
    border: none;
    outline: none;
    max-height: 90px;
    resize: none;
}

.gdtg-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0a7cff;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .gdtg-send:disabled {
        background: #c9dfff;
        cursor: not-allowed;
    }

/* Mobile */
@media (max-width: 576px) {
    .gdtg-panel {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 74px;
    }

    .gdtg-launcher {
        right: 10px;
        bottom: 10px;
    }
}
