/* ============ CHAT WIDGET - SPORT EDITION (FIXED DISPLAY) ============ */
:root {
    --chat-gold: #ffd700;
    --chat-gold-glow: rgba(255, 215, 0, 0.4);
    --chat-bg-dark: #0b0c10;
    --chat-panel: #111318;
    --chat-border: #222634;
    --chat-text: #ffffff;
    --chat-text-muted: #a0a5b0;
}

/* Floating Chat Trigger Button */
#simic-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffea75, var(--chat-gold));
    color: #000;
    border: 2px solid var(--chat-gold);
    cursor: pointer;
    box-shadow: 0 0 20px var(--chat-gold-glow), 0 8px 25px rgba(0,0,0,0.8);
    z-index: 99999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

#simic-chat-button:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px var(--chat-gold-glow);
}

#simic-chat-button svg {
    width: 26px;
    height: 26px;
    fill: #000;
}

/* Balončić iznad dugmeta */
#simic-chat-bubble {
    position: fixed;
    bottom: 88px;
    right: 20px;
    background: var(--chat-panel);
    color: var(--chat-text);
    border: 1px solid var(--chat-gold);
    padding: 8px 14px;
    border-radius: 10px 10px 2px 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6), 0 0 10px var(--chat-gold-glow);
    z-index: 99998;
    cursor: pointer;
    animation: floatBubble 3s infinite ease-in-out;
}

#simic-chat-bubble::after {
    content: '';
    position: absolute;
    bottom: -7px;
    right: 12px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid var(--chat-gold);
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Main Chat Box - Popravljene dimenzije za laptope */
#simic-chat-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 440px;
    max-height: calc(100vh - 110px);
    background: var(--chat-bg-dark);
    border: 1px solid var(--chat-border);
    border-top: 3px solid var(--chat-gold);
    border-radius: 12px;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9), 0 0 15px rgba(255, 215, 0, 0.15);
    z-index: 99999;
    overflow: hidden;
    font-family: 'Rajdhani', sans-serif;
    box-sizing: border-box;
}

#simic-chat-box.active {
    display: flex !important;
}

/* Header */
.chat-header {
    background: var(--chat-panel);
    padding: 12px 15px;
    border-bottom: 1px solid var(--chat-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    background: var(--chat-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--chat-gold);
}

.chat-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: var(--chat-gold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.chat-close {
    background: transparent;
    border: none;
    color: var(--chat-text-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.chat-close:hover {
    color: var(--chat-gold);
}

/* Message Container */
.chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: radial-gradient(circle at 50% 0%, #14161f 0%, var(--chat-bg-dark) 70%);
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--chat-border);
    border-radius: 2px;
}

/* Messages styling */
.msg {
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.msg.bot {
    background: var(--chat-panel);
    color: var(--chat-text);
    align-self: flex-start;
    border-left: 3px solid var(--chat-gold);
}

.msg.user {
    background: var(--chat-gold);
    color: #000;
    font-weight: 700;
    align-self: flex-end;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: var(--chat-panel);
    border-left: 3px solid var(--chat-gold);
    border-radius: 6px;
    width: fit-content;
}

.typing-indicator span {
    width: 5px;
    height: 5px;
    background: var(--chat-gold);
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); opacity: 0.4; }
}

/* Input Area */
.chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--chat-border);
    background: var(--chat-panel);
    gap: 8px;
    flex-shrink: 0;
}

.chat-input-area input {
    flex: 1;
    background: var(--chat-bg-dark);
    border: 1px solid var(--chat-border);
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--chat-gold);
}

.chat-input-area button {
    background: var(--chat-gold);
    border: none;
    padding: 0 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 900;
    color: #000;
    font-size: 16px;
}

/* Responsive za telefone */
@media (max-width: 480px) {
    #simic-chat-box {
        bottom: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }
}