:root {
    --accent: #4ade80;
    --bg: #1a1a1a;
    --panel-bg: #111;
    --warning: #ef4444;
    --warning-login: #f472b6;
}

/* ================= FLOATING BUTTON ================= */
.floating-support {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #1a1a1a;
    box-shadow: 0 8px 28px rgba(0,0,0,0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.floating-support:hover {
    transform: scale(1.07);
    box-shadow: 0 14px 36px rgba(0,0,0,0.55);
    background: #0f0f0f;
}
.floating-support svg {
    transition: transform .25s ease;
}
.floating-support:hover svg {
    transform: scale(1.15);
}

#supportTooltip {
    position: absolute;
    right: 90px;
    bottom: 26px;
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 100002;
    white-space: nowrap;
}
.floating-support:hover #supportTooltip {
    opacity: 1;
    transform: translateY(0);
}

#adminAlert {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--warning);
    color: #fff;
    padding: 4px 7px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: none;
    cursor: pointer;
    z-index: 100002;
}

#warningTooltip {
    position: absolute;
    bottom: 100px;
    right: 25px;
    background: var(--warning-login);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    display: none;
    z-index: 100002;
    white-space: nowrap;
}

/* ================= ASSISTANT MODAL ================= */
#assistantModal {
    display: none;
    position: fixed;
    bottom: 110px;
    right: 20px;
    width: 280px;
    max-width: 90vw;
    height: 360px;
    background: var(--bg);
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.5);
    flex-direction: column;
    z-index: 100000;
    font-family: Inter, Poppins, system-ui;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Header */
.assistant-header {
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important; /* qalın sabit */
    text-transform: none !important;
}

/* Close button */
#assistantClose {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

/* Messages container */
#assistantMessages {
    flex: 1;
    padding: 10px;
    background: var(--panel-bg);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-behavior: smooth;
}
#assistantMessages::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}
#assistantMessages {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ================= MESSAGES ================= */
.message-user,
.message-bot {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    position: relative;
    width: 100%;
}

/* User message (sağ) */
.message-user {
    justify-content: flex-end;
}
.message-user .text {
    background: #1f2937;
    color: #fff;
    border-radius: 12px;
    padding: 6px 10px;
    max-width: 78%;
    word-wrap: break-word;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    font-size: 13px;
    display: inline-block;
}

/* Bot message (sol) */
.message-bot {
    justify-content: flex-start;
}
.message-bot .text {
    background: #d9f99d;
    color: #000;
    border-radius: 12px;
    padding: 6px 10px;
    max-width: 78%;
    word-wrap: break-word;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    font-size: 13px;
    display: inline-block;
}

/* Warning message */
.message-bot.warning .text {
    background: linear-gradient(90deg, #f87171, #ec4899);
    color: #fff;
}

/* Timestamp */
.message-user .text .timestamp,
.message-bot .text .timestamp {
    display: inline-block;
    margin-left: 6px;
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    vertical-align: middle;
}

/* Avatar */
.message-user .avatar-container,
.message-bot .avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.message-user .avatar,
.message-bot .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.message-user .username,
.message-bot .username {
    font-size: 11px;
    margin-top: 2px;
    text-align: center;
    color: #fff;
}

/* Bot avatar image */
.bot-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* ================= MESSAGE INPUT PANEL ================= */
#messageInputPanel {
    display: flex;
    gap: 6px;
    padding: 8px;
    border-top: 1px solid rgba(74,222,128,0.3);
    background: var(--accent);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    align-items: center;
    box-sizing: border-box;
}

/* Input field */
/* ================= GLOBAL INPUT STİL ================= */
input, textarea {
    background-color: #1a1a1a !important; /* qara fon */
    color: #fff !important;               /* ağ mətn */
    border: 1px solid #333 !important;    /* sərhəd */
    border-radius: 12px;                   /* opsiyonel */
    outline: none !important;             /* focus xətini silir */
}

/* Fokus zamanı da rəng dəyişməsin */
input:focus, textarea:focus {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border-color: #4ade80 !important; /* accent sərhəd */
}

/* Send & Upload buttons */
#assistantSend, #fileUploadBtn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
#assistantSend { background: #16a34a; }
#fileUploadBtn { background: #facc15; }
