@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Sans:ital,wght@0,100..800;1,100..800&display=swap');

* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

body h1,p,h2,h3,h4,h5,h6,span,table,div,td,th,input,label, form,ul,li{
    font-family: "Ubuntu Sans" , sans-serif;
}

body {
    background-color: whitesmoke;
}

.line {
    width: 90%;
    border-bottom: 2px dotted black;
    margin: 10px auto;
}

.form {
    width: 100%;
    background-color: #1f1f1f;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    min-height: 100vh;
}

.another-form{
    min-height: 160vh;
}

.taxtosalary-form{
    min-height: 50vh;
}

.table-wrapper {
    overflow-x: auto;
    max-width: 100%;
}

.table-wrapper table {
    min-width: 1000px;
    width: 100%;
    border-collapse: collapse;
}

form{
    width: 100%;
    margin: 0px auto;
}

.btn-cont {
    align-self: flex-start;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 35px;
}

.btn-cont a {
    color: white;
    font-size: 24px;
    text-decoration: none;
}

.form-heading {
    color: white;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.form-group, #salary_main {
    width: 100%;
    max-width: 600px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    margin: 0px auto;
}

.two_years_varying, .six_years_varying{
    width: 100%;
}

label {
    color: #ccc;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
}

.form-control {
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #555;
    background-color: #2a2a2a;
    color: white;
    font-size: 16px;
    transition: 0.3s ease;
    height: 60px;
}

.form-control:focus {
    outline: none;
    border-color: #66ff66;
    background-color: #333;
}

.submit-btn {
    background-color: #33bd33;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    height: 60px;
    margin-top: 10px;
    width: 100%;
}

.submit-btn:hover {
    background-color: #28a428;
}

.input-error {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.error{
    background-color: #ffdddd;
    color: #a10000;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.calc-box-heading {
    margin: 30px 0px;
    text-align: center;
    font-size: 50px;
    font-weight: bolder;
    text-decoration: underline;
    color: black;
}

.main-box {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 1400px;
    margin: 0px auto;
}

.my-box {
    display: flex;
    width: 100%;
    justify-content: center;
}

.percentage-box {
    display: flex;
    width: 100%;
    justify-content: center;
}

.tax_given-box {
    width: 600px;
    border: 1px solid black;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-left: 20px;
    padding: 10px;
    margin-right: 20px;
}

.heading-tax_given {
    font-size: 25px;
    margin-top: 40px;
    text-align: center;
}

.tax_given {
    margin-top: 40px;
    color: red;
    font-size: 70px;
    font-weight: 600;
}

.difference {
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: 28px;
    color: red;
    font-weight: bolder;
    margin-top: 10px;
    animation: blink infinite 1.5s;
}

.heading-info {
    text-align: center;
    font-weight: bolder;
    font-size: 36px;
    margin-top: 15px;
    color: darkblue;
    text-decoration: underline;
}

.main-box .information {
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    margin: 20px;
    padding: 25px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.main-box .information .info-info {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.main-box .information .info-info:last-child {
    border-bottom: none;
}

.main-box .information .info-info h1 {
    font-size: 20px;
    margin: 0;
    color: #34495e;
}

.red {
    color: red;
    font-family: 600;
}

.green {
    color: green;
    font-weight: 600;
}

.black {
    font-weight: 600;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: right;
}

/* Table Styling - Updated */
.table {
    display: flex;
    justify-content: center;
}

table {
    width: 1200px;
    margin: 30px 0px 40px 0px;
    border-collapse: collapse;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background-color: white;
}

th {
    background-color: #2c3e50;
    color: white;
    font-size: 18px;
    padding: 20px;
    text-align: center;
    font-weight: bold;
}

td {
    font-size: 16px;
    padding: 18px;
    text-align: center;
}

td:first-child {
    text-align: left;
    padding-left: 25px;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:nth-child(odd) {
    background-color: #ffffff;
}

.total-row td {
    font-weight: bold;
    font-size: 18px;
    background-color: #ecf0f1;
    border-top: 2px solid #2c3e50;
}

/* Tax Slab Styling - Updated */
.tax-slabs {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tax-slab h1 {
    background-color: #e1e8ed; /* Light gray-blue background like in image */
    color: black;              /* Black text */
    font-size: 20px;
    font-weight: bold;
    padding: 15px 20px;
    border: 1px solid #c0c0c0; /* Light border for slab boxes */
    cursor: pointer;
    border-radius: 0;          /* No rounding */
    box-shadow: none;   
    display: flex;
    justify-content: space-between;       /* No shadow */
}

.tax-slab .dropdown {
    background-color: white;
    color: red;
    font-size: 16px;
    padding: 15px 20px;
    border: 1px solid #ccc;
    display: none;
    border-radius: 0;
    margin-top: -1px; /* Connects visually with the slab heading */
}

.tax-slab h1:hover {
    background-color: #b9b9b9;
}

.tax-slabs.active .dropdown {
    display: block;
}

.slab-heading {
    font-size: 30px;
    text-align: center;
    font-weight: bold;
    margin: 40px 0 20px;
    color: #2c3e50;
}

.tax-slabs.active .dropdown {
    display: block;
    margin-top: 5px;
}

#taxGiven {
    animation: blink 2s infinite;
}

#movingText{
    color: red;
    font-size: 20px;
    font-weight: bolder;
    background-color: white;
    width: 100%;
    padding: 5px 0px;
    display: flex;
    align-items: center;
}

.btn-cont a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff; 
    /* background-color: #007bff;  */
    border: 2px solid #007bff;
    color: #007bff;
    padding: 10px 15px;
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
    width: 70px;
    text-align: center;
}

.btn-cont a:hover {
    background-color: #0056b3;
    color: #e6e6e6;
}

.my-box img{
    border: 1px solid black;
    border-radius: 5px;
    margin: 0px 3px;
}

.note-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.note{
    background-color: #f9f9f9;
    border-left: 4px solid red;
    padding: 20px;
    margin: 20px 0;
    font-family: Arial, sans-serif;
    color: #333;
    max-width: 1200px;
    width: 100%;
}

.note h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: red;
    font-weight: bolder;
}

.note p {
    font-size: 16px;
    line-height: 1.6;
}

.my-box img {
    margin: 20px 0px;
}

.scroll {
    overflow-x: auto;
    max-width: 100%;
}

.csv-download-container {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.csv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #28a745;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.csv-download-btn:hover {
    background-color: #218838;
    color: white;
}

.csv-download-btn i {
    font-size: 16px;
}


@keyframes blink {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 1412px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }

    .form {
        height: 500px;
    }

    .main-box {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .tax_given-box {
        margin-top: 20px;
    }

    .information {
        width: 100%;
    }

    .footer {
        margin-top: 20px;
        width: 100%;
    }

    .tax-slabs h1 {
        width: 100%;
    }

    .tax-slabs {
        width: 100%;
    }
}

@media (max-width: 860px){
    .my-box{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 764px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }

    form {
        display: flex;
        flex-direction: column;
    }

    .salary,
    .selection,
    .submit-btn {
        width: 100%;
        margin-top: 5px;
    }

    .information,
    .tax_given-box {
        width: 90%;
    }

    .information {
        margin: 10px 0;
    }

    .tax-slabs h1 {
        font-size: 19px;
    }

    .container{
        margin-top: 80px;
    }
}

@media (max-width: 670px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }

    .form {
        width: 100%;
        height: 600px;
    }

    form {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .salary,
    .selection,
    .submit-btn {
        width: 100%;
        margin-top: 10px;
    }

    .tax_given-box{
        width: 100%;
    }

    .tax_slabs h1 {
        font-size: 20px;
    }

    .tax_slab h1 span {
        margin-left: 20px;
    }

    .my-box img{
        width: 100%;
    }
}

@media (max-width: 610px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }

    .main-box, .information{
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0px;
        padding: 0px; 
    }

    .info-info{
        width: 100%;
    }

    .percentage-box {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 500px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }

    table {
        width: 100%;
    }

    th {
        width: 300px;
        font-size: 20px;
        padding: 4px;
        height: 80px;
    }

    #small-col {
        width: 50px;
    }

    .tax_given-box{
        width: 100%;
    }

    .differ-text {
        text-align: center;
    }
}

@media (max-width: 464px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }

    table {
        margin: 20px 10px;
        width: 100%;
    }

    .expense-table th {
        width: 50px;
        font-size: 18px;
        height: 80px;
    }

    .expense-table td {
        text-align: center;
        padding: 8px 0px;
        font-size: 17px;
    }

    .total-row {
        height: 50px;
    }

    .total-row td {
        border-top: 1px solid black;
        padding: 8px 0px;
        font-size: 17px;
        font-weight: bolder;
    }

    .total-row-heading {
        border-right: 1px solid black;
    }

    .tax_given-box{
        width: 100%;
    }
}

@media (max-width: 460px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }

    .tax_given-box {
        width: 100%;
        margin: 20px 0px;
    }

    .form {
        height: 600px;
    }

    .information {
        width: 100%;
    }

    .my-box img{
        width: 100%;
        /* height: 300px; */
    }
}

@media (max-width: 410px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }

    .form {
        width: 100%;
    }

    .salary,
    .selection,
    .submit-btn {
        width: 100%;
        margin-top: 10px;
    }

    .author p {
        width: 370px;
    }

    .information,
    .tax_given-box {
        width: 100%;
    }

    .my-box img{
        width: 100%;
        /* height: 250px; */
    }

    .expense-table td{
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    .my-box img{
        width: 100%;
        /* height: 250px; */
    }
}

@media (max-width: 360px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }

    form {
        width: 100%;
    }

    .salary,
    .selection,
    .submit-btn {
        width: 100%;
        margin-top: 15px;
    }

    .tax_given-box,
    .information {
        width: 100%;
    }

    .info-info h1 {
        font-size: 18px;
        width: 180px;
    }

    .info-info span {
        font-size: 20px;
    }

    .author p {
        width: 300px;
    }
}

@media (max-width: 3000px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }
    
    .form {
        height: 600px;
    }
}

@media (max-width: 660px) {
    .btn-cont  {
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 10px 0px;
    }

    .form {
        height: 650px;
    }
}

