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

/* Estilos globais */
:root {
    --metadax-blue: #0056B3;
    --metadax-black: #1E1E1E;
    --metadax-white: #FFFFFF;
    --metadax-gray: #F5F5F5;
    --metadax-light-gray: #E0E0E0;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--metadax-black);
    background-color: var(--metadax-white);
    font-family: 'Montserrat', sans-serif !important;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700;
}

a {
    color: var(--metadax-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: #004494;
}

/* Estilos para seções */
section {
    scroll-margin-top: 80px;
}

.hero {
    background-color: var(--metadax-blue);
}

/* Estilos para botões */
.btn-primary {
    background-color: var(--metadax-blue);
    border-color: var(--metadax-blue);
    color: var(--metadax-white);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

/* Estilos para cards */
.card {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos para formulários */
input, textarea, select {
    border: 1px solid var(--metadax-light-gray);
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--metadax-blue);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

button {
    cursor: pointer;
}

/* Efeitos de texto */
.text-shadow-md {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.text-shadow-lg {
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

/* Estilos para o gráfico */
canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Estilos específicos para a calculadora */
#resultado-previsao {
    animation: fadeIn 0.5s ease forwards;
    border-left: 4px solid var(--metadax-blue);
}

#grafico-regressao {
    min-height: 300px;
}

/* Estilos para tabelas */
table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background-color: var(--metadax-blue);
    color: var(--metadax-white);
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
}

table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--metadax-light-gray);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: rgba(0, 86, 179, 0.05);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Estilos para a seção de edição de dados */
#edicao-dados .bg-white {
    border-left: 4px solid var(--metadax-blue);
}

.btn-action {
    background-color: transparent;
    border: none;
    color: var(--metadax-blue);
    font-size: 1rem;
    padding: 0.25rem;
    margin: 0 0.25rem;
    transition: color 0.3s ease;
}

.btn-action:hover {
    color: #004494;
}

.btn-action.delete {
    color: #e53e3e;
}

.btn-action.delete:hover {
    color: #c53030;
}

/* Media queries para responsividade */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}
