:root {
    --senac-blue: #003399;
    --senac-orange: #f47c20;
    --senac-light-gray: #f8f9fa;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background-color: var(--senac-light-gray);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background-color: var(--senac-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand,
.nav-link {
    color: #fff !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--senac-orange) !important;
}

.nav-link.active {
    color: var(--senac-orange) !important;
}

/* Ícone do menu em branco */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--senac-blue) 40%, var(--senac-orange) 100%);
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero h1 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.hero .btn-primary {
    background-color: white;
    color: var(--senac-blue);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--senac-orange);
    color: white;
}

/* Título de seção */
.section-title {
    margin-top: 3rem;
    margin-bottom: 2rem;
    color: var(--senac-blue);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--senac-orange);
    border-radius: 2px;
}

.section-title i {
    margin-right: 0.5rem;
}

/* Cards informativos */
.info-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Select customizado */
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: white;
}

.form-select:focus {
    border-color: var(--senac-orange);
    box-shadow: 0 0 0 0.2rem rgba(244, 124, 32, 0.25);
}

/* Dashboard controls */
.dashboard-controls {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.control-label {
    font-weight: 600;
    color: var(--senac-blue);
}

.control-note {
    font-size: 0.95rem;
    color: #6c757d;
}

/* Container do gráfico com scroll horizontal */
#graphContainer {
    min-height: 400px;
    margin-bottom: 2rem;
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Área onde o Plotly será desenhado */
#plotArea {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-width: 600px;
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Footer */
footer {
    background-color: var(--senac-blue);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer p {
    margin: 0;
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    #plotArea {
        min-width: 400px;
    }

    .info-card {
        padding: 1.5rem;
    }

    .dashboard-controls {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    #plotArea {
        min-width: 300px;
    }

    .section-title {
        font-size: 1.3rem;
    }
}
