/* General Style */
body {
    font-family: 'Sora', sans-serif; /* Using Sora font */
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    color: #333333;
}

/* Main Container */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Headers */
h1, h2 {
    text-align: center;
}

/* Debt and Extra Payment Items */
.deuda-item, .extra-payment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Input and Select Styles */
input, select {
    padding: 10px;
    width: calc(100% - 22px);
    margin-bottom: 10px;
    border: 1px solid #333333;
    border-radius: 5px;
}

/* Button Styles */
button {
    padding: 10px;
    background-color: #333333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #555555;
}

/* Results Table Styles */
.resultado-tabla {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.resultado-tabla th, .resultado-tabla td {
    border: 1px solid #333333;
    padding: 8px;
    text-align: center;
}

.resultado-tabla th {
    background-color: #333333;
    color: white;
}

/* Scrollable table container */
.table-container {
    overflow-x: auto;
}

/* Personalized Recommendations */
#recommendations {
    margin-top: 20px;
    padding: 15px;
    background-color: #e6f2ff;
    border-radius: 8px;
}

/* Feedback Section */
#feedback {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0e6ff;
    border-radius: 8px;
}

/* Comparisons Section */
#comparisons {
    margin-top: 20px;
    padding: 15px;
    background-color: #e6ffe6;
    border-radius: 8px;
}

/* Info Icon Style */
.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 5px;
    background-color: #333333;
    color: white;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 16px;
    position: relative;
}

.info-tooltip {
    display: none;
    position: absolute;
    background-color: #333333;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-top: 5px;
    left: 20px;
    top: -10px;
    z-index: 10;
    width: 200px;
}

.info-icon:hover .info-tooltip {
    display: block;
}

/* Chart Style */
#debtChart {
    margin-top: 20px;
}

/* Hide/Show Payment Options */
#budget-option, #time-option {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .deuda-item, .extra-payment-item {
        flex-direction: column;
        align-items: stretch;
    }

    input, select, button {
        width: 100%;
    }

    .info-tooltip {
        width: auto;
        left: 0;
    }
}
