/* WIDGET FLOTANTE DANI AI */
.dani-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dani-avatar-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #0d0e15;
    border: 2px solid #00f3ff;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6px;
}

.dani-avatar-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 22px rgba(0, 243, 255, 0.7);
}

.dani-cat-icon {
    width: 100%;
    height: 100%;
}

.dani-badge-pulse {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #00ff88;
    border-radius: 50%;
    border: 2px solid #0d0e15;
    box-shadow: 0 0 8px #00ff88;
}

/* VENTANA DE CHAT */
.dani-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 480px;
    max-height: calc(100vh - 120px);
    background: #0f111a;
    border: 1px solid #00f3ff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 243, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.25s ease;
}

.dani-window.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
}

.dani-header {
    background: #161925;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.dani-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dani-mini-avatar {
    width: 34px;
    height: 34px;
}

.dani-header h4 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
}

.dani-tag {
    font-size: 0.65rem;
    background: rgba(0, 243, 255, 0.15);
    color: #00f3ff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.dani-status {
    font-size: 0.72rem;
    color: #a0a5b5;
    display: block;
}

.dani-close {
    background: none;
    border: none;
    color: #a0a5b5;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.dani-close:hover {
    color: #ff0055;
}

/* CUERPO DEL CHAT */
.dani-messages-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #0f111a;
}

.dani-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    word-break: break-word;
}

.dani-msg-ai {
    align-self: flex-start;
    background: #181c2b;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 2px;
}

.dani-msg-user {
    align-self: flex-end;
    background: #00f3ff;
    color: #0d0e15;
    font-weight: 500;
    border-bottom-right-radius: 2px;
}

/* CHIPS DE SUGERENCIAS */
.dani-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.dani-chip {
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: #00f3ff;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dani-chip:hover {
    background: rgba(0, 243, 255, 0.25);
}

/* ENTRADA DE TEXTO */
.dani-input-area {
    padding: 10px;
    background: #161925;
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dani-input-area input {
    flex: 1;
    background: #0f111a;
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 0.88rem;
    outline: none;
}

.dani-input-area input:focus {
    border-color: #00f3ff;
}

.dani-input-area button {
    background: #00f3ff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d0e15;
}

.dani-input-area button:hover {
    background: #00c8d4;
}