/* Estilos principais para o Leicbit */

:root {
    --primary-color: #6f42c1;
    --primary-dark: #4a0e78;
    --primary-light: #9a75db;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #fd7e14;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;

    /* Variáveis de tipografia */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-heading: 'Poppins', var(--font-primary);
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
}

/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

body {
    background-color: var(--light-color);
    font-family: var(--font-primary);
    color: var(--dark-color);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Estilos de componentes */
.card {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
    font-weight: 500;
    font-family: var(--font-heading);
}

.chart-card .card-header {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Botões */
.btn {
    border-radius: 0.25rem;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    letter-spacing: 0.01em;
}

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

.btn-primary:hover {
    background-color: #5a32a3;
    border-color: #5a32a3;
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

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

.btn-success:hover {
    background-color: #146c43;
    border-color: #146c43;
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.btn-light {
    background-color: white;
    color: var(--primary-dark);
    border: none;
}

.btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Navegação */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

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

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    font-family: var(--font-primary);
}

.navbar .nav-link:hover {
    color: var(--primary-color);
}

.bg-primary-dark {
    background-color: var(--primary-dark);
}

/* Seções */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 5rem 0;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.6;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

/* Tabelas */
.table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
}

.table th {
    font-weight: 600;
    color: var(--primary-dark);
    border-top: none;
    font-family: var(--font-heading);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Status badges */
.status-badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-family: var(--font-primary);
}

.badge.bg-new {
    background-color: var(--danger-color) !important;
    color: white;
}

.badge.bg-investigating {
    background-color: var(--warning-color) !important;
    color: white;
}

.badge.bg-resolved {
    background-color: var(--success-color) !important;
    color: white;
}

.badge.bg-false-positive {
    background-color: var(--primary-color) !important;
    color: white;
}

.badge.bg-ignored {
    background-color: var(--secondary-color) !important;
    color: white;
}

/* Formulários */
.form-control {
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.25);
}

/* Modais */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: var(--light-color);
}

.modal-title {
    font-family: var(--font-heading);
    font-weight: 600;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: var(--light-color);
}

/* Notificações */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
}

.status-message {
    display: none;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-family: var(--font-primary);
}

.status-message.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.status-message.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.modal-status-message {
    display: none;
    margin-bottom: 15px;
    font-family: var(--font-primary);
}

/* Código */
code,
pre {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background-color: #f5f5f5;
    border-radius: 0.25rem;
    padding: 0.2em 0.4em;
}

pre {
    padding: 1rem;
    overflow: auto;
}

/* Responsividade */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.4rem 1rem;
    }

    .hero-section {
        padding: 3rem 0;
    }
}