/* Module container */
.module-container {
    padding: 20px;
    line-height: 1.6;
}

/* Logo and header styling */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    width: 60px;
    height: auto;
}

/* Form styling */
.data-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.form-inline label {
    margin-bottom: 0;
}

/* Chart section */
.chart-section {
    margin: 30px 0;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Button group */
.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

th {
    background-color: #2C3E50;
    color: white;
    font-weight: 500;
}

td.positive {
    color: #4CAF50;
    font-weight: bold;
}

td.negative {
    color: #F44336;
    font-weight: bold;
}

td.neutral {
    color: #757575;
}

/* Loading spinner */
.loading-spinner {
    display: none;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #2196F3;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Section containers */
.summary-section, 
.bcb-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Comunicado section */
.comunicado-container {
    background: #f1f1f1;
    padding: 20px;
    border-radius: 10px;
    margin: 30px auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    max-width: 980px;
    width: 90%;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    position: relative;
}

.comunicado-container.expanded {
    max-height: 1500px;
}

.toggle-button {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1010;
}

.modal-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .data-form {
        flex-direction: column;
        align-items: center;
    }
    
    .form-group {
        width: 100%;
    }
    
    .form-inline {
        flex-direction: column;
    }
}