@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");



.container {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
   
    
    width: 100%;
    margin-top: 30px; /* Add some top margin */
    margin-bottom: 30px; /* Add some bottom margin */
}

header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

header h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

header p {
    color: var(--light-text-color);
    font-size: 1.1rem;
}



@media (min-width: 768px) {
    .calculator-container {
        flex-direction: row; /* Side-by-side on larger screens */
    }
}

.input-section,
.result-section,
.tips-section {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex: 1; /* Allows sections to grow */
}

.section-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tab {
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 600;
    color: var(--light-text-color);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Include padding in width */
}

.form-control:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.btn {
    display: inline-flex; /* Use flex to align icon and text */
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-block {
    width: 100%;
    margin-top: 20px;
}

.btn-block:not(:last-child) {
    margin-bottom: 10px; /* Space between block buttons */
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.button-group .btn {
    flex: 1; /* Distribute space evenly */
}

/* Result Section Styles */
.result-card {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.result-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.result-value {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.result-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.result-details {
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item span:first-child {
    font-weight: 500;
}

.chart-container {
    position: relative;
    height: 250px; /* Fixed height for chart */
    margin-bottom: 25px;
}

.tax-brackets h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.tax-brackets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tax-brackets li {
    background-color: var(--background-color);
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.btn-block {
    background-color: var(--primary-color);
    color: white;
}

.btn-block:hover {
    background-color: #0056b3;
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tips Section */
.tips-section {
    margin-top: 30px;
    grid-column: 1 / -1; /* Span full width below calculator */
}

.tip-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.tip-card h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-card p {
    color: var(--light-text-color);
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .container {
        padding: 20px;
    }
    header h1 {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .tabs {
        flex-direction: column;
        align-items: stretch;
    }
    .tab {
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    .tab:last-child {
        border-bottom: none;
    }
    .button-group {
        flex-direction: column;
    }
    .chart-container {
        height: 200px;
    }
}

.text-primary {
    color: var(--primary-color) !important;
}