﻿body {
    background-color: #F2F2F29F;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #ffffff;
    border-bottom: 2px solid #f5f5f5;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    position: fixed;
    height: 104px;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header img {
    height: 43px;
    width: 120px;
    top: 30px;
    left: 30px;
}

.header a {
    font-size: 14px;
    color: #00473C;
    text-decoration: none;
    margin-left: 1rem;
}

.content {
    margin-top: 100px;
    padding: 2rem;
    position: relative;
}

.box-left {
    position: fixed;
    left: 5%;
    width: 20%;
    top: 20%;
    height: 60%;
}

.box-left h5 {
    font-size: 32px;
    font-weight: 500;
    color: #00473C;
}

.box-left p {
    font-size: 15px;
    font-weight: 400;
    opacity: 70%;
    color: #00473C;
}

.box-mid {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 62%;
    min-width: 40%;
    font-family: Arial, sans-serif;
    color: #333333;
    position: fixed;
    left: 30%;
    top: 20%;
}

.box-mid h5 {
    font-size: 18px;
    color: #0A923F;
    margin-bottom: 1rem;
    text-align: left;
    line-height: 44px;
    font-weight: 700;
}

.table th, .table td {
    padding: 1rem;
}

.table input.form-control {
    margin-bottom: 0.5rem;
    height: 44px;
    width: 90px;
    background-color: #F2F2F2;
}

.table th {
    border-bottom: none;
    font-size: 12px;
    font-weight: 600;
    color: #00473C;
    text-align: center;
}

.table td {
    border-bottom: none;
}

.box-right {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 62%;
    width: 20%;
    position: fixed;
    left: 75%;
    top: 20%;
}

.box-right h5 {
    font-size: 18px;
    color: #0A923F;
    margin-bottom: 1rem;
    text-align: left;
    line-height: 44px;
    font-weight: 700;
}

.calculate-btn {
    text-align: center;
    top: 85%;
    left: 75%;
    position: fixed;
    background-color: #0DB14B;
    width: 20%;
    height: 60px;
    border-radius: 6px;
    border: none;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 18px;
}

.calculate-btn:hover {
    background-color: #218838;
}

/* Responsive Design */
@media (max-width: 1366px) {
    .header {
        flex-direction: column !important;
        height: auto !important;
        z-index: 1000 !important;
        padding: 0.5rem !important;
        width: 100% !important;
        position: relative !important;
    }

    .header img {
        margin-bottom: 0.5rem !important;
        height: 40px !important;
        width: 110px !important;
    }

    .header div {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    .header button,
    .header a {
        font-size: 12px !important;
        padding: 0.4rem 0.6rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .header .btn-link {
        margin-left: 0 !important;
        margin-right: 0.25rem !important;
    }

    .content {
        padding: 1rem !important;
        margin-top: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .row {
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .col-md-4 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 !important;
        margin-bottom: 1rem !important;
    }

    .box-left {
        display: none !important;
    }

    .box-mid, .box-right {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        left: auto !important;
        top: auto !important;
        min-width: auto !important;
        min-height: auto !important;
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
        box-sizing: border-box !important;
    }

    .box-mid {
        order: 1 !important;
    }

    .box-right {
        order: 2 !important;
    }

    .table th, .table td {
        padding: 0.5rem !important;
    }

    .table input.form-control {
        width: 90px !important;
        height: 44px !important;
    }

    .calculate-btn {
        width: 100% !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
        order: 3 !important;
        height: 60px !important;
        font-size: 16px !important;
        border-radius: 6px !important;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        height: auto;
        z-index: 1000;
    }

    .header img {
        margin-bottom: 0.5rem;
        height: 40px;
        width: 110px;
    }

    .header div {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }

    .header button,
    .header a {
        font-size: 12px !important;
        padding: 0.4rem 0.6rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .header .btn-link {
        margin-left: 0 !important;
        margin-right: 0.25rem;
    }

    .content {
        padding: 1rem;
    }

    .box-left {
        display: none;
    }

    .box-mid, .box-right {
        position: static;
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
        overflow-x: auto;
        box-sizing: border-box;
    }

        .box-left h5, .box-left p, .box-mid h5, .box-right h5 {
            font-size: 16px;
        }

    .box-mid .table {
        width: 100%;
        min-width: 100%;
        table-layout: fixed;
        word-wrap: break-word;
    }

    .box-mid .table th, .box-mid .table td {
        padding: 0.4rem 0.2rem;
        font-size: 12px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .box-mid .table input.form-control {
        width: 60px;
        height: 35px;
        font-size: 12px;
        padding: 0.25rem;
        min-width: 60px;
        max-width: 60px;
    }

    .box-right .table th, .box-right .table td {
        padding: 0.5rem;
    }

    .box-right .table input.form-control {
        width: 90px;
        height: 44px;
    }

    .calculate-btn {
        width: 100%;
        position: static;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .header {
        flex-direction: column;
        height: auto;
        z-index: 1000;
        padding: 0.25rem;
    }

    .header img {
        margin-bottom: 0.5rem;
        height: 35px;
        width: 95px;
    }

    .header button,
    .header a {
        font-size: 11px !important;
        padding: 0.3rem 0.4rem;
    }

    .header div {
        gap: 0.3rem;
    }

    .content {
        padding: 0.5rem;
    }

    .box-left, .box-mid, .box-right {
        position: static;
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
        overflow-x: auto;
        box-sizing: border-box;
        padding: 1rem;
    }

        .box-left h5, .box-left p, .box-mid h5, .box-right h5 {
            font-size: 14px;
        }

    .box-mid .table {
        width: 100%;
        min-width: 100%;
        table-layout: fixed;
        word-wrap: break-word;
    }

    .box-mid .table th, .box-mid .table td {
        padding: 0.3rem 0.1rem;
        font-size: 11px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .box-mid .table input.form-control {
        width: 55px;
        height: 32px;
        font-size: 11px;
        padding: 0.2rem;
        min-width: 55px;
        max-width: 55px;
    }

    .box-right .table th, .box-right .table td {
        padding: 0.5rem;
    }

    .box-right .table input.form-control {
        width: 90px;
        height: 44px;
    }

    .calculate-btn {
        width: 100%;
        position: static;
        margin-top: 1rem;
    }
}
