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

:root {
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --secondary-light: #34d399;
    --secondary-dark: #059669;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #6366f1;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #94a3b8;
    --gray-light: #e2e8f0;
    --gray-dark: #475569;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f1f5f9;
    color: var(--dark-color);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--dark-color);
    color: var(--light-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    box-shadow: var(--shadow);
    z-index: 100;
}

.logo {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-color);
}

.logo i {
    font-size: 1.8rem;
    margin-right: 0.75rem;
    color: var(--primary-light);
}

.logo span {
    font-size: 1.2rem;
    font-weight: 600;
}

nav {
    flex: 1;
    padding: 1rem 0;
}

nav ul {
    list-style: none;
}

nav ul li {
    margin-bottom: 0.5rem;
}

nav ul li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--gray-color);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

nav ul li a i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

nav ul li a:hover, nav ul li.active a {
    color: var(--light-color);
    background-color: rgba(255, 255, 255, 0.05);
}

nav ul li.active a {
    border-left-color: var(--primary-color);
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--gray-color);
}

.github-link {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.github-link a {
    color: var(--primary-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.github-link a:hover {
    color: var(--light-color);
}

/* Main Content */
main {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.header-content h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.header-content p {
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date {
    margin-right: 1.5rem;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.user {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    font-weight: 500;
}

.user i {
    margin-left: 0.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.export-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.export-btn:hover {
    background-color: #c0392b;
}

.export-btn i {
    font-size: 1rem;
}

/* Sections */
.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--gray-dark);
    font-size: 0.95rem;
}

/* KPI Cards */
.kpi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

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

.kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
}

.kpi-icon i {
    font-size: 1.5rem;
    color: white;
}

.kpi-icon.blue {
    background-color: var(--primary-color);
}

.kpi-icon.green {
    background-color: var(--secondary-color);
}

.kpi-icon.orange {
    background-color: var(--warning-color);
}

.kpi-icon.purple {
    background-color: var(--info-color);
}

.kpi-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.kpi-content p {
    color: var(--gray-dark);
    font-size: 0.9rem;
}

/* Chart Cards */
.chart-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 400px;
    overflow: hidden;
    position: relative;
}

.chart-card:hover {
    box-shadow: var(--shadow-lg);
}

.chart-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.chart-card.wide {
    grid-column: 1 / -1;
    height: 450px;
}

.placeholder-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.chart-card canvas {
    max-height: 320px;
    width: 100% !important;
    height: 100% !important;
}

.chart-card.wide canvas {
    max-height: 370px;
}

.heatmap-container {
    overflow-x: auto;
}

/* Insight Cards */
.insight-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

/* Methodology Section Styles */
.methodology-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px 0;
}

.methodology-card {
    display: flex;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.methodology-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3498db;
    color: white;
    padding: 30px;
    font-size: 2rem;
    min-width: 100px;
}

.methodology-step {
    padding: 20px 30px;
    flex: 1;
}

.methodology-step h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.methodology-step p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

.methodology-note {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    border-radius: 4px;
    margin-top: 10px;
}

.methodology-note p {
    margin: 0;
    color: #34495e;
}

.methodology-github {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 30px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.methodology-github:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.methodology-github-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    color: white;
    padding: 30px;
    font-size: 3rem;
    min-width: 100px;
}

.methodology-github-content {
    padding: 20px 30px;
    flex: 1;
}

.methodology-github-content h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.methodology-github-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.github-repo-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    background-color: #f1f9ff;
    border-radius: 4px;
    border: 1px solid #d6eaf8;
    transition: all 0.3s ease;
}

.github-repo-link:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* Report Section Styles */
.report-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.report-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.report-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.report-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.report-content p {
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.report-content ul, 
.report-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.report-content li {
    margin-bottom: 0.5rem;
}

.report-content strong {
    font-weight: 600;
    color: var(--dark-color);
}

.report-content em {
    color: var(--gray-dark);
}

.insight-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.insight-icon i {
    color: white;
    font-size: 1.2rem;
}

.insight-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.insight-content p {
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }
    
    .logo {
        padding: 1rem;
    }
    
    .logo img {
        max-width: 40px;
    }
    
    nav ul li a span {
        display: none;
    }
    
    nav ul li a i {
        margin-right: 0;
        font-size: 1.3rem;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    main {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .chart-container {
        grid-template-columns: 1fr;
    }
    
    .kpi-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-info {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem;
    }
    
    .kpi-container {
        grid-template-columns: 1fr;
    }
}

/* PDF Export Loading Indicator */
.pdf-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.pdf-loading-content {
    background-color: white;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    color: #333;
}

.pdf-loading-content i {
    color: #3498db;
    font-size: 24px;
}
