/**
 * AdsoftBot - Folha de estilos principal
 */

:root {
    --primary: #075E54;
    --primary-light: #128C7E;
    --primary-dark: #053934;
    --secondary: #25D366;
    --secondary-light: #52E58F;
    --secondary-dark: #1AA351;
    --accent: #34B7F1;
    --dark: #292B2C;
    --light: #F8F9FA;
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
    --info: #17A2B8;
    --chat-bg-color: #f0f0f0;
    --chat-primary: #075E54;
    --chat-secondary: #128C7E;
    --chat-light: #25D366;
    --chat-dark: #075E54;
    --chat-message-bg: #ffffff;
    --chat-user-message-bg: #DCF8C6;
    --chat-header-bg: #075E54;
    --chat-header-text: #ffffff;
    --chat-input-bg: #ffffff;
    --chat-border-radius: 8px;
    --chat-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --chat-transition: all 0.3s ease;
    --chat-bg: #E5DDD5;
    --chat-pattern-opacity: 0.04;
}

/* Estilos Gerais */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f9f9f9;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-light);
}

/* Personalização do Bootstrap */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.nav-link.active {
    font-weight: 500;
}

/* Cards */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 10px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

/* Ícones e elementos de destaque */
.feature-icon, .icon-box, .avatar {
    transition: all 0.3s ease;
}

.feature-icon:hover, .icon-box:hover, .avatar:hover {
    transform: scale(1.05);
}

/* Formulários */
.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(7, 94, 84, 0.25);
}

.input-group-text {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PC9yZWN0Pgo8Y2lyY2xlIGN4PSIyIiBjeT0iMiIgcj0iMiIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIj48L2NpcmNsZT4KPC9zdmc+');
    opacity: 0.2;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Dashboard Específico */
.bg-primary-light {
    background-color: rgba(7, 94, 84, 0.1);
}

.bg-success-light {
    background-color: rgba(40, 167, 69, 0.1);
}

.bg-warning-light {
    background-color: rgba(255, 193, 7, 0.1);
}

.bg-info-light {
    background-color: rgba(23, 162, 184, 0.1);
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Página de Imagens */
.img-thumbnail {
    transition: transform 0.2s ease;
}

.img-thumbnail:hover {
    transform: scale(1.02);
}

/* Estilos para erros de formulário */
.was-validated .form-control:invalid {
    border-color: var(--danger);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid {
    border-color: var(--success);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Paginação */
.page-link {
    color: var(--primary);
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Planos de Assinatura */
.pricing-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    z-index: 1;
}

.pricing-card.popular::before {
    content: 'Popular';
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(45deg) translateX(25%) translateY(-50%);
    transform-origin: top right;
}

/* Loader */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dashboard Preview Placeholder */
.dashboard-preview-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
}

/* Estilos para o Chat Original - AdsoftBot */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #DADBD3;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 15px;
}

.chat-container {
    max-width: 430px;
    width: 100%;
    background-color: #F8F9FA;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 90vh;
    max-height: 700px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.chat-header {
    background-color: var(--chat-header-bg);
    color: var(--chat-header-text);
    padding: 15px;
    display: flex;
    align-items: center;
}

.profile-image {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: var(--chat-primary);
}

.profile-image i {
    font-size: 24px;
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.profile-info p {
    margin: 0;
    font-size: 13px;
    opacity: 0.8;
}

.header-actions {
    display: flex;
    gap: 20px;
}

.header-actions i {
    font-size: 18px;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.header-actions i:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: var(--chat-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23075E54' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    margin-bottom: 15px;
    position: relative;
    clear: both;
    animation: fadeIn 0.3s ease;
}

.message.user {
    align-self: flex-end;
    align-items: flex-end;
    float: right;
}

.message.bot {
    align-self: flex-start;
    align-items: flex-start;
    float: left;
}

.message-content {
    padding: 10px 15px;
    border-radius: 10px;
    position: relative;
    color: #303030;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1.5;
}

.message.user .message-content {
    background-color: var(--chat-user-message-bg);
    border-top-right-radius: 0;
    position: relative;
}

.message.user .message-content:before {
    content: "";
    position: absolute;
    top: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid var(--chat-user-message-bg);
    border-top: 8px solid transparent;
}

.message.bot .message-content {
    background-color: var(--chat-bot-message-bg);
    border-top-left-radius: 0;
    position: relative;
}

.message.bot .message-content:before {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-right: 8px solid var(--chat-bot-message-bg);
    border-top: 8px solid transparent;
}

.message-content p {
    margin: 0;
    word-wrap: break-word;
    line-height: 1.5;
}

.message-time {
    font-size: 11px;
    color: #8c8c8c;
    margin-top: 5px;
    margin-right: 5px;
}

.chat-input {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f0f0f0;
    border-top: 1px solid #e6e6e6;
}

.input-actions {
    margin-right: 10px;
}

.input-actions i {
    font-size: 22px;
    color: #777;
    cursor: pointer;
    transition: color 0.2s ease;
}

.input-actions i:hover {
    color: var(--chat-primary);
}

#message-input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    background-color: #ffffff;
    outline: none;
    resize: none;
    max-height: 80px;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#message-input:focus {
    box-shadow: 0 1px 3px rgba(7, 94, 84, 0.2);
}

#send-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--chat-primary);
    color: white;
    border: none;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

#send-button:hover {
    background-color: var(--chat-secondary);
}

#send-button:active {
    transform: scale(0.95);
}

/* Indicador de digitação */
.typing-indicator {
    display: flex;
    padding: 10px 15px;
    background-color: #ffffff;
    border-radius: 15px;
    margin-bottom: 15px;
    width: fit-content;
    align-self: flex-start;
    animation: fadeIn 0.3s ease;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #b6b6b6;
    border-radius: 50%;
    margin: 0 2px;
    display: inline-block;
    animation: typing 1.5s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Formatação de texto nas mensagens */
.message-content strong,
.message-content b {
    font-weight: 700;
}

.message-content a {
    color: var(--chat-primary);
    text-decoration: underline;
}

.message-content ul,
.message-content ol {
    padding-left: 20px;
    margin: 8px 0;
}

.message-content li {
    margin-bottom: 5px;
}

/* Rolagem personalizada */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

/* Melhora a rolagem em dispositivos móveis */
@media (max-width: 768px) {
    .chat-container {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        width: 100%;
        max-width: 100%;
    }
    
    body {
        padding: 0;
    }
} 