/* 
    Autor: Rafael V. Gogge
    Copyright © 2025 Rafael V. Gogge
    Projeto: UniLab - Sistema de Gerenciamento de Laboratórios
    Enhanced by v0
*/

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #212529;
    --border-color: #dee2e6;
    --hover-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;

    /* Novas variáveis para melhorar a consistência */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1.2rem;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* Reset e Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Ajuste para compensar a navbar fixa */
}

/* Skip Link para Acessibilidade */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
    border-radius: 0 0 var(--border-radius-sm) 0;
    font-weight: var(--font-weight-medium);
}

.skip-link:focus {
    top: 0;
}

/* Estilos Globais */
body {
    font-family: "Poppins", sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    /* Prevenir scroll horizontal em animações */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: #0a58ca;
}

section {
    padding: 5rem 0;
    position: relative;
}

.container {
    max-width: 1200px;
    padding: 0 var(--spacing-md);
}

/* Seção de cabeçalho para todas as seções */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    position: relative;
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Navbar com animação de entrada */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(222, 226, 230, 0.3);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    max-height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-color);
}

.nav-link {
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    border-radius: var(--border-radius-sm);
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(13, 110, 253, 0.05);
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: var(--font-weight-semibold);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    vertical-align: -0.125em;
}

/* Navbar com mudança de cor ao scroll */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hero Section com parallax e typing effect */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    /* Compensar a navbar fixa */
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../imagens/pattern.png") repeat;
    opacity: 0.1;
    z-index: 0;
}

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

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.hero-content h1::after {
    content: "|";
    position: absolute;
    right: -15px;
    top: 0;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-content .lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-buttons .btn {
    padding: 0.75rem 1.75rem;
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-md);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-buttons .btn i {
    font-size: 1.1rem;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero-buttons .btn:active {
    transform: translateY(-1px);
}

.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.cta-button:hover::before {
    transform: translateX(0);
}

.hero-image {
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
    max-width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
    animation: pulse 3s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

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

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

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

.hero-wave {
    position: absolute;
    bottom: -190px;
    left: 0;
    width: 100%;
    z-index: 2;
    line-height: 0;
}

/* Sobre o Sistema Section */
.about-section {
    background-color: var(--background-color);
    padding: 5rem 0;
}

.about-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(222, 226, 230, 0.5);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.about-card:hover .about-icon {
    transform: scale(1.1) rotate(5deg);
}

.about-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: var(--font-weight-semibold);
}

/* Login Section */
.login-section {
    background-color: var(--card-background);
    padding: 5rem 0;
    position: relative;
}

.login-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(222, 226, 230, 0.5);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.login-card h2 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1rem;
}

.login-card h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.user-card {
    display: block;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    text-align: center;
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.user-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
}

.user-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: var(--text-color);
}

.admin-card:hover {
    border-color: var(--primary-color);
}

.professor-card:hover {
    border-color: var(--success-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.admin-card:hover .card-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.professor-card:hover .card-icon {
    transform: scale(1.1);
    color: var(--success-color);
}

.admin-card .card-icon {
    color: var(--primary-color);
}

.professor-card .card-icon {
    color: var(--success-color);
}

.user-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: var(--font-weight-semibold);
    position: relative;
    z-index: 1;
}

.user-card p {
    margin-bottom: 0;
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Features Section com staggered animation */
.features-section {
    background-color: var(--background-color);
    padding: 6rem 0;
    position: relative;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    background-color: var(--card-background);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid rgba(222, 226, 230, 0.5);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: var(--font-weight-semibold);
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--primary-color);
}

.feature-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Como Usar Section com slide animations */
.how-to-section {
    background-color: var(--card-background);
    padding: 6rem 0;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.step-item {
    display: flex;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.step-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.step-item:last-child {
    margin-bottom: 0;
}

.slide-from-left {
    transform: translateX(-50px);
}

.slide-from-right {
    transform: translateX(50px);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-right: 1.5rem;
    box-shadow: var(--shadow-md);
}

.step-content {
    flex-grow: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-semibold);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--background-color);
    padding: 6rem 0;
}

.testimonials-carousel {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin: 1rem;
    border: 1px solid rgba(222, 226, 230, 0.5);
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 1rem;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
}

.testimonial-content p::before {
    left: -10px;
    top: -10px;
}

.testimonial-content p::after {
    right: -10px;
    bottom: -10px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-author h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    font-weight: var(--font-weight-semibold);
}

.testimonial-author p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    bottom: -40px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.3;
    margin: 0 5px;
}

.carousel-indicators button.active {
    opacity: 1;
}

/* Footer com ripple effect */
.footer {
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--hover-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    color: white;
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.ripple-effect:hover::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
}

.footer-links a:hover {
    color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.separator {
    margin: 0 0.25rem;
    color: var(--secondary-color);
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
}

.back-to-top:hover {
    color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
    transform: translateY(-3px);
}

/* Chatbot */
/* Chatbot */
.chat-icon {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient-primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1000;
    font-size: 1.5rem;
}

.chat-icon:hover {
    transform: scale(1.1) rotate(10deg);
}

.chat-icon.pulsate {
    animation: pulsate 1.5s infinite;
}

@keyframes pulsate {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
        transform: scale(1);
    }
}

.chat-panel {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    width: 360px;
    height: 520px;
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform: translateY(20px);
    opacity: 0;
    border: 1px solid rgba(222, 226, 230, 0.5);
}

.chat-panel.show {
    display: flex !important;
    flex-direction: column;
    transform: translateY(0);
    opacity: 1;
    z-index: 1001;
    overflow: visible;
}

.chat-panel.show .chat-footer {
    overflow: visible !important;
}

.chat-header {
    padding: 10px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.chat-header h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-weight-semibold);
    margin: 0;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.chat-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.chat-body {
    flex-grow: 1;
    padding: 1.25rem;
    overflow-y: auto;
    background-color: rgba(246, 246, 248, 0.3);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 65%;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

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

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

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

.chat-message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
    animation: fadeIn 0.3s ease;
    line-height: 1.5;
    word-break: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

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

.message-received {
    align-self: flex-start;
    background-color: #f0f0f0;
    color: #333;
    border-top-left-radius: 0.2rem;
}

.message-sent {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: white;
    border-top-right-radius: 0.2rem;
}

.chat-message .timestamp {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.25rem;
    text-align: right;
}

.typing-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background-color: #f0f0f0;
    border-radius: 1rem;
    border-top-left-radius: 0.2rem;
    align-self: flex-start;
    max-width: 60px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #888;
    border-radius: 50%;
    margin-right: 4px;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

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

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

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
    margin-right: 0;
}

@keyframes typingAnimation {

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

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

.chat-footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--card-background);
    display: flex !important;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    max-height: 35%;
    overflow-y: auto;
}

.menu-options,
.topic-options {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 20px;
    z-index: 999;
}

.menu-btn,
.topic-btn {
    flex: 1 0 calc(33% - 0.5rem);
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: var(--background-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 45px;
    box-shadow: var(--shadow-sm);
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    overflow: hidden;
}

.menu-btn::before,
.topic-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
}

.menu-btn i,
.topic-btn i {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    position: relative;
    z-index: 1;
}

.menu-btn span,
.topic-btn span {
    position: relative;
    z-index: 1;
}

.menu-btn:hover,
.topic-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.menu-btn.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.menu-btn.btn-success {
    background-color: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.menu-btn.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

.menu-btn.btn-danger:hover {
    background-color: #bb2d3b;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.menu-btn.btn-tutorial {
    background: linear-gradient(135deg, #6610f2, #6f42c1);
    color: white;
    border: none;
}

.menu-btn.btn-tutorial:hover {
    box-shadow: 0 4px 8px rgba(102, 16, 242, 0.3);
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    width: 100%;
    visibility: visible;
    gap: 0.5rem;
}

.full-width-btn {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Animações para elementos ao entrar na viewport */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-section {
        padding: 7rem 0 4rem;
    }

    .hero-content h1 {
        text-align: center;
    }

    .hero-content .lead {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .login-card,
    .feature-card {
        padding: 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }
}

/* Modo Escuro */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #0d6efd;
        --secondary-color: #495057;
        --success-color: #198754;
        --background-color: #121212;
        --card-background: #1e1e1e;
        --text-color: #e9ecef;
        --border-color: #343a40;
        --hover-color: #2b3035;
        --shadow-color: rgba(0, 0, 0, 0.3);
    }

    .navbar {
        background-color: rgba(30, 30, 30, 0.85);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(52, 58, 64, 0.5);
    }

    .hero-section {
        background: linear-gradient(135deg, #054ada 0%, #02337a 100%);
    }

    .login-card,
    .feature-card,
    .about-card,
    .testimonial-card {
        background-color: var(--card-background);
        border-color: var(--border-color);
    }

    .user-card {
        background-color: var(--card-background);
        color: var(--text-color);
        border-color: var(--border-color);
    }
}

.unichat-mascot {
    animation: float-bounce 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.unichat-mascot:hover {
    transform: scale(1.05) rotate(5deg);
}

@keyframes float-bounce {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(2deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-2deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}