:root {
    --primary-orange: #f45720;
    --primary-blue: #5ca6ce;
    --light-beige: #e7eacb;
    --green: #78c753;
    --dark-blue: #1f495b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background-color: var(--dark-blue);
    color: white;
    border-radius: 8px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.form-section, .results-section {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-section h2, .results-section h2 {
    color: var(--dark-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-orange);
}

.form-group {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--light-beige);
    border-radius: 6px;
}

.form-group h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-blue);
}

input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(92, 166, 206, 0.3);
}

.btn-analyze {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-analyze:hover {
    background-color: #e04a1a;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.indicator-card {
    background-color: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-blue);
}

.indicator-card h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.indicator-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--primary-orange);
}

.indicator-description {
    font-size: 0.9rem;
    color: #666;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 2rem;
    }
}

/* Histórico */
.history-section {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.history-section h2 {
    color: var(--dark-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-orange);
}

.history-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.history-item {
    background-color: var(--light-beige);
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-blue);
}

.history-item.active {
    border-left-color: var(--primary-orange);
    background-color: #e7eacb99;
}

.history-item h4 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.history-item p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.btn-load, .btn-delete {
    padding: 5px 10px;
    margin-top: 10px;
    margin-right: 5px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-load {
    background-color: var(--primary-blue);
    color: white;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
}

/* Gráficos */
.charts-section {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.charts-section h2 {
    color: var(--dark-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-orange);
}

.chart-container {
    margin-bottom: 30px;
    position: relative;
    height: 300px;
}

/* Exportação */
.export-section {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    text-align: center;
}

.export-section h2 {
    color: var(--dark-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-orange);
}

.btn-export {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 10px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-export:hover {
    background-color: #e04a1a;
}

.chart-container {
    margin: 20px auto;
    max-width: 800px;
    position: relative;
    height: 400px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.export-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-export {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-export.pdf {
    background-color: #e74c3c;
    color: white;
    border: 1px solid #c0392b;
}

.btn-export.excel {
    background-color: #2ecc71;
    color: white;
    border: 1px solid #27ae60;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-export:active {
    transform: translateY(0);
}

/* Adicione estas regras */
.tabs {
    display: flex;
    border-bottom: 2px solid #5ca6ce;
    margin-bottom: 20px;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #1f495b;
    position: relative;
    transition: all 0.3s;
}

.tab-button.active {
    color: #f45720;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f45720;
}

.tab-button:hover:not(.active) {
    background-color: #e7eacb;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.chart-group {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chart-group h3 {
    color: #1f495b;
    margin-bottom: 15px;
    text-align: center;
}

.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}