/* Estilos aprimorados para o chat na seção de demonstração */
.demo-section {
    padding: 100px 0;
    background-color: #0f1219;
    position: relative;
    overflow: hidden;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 77, 109, 0.05) 0%, rgba(13, 17, 23, 0) 70%);
    z-index: 1;
}

.demo-container {
    position: relative;
    z-index: 2;
}

.chat-container {
    max-width: 450px;
    margin: 0 auto;
    background-color: #1a1f2b;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.05),
                0 0 30px rgba(255, 77, 109, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
    transform: perspective(1000px) rotateY(0deg);
}

.chat-container:hover {
    transform: perspective(1000px) rotateY(2deg) translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.07),
                0 0 40px rgba(255, 77, 109, 0.2);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1e2433 0%, #131722 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 77, 109, 0.7);
    box-shadow: 0 0 15px rgba(255, 77, 109, 0.3);
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-info {
    flex: 1;
    margin-left: 15px;
}

.chat-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.chat-status {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4CAF50;
    margin-right: 6px;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(76, 175, 80, 0.3);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.status-text {
    font-size: 12px;
    color: #a0a0a0;
    margin-right: 10px;
}

.status-badge {
    font-size: 10px;
    background-color: rgba(255, 77, 109, 0.2);
    color: #ff4d6d;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.chat-body {
    height: 350px;
    padding: 20px;
    overflow-y: auto;
    background-color: #0f1219;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 80%;
    margin-bottom: 15px;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

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

.message.client {
    align-self: flex-end;
}

.message.assistant {
    align-self: flex-start;
}

.message.hidden {
    display: none;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

.message.client .message-content {
    background-color: #ff4d6d;
    color: #fff;
    border-top-right-radius: 4px;
}

.message.assistant .message-content {
    background-color: #1e2433;
    color: #e0e0e0;
    border-top-left-radius: 4px;
}

.message-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
    text-align: right;
}

.message.client .message-time {
    margin-right: 5px;
}

.message.assistant .message-time {
    margin-left: 5px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 2px;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.6;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-footer {
    padding: 15px;
    background-color: #1a1f2b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input-container {
    display: flex;
    align-items: center;
    background-color: #0f1219;
    border-radius: 24px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.chat-input-container:focus-within {
    border-color: rgba(255, 77, 109, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 77, 109, 0.2);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
    outline: none;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.chat-send-btn {
    background-color: transparent;
    border: none;
    color: #ff4d6d;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
    transition: all 0.2s ease;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    color: #ff6b85;
}

.chat-send-btn:active {
    transform: scale(0.95);
}

/* Estilos para as características destacadas */
.demo-features {
    margin-top: 40px;
}

.features-title {
    font-size: 24px;
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.features-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff4d6d, #ff6b85);
    border-radius: 3px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-item {
    background-color: rgba(30, 36, 51, 0.5);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.05) 0%, rgba(13, 17, 23, 0) 70%);
    z-index: 0;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 77, 109, 0.2);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff4d6d 0%, #ff6b85 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 10px 20px rgba(255, 77, 109, 0.3);
}

.feature-content {
    position: relative;
    z-index: 1;
}

.feature-content h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
}

.feature-content p {
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.6;
}

.demo-cta {
    text-align: center;
    margin-top: 40px;
}

/* Estilos responsivos */
@media (max-width: 992px) {
    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .chat-container {
        max-width: 100%;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .message {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .chat-body {
        height: 300px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
