/* Wrapper for Side-by-Side Layout */
.calculator-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
    margin: auto;
}

/* Form & Results Side-by-Side on Desktop */
.calculator-container {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #FFDE17;
    text-align: center;
}

/* Input Fields */
input, select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

label {
	color: #fff;
    margin-top: 5px;
} 

/* Financial Statement */
.results-container {
    flex: 1;
    min-width: 300px;
    margin-left: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background: #f9f9f9;
    text-align: left;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
}

table td {
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

table tr.total-row {
    font-weight: bold;
    background: #e7dafc;
}

table td:last-child {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-wrapper {
        flex-direction: column;
    }

    .results-container {
        margin-left: 0;
        margin-top: 20px;
    }
}

/* Tooltip Styling */
.info-icon {
    cursor: pointer;
    font-size: 16px;
    margin-left: 5px;
    color: #007bff;
    display: inline-block;
    position: relative;
}

.info-icon::after {
    content: attr(data-tooltip);
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px;
    border-radius: 5px;
    font-size: 12px;
    width: 200px;
    left: 50%;
    top: 25px;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

/* Show tooltip on hover */
.info-icon:hover::after {
    display: block;
}


.btn {
    background: #58009b;
    color: #fff;
    border: none;
    padding: 10px;
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}


.reset-btn {
    background: radial-gradient(circle at center,#8400ad 19%,#58009b 72%)!important;
}

.reset-btn:hover {
    background: radial-gradient(circle at center,#5c2d91 19%,#8400ad 72%)!important;
}