/* Module container */
.module-container {
    padding: 20px;
    line-height: 1.6;
}

/* Logo styling */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    width: 60px;
    height: auto;
}

/* Casado container */
.casado-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Sections */
.current-prices-section,
.update-prices-section,
.linha-rate-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Casado from Linha section */
.casado-from-linha-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.casado-from-linha-section .price-item span {
    color: var(--accent-color); /* Different color to distinguish from linha rate */
}

/* Price display */
.price-display {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    flex-wrap: wrap;
}

.price-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 15px 10px;
}

.price-item p {
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.price-item span {
    font-size: 26px;
    font-weight: bold;
}

#currentBid {
    color: var(--success-color);
}

#currentAsk {
    color: var(--accent-color);
}

#currentMid {
    color: var(--secondary-color);
}

/* Linha Rate Section */
.linha-rate-result {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.linha-rate-result .price-item {
    padding: 10px;
}

.linha-rate-result .price-item p {
    font-size: 18px;
    margin-bottom: 10px;
}

.linha-rate-result .price-item span {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Update time */
.update-time {
    text-align: center;
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Button group */
.button-group {
    text-align: center;
    margin: 15px 0;
}

/* Price form */
.price-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

/* Parameters grid for linha rate */
.parameters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.parameters-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-with-percentage {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-percentage input {
    width: 100%;
    padding-right: 30px;
}

.percentage-sign {
    position: absolute;
    right: 10px;
    color: var(--text-secondary);
}

/* Readonly field styling */
input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    z-index: 1000;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    max-width: 300px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.toast-show {
    opacity: 1;
}

.toast-info {
    background-color: #007bff;
    color: white;
}

.toast-success {
    background-color: #28a745;
    color: white;
}

.toast-warning {
    background-color: #ffc107;
    color: #333;
}

.toast-error {
    background-color: #dc3545;
    color: white;
}

/* Responsive */
@media (max-width: 600px) {
    .price-display {
        flex-direction: column;
        gap: 15px;
    }
    
    .price-item {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 15px;
    }
    
    .price-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .parameters-grid {
        grid-template-columns: 1fr;
    }
}

/* Add these styles to make the calculators display side by side */

.calculators-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.calculators-container .linha-rate-section,
.calculators-container .casado-from-linha-section {
    width: calc(50% - 10px);
    margin-bottom: 0;
}

/* Make it responsive for smaller screens */
@media (max-width: 1200px) {
    .calculators-container {
        flex-direction: column;
    }
    
    .calculators-container .linha-rate-section,
    .calculators-container .casado-from-linha-section {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Linha rates display in current prices section */
.linha-rates-display {
    margin-top: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 15px;
}

.linha-rates-display h3 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.linha-rates-display .price-display {
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.linha-rates-display .price-item span {
    font-size: 18px;
    color: var(--accent-color);
}