* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    width: 100%;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 3px solid #1e3a8a;
}

.header-logo {
    height: 60px;
    margin-right: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

h1 {
    color: #1e3a8a;
    font-size: 26px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Alinhar ao topo */
    width: 100%;
    max-width: 800px; /* Largura máxima para o conteúdo principal */
    padding: 20px;
}

.chat-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    height: 70vh;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    border-bottom: 1px solid #eee;
}

.message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.4;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    align-self: flex-start;
    color: #374151;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-message {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-input {
    display: flex;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.chat-input input[type="text"] {
    flex-grow: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    margin-right: 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input input[type="text"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chat-input button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-input button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.chat-buttons {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    gap: 10px;
}

.chat-buttons button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 80px;
}

.chat-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.chat-buttons button.no {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.chat-buttons button.no:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Responsividade */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    
    .header-logo {
        height: 50px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    h1 {
        font-size: 20px;
        text-align: center;
    }
    
    main {
        padding: 10px;
    }
    
    .chat-container {
        height: 80vh;
        max-width: 100%;
    }
    
    .chat-input {
        padding: 15px;
    }
    
    .chat-input input[type="text"] {
        font-size: 16px; /* Evita zoom no iOS */
    }
    
    .chat-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .chat-buttons button {
        width: 200px;
        margin: 5px 0;
    }
}


