@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    overflow-x: hidden;
}

.gradient-text {
    background: linear-gradient(90deg, #243bc0, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glow {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.pixel-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.tech-border {
    position: relative;
}

.tech-border::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Chatbot Styles - Professional Version */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.chatbot-toggle .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.chatbot-window {
    width: 380px;
    max-width: 90vw;
    height: 500px;
    max-height: 80vh;
    background: #1e1e1e;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.chatbot-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chatbot-window.minimized {
    transform: translateY(calc(100% - 40px)) scale(1);
    height: 40px;
    overflow: hidden;
}

.chatbot-header {
    background: linear-gradient(90deg, #243bc0, #3b82f6);
    color: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.chatbot-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.chatbot-header .status {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.chatbot-actions {
    display: flex;
    gap: 10px;
}

.chatbot-action-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.chatbot-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chatbot-minimize {
    opacity: 0.7;
}

.chatbot-minimize:hover {
    opacity: 1;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #1a1a1a;
    scroll-behavior: smooth;
}

.message-container {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.message-container.bot {
    align-items: flex-start;
}

.message-container.user {
    align-items: flex-end;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    animation: fadeIn 0.3s ease;
    margin-bottom: 4px;
    word-wrap: break-word;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    background: #2d3748;
    color: white;
    border-bottom-left-radius: 5px;
    align-self: flex-start;
}

.user-message {
    background: #3b82f6;
    color: white;
    border-bottom-right-radius: 5px;
    margin-left: auto;
    align-self: flex-end;
}

.timestamp {
    font-size: 0.7rem;
    color: #a0aec0;
    margin-top: 2px;
    text-align: right;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-start;
}

.quick-reply {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid #3b82f6;
    border-radius: 15px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 5px;
}

.quick-reply:hover {
    background: #3b82f6;
    color: white;
}

.chatbot-input-container {
    padding: 12px;
    background: #1e1e1e;
    border-top: 1px solid #2d3748;
    position: relative;
}

.chatbot-input {
    display: flex;
    align-items: center;
    background: #2d3748;
    border-radius: 25px;
    padding: 5px 15px;
}

.chatbot-input input {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: transparent;
    color: white;
    outline: none;
    font-size: 0.9rem;
}

.chatbot-input button {
    background: transparent;
    color: #a0aec0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-input button:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.typing-indicator {
    display: flex;
    padding: 10px 15px;
    background: #2d3748;
    border-radius: 18px;
    width: fit-content;
    margin-bottom: 15px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background: #a0aec0;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: bounce 1.5s infinite ease-in-out;
}

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

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

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

@keyframes bounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-5px);
    }
}

/* Scrollbar styling */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 3px;
}

.chatbot-footer {
    padding: 10px 15px;
    font-size: 0.7rem;
    color: #6b7280;
    text-align: center;
    border-top: 1px solid #2d3748;
    background: #1e1e1e;
}

.chatbot-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: #2d3748;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 10;
    display: none;
    width: 200px;
}

.chatbot-menu.active {
    display: block;
}

.chatbot-menu-item {
    padding: 10px 15px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.chatbot-menu-item:hover {
    background: #3b82f6;
}

.chatbot-menu-item i {
    width: 16px;
    text-align: center;
}

.chatbot-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

/* History modal styles */
.history-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.history-modal.active {
    opacity: 1;
    visibility: visible;
}

.history-modal-content {
    background: #1e1e1e;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    border: 1px solid #3b82f6;
}

.history-modal-header {
    padding: 15px;
    background: linear-gradient(90deg, #243bc0, #3b82f6);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-modal-body {
    padding: 15px;
    max-height: 65vh;
    overflow-y: auto;
}

.history-item {
    background: #2d3748;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    background: #3b82f6;
}

.history-item-date {
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
}

.history-item-preview {
    color: #a0aec0;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Help modal styles */
.help-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.help-modal.active {
    opacity: 1;
    visibility: visible;
}

.help-modal-content {
    background: #1e1e1e;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    border: 1px solid #3b82f6;
}

.help-modal-header {
    padding: 15px;
    background: linear-gradient(90deg, #243bc0, #3b82f6);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-modal-body {
    padding: 20px;
}

.help-item {
    margin-bottom: 15px;
}

.help-item-title {
    font-weight: bold;
    color: #3b82f6;
    margin-bottom: 5px;
}

.help-item-desc {
    color: #a0aec0;
    font-size: 0.9rem;
}

.help-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 640px) {
    .chatbot-window {
        width: 90vw;
        max-height: 70vh;
        bottom: 70px;
        right: 0;
    }

    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .message {
        max-width: 75%;
        font-size: 0.85rem;
    }
}

/* Login Modal Styles */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal.active {
    opacity: 1;
    visibility: visible;
}

.login-modal-content {
    background: #1e1e1e;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    overflow: hidden;
    border: 1px solid #3b82f6;
}

.login-modal-header {
    padding: 15px;
    background: linear-gradient(90deg, #243bc0, #3b82f6);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-modal-body {
    padding: 25px;
}

.login-form-group {
    margin-bottom: 20px;
}

.login-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #a0aec0;
    font-size: 0.9rem;
}

.login-form-group input {
    width: 100%;
    padding: 12px 15px;
    background: #2d3748;
    border: 1px solid #2d3748;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.login-form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.2s;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.login-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.login-divider {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #6b7280;
    font-size: 0.85rem;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #2d3748;
}

.login-divider::before {
    margin-right: 15px;
}

.login-divider::after {
    margin-left: 15px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2d3748;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.social-btn.google:hover {
    background: #DB4437;
}

.social-btn.facebook:hover {
    background: #4267B2;
}

.social-btn.twitter:hover {
    background: #1DA1F2;
}

.register-link {
    text-align: center;
    font-size: 0.9rem;
    color: #a0aec0;
}

.register-link a {
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.2s;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Wrapper para campos de senha com ícone de olho */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 40px; /* espaço pro ícone */
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #e5e7eb;
}

.password-toggle i {
    font-size: 0.9rem;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Toast base */
.toast {
    min-width: 260px;
    max-width: 360px;
    background: #020617;
    border-radius: 0.75rem;
    padding: 12px 16px;
    color: #e5e7eb;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(107, 114, 128, 0.6);
    opacity: 0;
    transform: translateY(-10px) translateX(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Barrinha colorida à esquerda */
.toast::before {
    content: "";
    width: 4px;
    border-radius: 999px;
    align-self: stretch;
    background: #3b82f6;
}

/* Estados */
.toast.show {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.toast-success::before {
    background: #10b981;
}

.toast-error::before {
    background: #ef4444;
}