.waffle-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: Arial, sans-serif;
}

.waffle-chat-button {
    width: 60px;
    height: 60px;
    background: #FFD600;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(255, 214, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.waffle-chat-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 20px rgba(255, 214, 0, 0.4);
}

.waffle-chat-button:active {
    transform: scale(0.95);
}

.waffle-chat-emoji {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.waffle-chat-button:hover .waffle-chat-emoji {
    transform: scale(1.1);
}

.waffle-chat-bubble {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    max-width: 250px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.waffle-chat-bubble-content {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.waffle-chat-bubble-arrow {
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.waffle-chat-container {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.waffle-chat-widget.open .waffle-chat-container {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.waffle-chat-header {
    padding: 15px;
    background: #FFD600;
    color: #222;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(255, 214, 0, 0.2);
}

.waffle-chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.waffle-chat-close {
    background: none;
    border: none;
    color: #222;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.waffle-chat-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.waffle-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.waffle-chat-message {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.waffle-chat-user-message {
    justify-content: flex-end;
}

.waffle-chat-user-message > div {
    background: #FFD600;
    color: #222;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    max-width: 80%;
}

.waffle-chat-bot-message {
    justify-content: flex-start;
}

.waffle-chat-bot-avatar {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.waffle-chat-bot-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.waffle-chat-bot-content {
    background-color: #FFD600;
    color: #222;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
    white-space: pre-line;
    line-height: 1.4;
}

.waffle-chat-bot-content p {
    margin: 0 0 0.5em 0;
}

.waffle-chat-bot-content p:last-child {
    margin-bottom: 0;
}

.waffle-chat-bot-content ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.waffle-chat-bot-content li {
    margin: 0.3em 0;
}

.waffle-chat-bot-content a {
    color: #007bff;
    text-decoration: none;
}

.waffle-chat-bot-content a:hover {
    text-decoration: underline;
}

.waffle-chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.waffle-chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(255, 214, 0, 0.2);
    border-radius: 20px;
    outline: none;
}

.waffle-chat-input input:focus {
    border-color: #FFD600;
    box-shadow: 0 0 0 2px rgba(255, 214, 0, 0.1);
}

.waffle-chat-send-message {
    background: #FFD600;
    color: #222;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: bold;
}

.waffle-chat-send-message:hover {
    background: #FFC700;
}

.waffle-chat-typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
    margin-right: 5px;
    animation: typing 1s infinite;
}

.waffle-chat-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.waffle-chat-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
    margin-right: 0;
}

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* --- MELHORIAS MODAL ANUNCIO --- */
#modal-anuncio {
  border-radius: 0 2rem 2rem 0 !important;
  /* border-left: 12px solid #FFD600 !important; */
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
#modal-anuncio .bg-yellow-400 {
  background: #FFD600 !important;
}
#modal-anuncio .rounded-l-3xl {
  border-radius: 0 !important;
}
#modal-anuncio .w-full.md\:w-1\/2.md\:p-10 {
  border-radius: 0 2rem 2rem 0;
}
#modal-anuncio input:focus, #modal-anuncio select:focus {
  border-color: #FFD600;
  box-shadow: 0 0 0 2px #FFD60033;
  outline: none;
}
#modal-anuncio button.bg-yellow-400 {
  background: #FFD600 !important;
  color: #222 !important;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.2s;
}
#modal-anuncio button.bg-yellow-400:hover {
  background: #FFC700 !important;
}
#modal-anuncio .shadow {
  box-shadow: 0 2px 12px rgba(255, 214, 0, 0.12) !important;
}
@media (max-width: 768px) {
  #modal-anuncio {
    border-radius: 1.5rem !important;
    border-left: none !important;
  }
  #modal-anuncio .rounded-l-3xl {
    border-radius: 1.5rem 1.5rem 0 0 !important;
  }
}

.bubble {
  background: #fff;
  border-radius: 20px;
  padding: 15px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  max-width: 300px;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  position: absolute;
  top: 40px;
  left: 40px;
  animation: fadeIn 0.5s ease;
  z-index: 2;
}
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}

.waffle-chat-sim {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 0 20px;
  max-width: 320px;
  font-family: 'Inter', sans-serif;
  z-index: 2;
  position: relative;
}
.chat-bubble {
  padding: 14px 18px;
  border-radius: 20px;
  max-width: 80%;
  line-height: 1.4;
  animation: fadeIn 0.5s ease;
  font-size: 1rem;
  position: relative;
}
.chat-bubble.user {
  align-self: flex-start;
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
}
.chat-bubble.bot {
  align-self: flex-end;
  background-color: #ffcf00;
  color: #000;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.waffle-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
  .waffle-chat-sim { max-width: 220px; padding: 10px 6px 0 6px; }
  .chat-bubble { font-size: 0.95rem; }
  .waffle-avatar { width: 22px; height: 22px; }
} 