```css id="full-page-css-with-dark-mode"
/* =========================================
   GLOBAL RESET
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* =========================================
   LIGHT THEME VARIABLES
========================================= */

:root{

    --bg:#f4f7fb;

    --card:#ffffff;
    --card2:#f8fafc;

    --border:#e2e8f0;

    --text:#0f172a;
    --muted:#64748b;

    --primary:#2563eb;
    --primary2:#3b82f6;

    --primary-soft:#dbeafe;

    --danger:#ef4444;
    --success:#10b981;

    --shadow:
        0 10px 35px rgba(15,23,42,0.08);

    /* BUTTON SWITCH */

    --switch-bg:#f8fafc;
    --switch-border:#dbeafe;

    --btn-color:#475569;

    --btn-hover-bg:#e2e8f0;
    --btn-hover-color:#0f172a;

}

/* =========================================
   DARK THEME VARIABLES
========================================= */

body.dark{

    --bg:#0b1120;

    --card:#111827;
    --card2:#172033;

    --border:#243041;

    --text:#f8fafc;
    --muted:#94a3b8;

    --primary:#60a5fa;
    --primary2:#3b82f6;

    --primary-soft:#172554;

    --danger:#f87171;
    --success:#34d399;

    --shadow:
        0 10px 40px rgba(0,0,0,0.35);

    /* BUTTON SWITCH */

    --switch-bg:#0f172a;
    --switch-border:#1e293b;

    --btn-color:#94a3b8;

    --btn-hover-bg:rgba(255,255,255,0.06);
    --btn-hover-color:#ffffff;

}

/* =========================================
   BODY
========================================= */

body{

    background:var(--bg);

    color:var(--text);

    font-family:'Inter',sans-serif;

    padding:0px 20px 60px;

    transition:
        background 0.25s ease,
        color 0.25s ease;

}

/* =========================================
   CONTAINER
========================================= */

.container{

    max-width:1350px;

    margin:auto;

}

/* =========================================
   TOP SWITCH BUTTONS
========================================= */

.top-switch{

    display:flex;

    align-items:center;

    gap:10px;

    width:max-content;

    padding:8px;

    margin-bottom:28px;

    border-radius:18px;

    background:var(--switch-bg);

    border:1px solid var(--switch-border);

    transition:
        background 0.25s ease,
        border-color 0.25s ease;

}

.top-switch button{

    border:none;
    outline:none;

    cursor:pointer;

    padding:12px 22px;

    border-radius:12px;

    background:transparent;

    color:var(--btn-color);

    font-size:14px;
    font-weight:700;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.15s ease,
        box-shadow 0.25s ease;

}

.top-switch button:hover{

    background:var(--btn-hover-bg);

    color:var(--btn-hover-color);

}

.top-switch button.active{

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary2)
        );

    color:#ffffff;

    box-shadow:
        0 8px 24px rgba(37,99,235,0.35);

}

.top-switch button:active{

    transform:scale(0.97);

}

/* =========================================
   THEME TOGGLE BUTTON
========================================= */

.theme-toggle{

    position:fixed;

    top:20px;
    right:20px;

    z-index:999;

    border:none;
    outline:none;

    cursor:pointer;

    padding:14px 18px;

    border-radius:14px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary2)
        );

    color:#ffffff;

    font-size:14px;
    font-weight:700;

    box-shadow:var(--shadow);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;

}

.theme-toggle:hover{

    transform:translateY(-2px);

}

.theme-toggle:active{

    transform:scale(0.97);

}

body.dark #theme-icon {
    filter: brightness(0) invert(1);
}

/* =========================================
   HEADER
========================================= */

.header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

    margin-bottom:30px;

    flex-wrap:wrap;

}

.brand{

    display:flex;

    align-items:center;

    gap:18px;

}

.logo{

    width:72px;
    height:72px;

    border-radius:20px;

    display:flex;

    align-items:center;
    justify-content:center;

    font-size:34px;


    color:#ffffff;

    box-shadow:var(--shadow);

}

.brand-text h1{

    font-size:38px;

    font-weight:800;

    line-height:1;

    margin-bottom:8px;

}

.brand-text p{

    color:var(--muted);

    font-size:16px;

}

/* =========================================
   MAIN GRID
========================================= */

.main-grid{

    display:grid;

    grid-template-columns:1.5fr 0.9fr;

    gap:24px;

}

@media(max-width:1050px){

    .main-grid{

        grid-template-columns:1fr;

    }

}

/* =========================================
   CARD
========================================= */

.card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:26px;

    box-shadow:var(--shadow);

    transition:
        background 0.25s ease,
        border-color 0.25s ease;

}

/* =========================================
   FORM CARD
========================================= */

.form-card{

    padding:28px;

}

.section-title{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:24px;

}

.section-title h2{

    font-size:24px;

    font-weight:800;

}

.section-title span{

    color:var(--muted);

    font-size:14px;

}

.form-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px;

}

@media(max-width:700px){

    .form-grid{

        grid-template-columns:1fr;

    }

}

.input-box{

    background:var(--card2);

    border:1px solid var(--border);

    border-radius:20px;

    padding:18px;

}

.input-box label{

    display:block;

    font-size:13px;

    font-weight:700;

    color:var(--muted);

    margin-bottom:10px;

    text-transform:uppercase;

}

.input-box input{

    width:100%;

    border:none;
    outline:none;

    background:transparent;

    color:var(--text);

    font-size:28px;

    font-weight:700;

}

/* =========================================
   SUMMARY CARD
========================================= */

.summary-card{

    padding:28px;

    display:flex;

    flex-direction:column;

    gap:18px;

}

.metric{

    background:var(--card2);

    border:1px solid var(--border);

    border-radius:20px;

    padding:20px;

}

.metric-label{

    color:var(--muted);

    font-size:13px;

    font-weight:700;

    margin-bottom:10px;

    text-transform:uppercase;

}

.metric-value{

    color:var(--primary);

    font-size:34px;

    font-weight:800;

}

/* =========================================
   NOTES
========================================= */

.notes{
    margin-bottom:28px;
    padding:12px 30px;

}

.notes h3{
    font-size:30px;
    margin-bottom:6px;
    margin-top: 0;
    line-height:1.3;
}

.notes p{
    color:var(--muted);
    margin: 0px 5px 12px;
}

.highlight{

    color:var(--danger);

}

/* =========================================
   QUESTIONS
========================================= */

.question-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:18px;

}

@media(max-width:900px){

    .question-grid{

        grid-template-columns:1fr;

    }

}

.question{
    background:var(--card2);
    border:1px solid var(--border);
    border-radius:20px;
    padding:12px 22px;
}

.question-number{
    width:38px;
    height:38px;
    border-radius:12px;
    background:var(--primary-soft);
    color:var(--primary);
    font-weight:800;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:0px;
}

.question-title {
    display: inline-block;
    font-size: 15px;
    margin-top: 6px;
}

.question p {
    font-size: 14px;
    margin: 6px 0;
}

/* =========================================
   TABLE
========================================= */

.table-card{

    margin-top:28px;

    padding:28px;

}

.table-wrap{

    overflow-x:auto;

}

table{

    width:100%;

    border-collapse:collapse;

    min-width:700px;

}

th,
td{

    padding:18px;

    text-align:center;

    border:1px solid var(--border);

}

th{

    background:var(--primary-soft);

    color:var(--primary);

    font-size:14px;

    text-transform:uppercase;

}

td{

    background:var(--card2);

    font-weight:600;

}

/* =========================================
   FOOTER
========================================= */

.footer{

    margin-top:35px;

    text-align:center;

    color:var(--muted);

    font-size:14px;

}

/* =========================================
   MOBILE
========================================= */

@media(max-width:600px){

    .top-switch{

        width:100%;

        justify-content:center;

        flex-wrap:wrap;

    }

    .top-switch button{

        flex:1;

        min-width:140px;

    }

    .brand-text h1{

        font-size:28px;

    }

    .metric-value{

        font-size:28px;

    }

}





/* =========================
   MAIN 3 COLUMN GRID
========================= */

/* =========================
   3 COLUMN GRID
========================= */

.dca-grid{

    display:grid;

    grid-template-columns:
        1fr
        1fr
        1fr;

    gap:24px;

    align-items:stretch;

    margin-bottom:28px;

}

/* =========================
   CARD
========================= */

.form-card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:26px;

    box-shadow:var(--shadow);

    padding:24px;

    display:flex;

    flex-direction:column;

    min-height:675px;

    overflow:hidden;

}

/* =========================
   CARD HEADER
========================= */

.card-header{

    margin-bottom:22px;

    flex-shrink:0;

}

.card-header h2{

    font-size:24px;

    font-weight:800;

    margin-bottom:8px;

}

.card-header p{

    color:var(--muted);

    font-size:14px;

}

/* =========================
   INPUT AREA
========================= */

.input-list{

    display:flex;

    flex-direction:column;

    gap:16px;

    flex:1;

}

/* =========================
   CENTER PANEL SCROLL
========================= */

.target-scroll{

    overflow-y:auto;

    padding-right:6px;

}

/* SCROLLBAR */

.target-scroll::-webkit-scrollbar{

    width:6px;

}

.target-scroll::-webkit-scrollbar-thumb{

    background:rgba(255,255,255,0.12);

    border-radius:10px;

}

/* =========================
   INPUT ROW
========================= */

.input-row{

    display:flex;

    flex-direction:column;

    gap:8px;

}

.input-row label{

    font-size:13px;

    font-weight:700;

    color:var(--muted);

    text-transform:uppercase;

    letter-spacing:0.4px;

}

.input-row input,
.input-row select{

    width:95%;

    height:54px;

    border-radius:16px;

    border:1px solid var(--border);

    background:var(--card2);

    color:var(--text);

    padding:0 16px;

    font-size:16px;

    font-weight:700;

    outline:none;

    transition:0.2s ease;

}

.input-row input:focus,
.input-row select:focus{

    border-color:var(--primary);

    box-shadow:
        0 0 0 4px rgba(37,99,235,0.12);

}

/* =========================
   BUTTON
========================= */

.primary-btn{
    width:100%;
    height:54px;
    border:none;
    border-radius:16px;
    margin-bottom:20px;
    cursor:pointer;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary2)
        );
    color:#fff;
    font-size:15px;
    font-weight:700;
    flex-shrink:0;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1200px){
    .dca-grid{
        grid-template-columns:
            1fr
            1fr;
    }
}

@media(max-width:768px){
    .dca-grid{
        grid-template-columns:1fr;
    }
    .form-card{
        min-height:auto;
    }
}

div#multiTable input {
    height: 30px;
}



/* =========================================
   TABLE SECTION
========================================= */

.table-card{

    margin-top:30px;

    padding:28px;

    border-radius:28px;

    background:var(--card);

    border:1px solid var(--border);

    box-shadow:var(--shadow);

    overflow:hidden;

}

/* =========================================
   HEADER
========================================= */

.table-card .card-header{

    margin-bottom:24px;

}

.table-card .card-header h2{

    font-size:38px;

    font-weight:800;

    margin-bottom:10px;

    letter-spacing:-1px;

}

.table-card .card-header p{

    color:var(--muted);

    font-size:16px;

}

/* =========================================
   TABLE WRAPPER
========================================= */

.table-wrap{

    width:100%;

    overflow-x:auto;

    overflow-y:hidden;

    border-radius:22px;

    border:1px solid var(--border);

    background:var(--card2);

}

/* CUSTOM SCROLLBAR */

.table-wrap::-webkit-scrollbar{

    height:10px;

}

.table-wrap::-webkit-scrollbar-track{

    background:transparent;

}

.table-wrap::-webkit-scrollbar-thumb{

    background:rgba(255,255,255,0.12);

    border-radius:20px;

}

/* =========================================
   TABLE
========================================= */

.dca-table{

    width:max-content;

    min-width:100%;

    border-collapse:separate;

    border-spacing:0;

}

/* =========================================
   HEADER CELLS
========================================= */

.dca-table th{

    position:sticky;

    top:0;

    z-index:2;

    background:var(--card2);

    color:var(--text);

    font-size:15px;

    font-weight:800;

    text-align:center;

    padding:22px 18px;

    border-bottom:1px solid var(--border);

    border-right:1px solid var(--border);

    white-space:nowrap;

}

/* =========================================
   BODY CELLS
========================================= */

.dca-table td{

    padding:18px 16px;

    text-align:center;

    border-right:1px solid var(--border);

    border-bottom:1px solid var(--border);

    white-space:nowrap;

    font-size:15px;

    font-weight:600;

    color:var(--text);

    background:rgba(255,255,255,0.01);

    transition:0.15s ease;

}

/* ROW HOVER */

.dca-table tbody tr:hover td{

    /* background:rgba(255,255,255,0.03); */

}

/* =========================================
   FIRST COLUMN STICKY
========================================= */

.dca-table th:first-child,
.dca-table td:first-child{

    position:sticky;

    left:0;

    z-index:3;

    background:var(--card2);

    min-width:120px;

    font-weight:800;

}

/* SECOND COLUMN STICKY */

.dca-table th:nth-child(2),
.dca-table td:nth-child(2){

    position:sticky;

    left:120px;

    z-index:2;

    background:var(--card2);

    min-width:190px;

}

/* =========================================
   INPUT FIELD
========================================= */

.dca-table input{

    width:140px;

    height:46px;

    border:none;

    outline:none;

    border-radius:14px;

    background:rgba(255,255,255,0.05);

    border:1px solid var(--border);

    color:var(--text);

    text-align:center;

    font-size:15px;

    font-weight:700;

    transition:0.2s ease;

}

.dca-table input:focus{

    border-color:var(--primary);

    box-shadow:
        0 0 0 4px rgba(37,99,235,0.14);

}

/* =========================================
   SPECIAL COLUMN COLORS
========================================= */

.yellow-col{

    color:#facc15 !important;

}

.blue-col{

    color:#60a5fa !important;

}

.green-col{

    color:#22c55e !important;

}

/* =========================================
   TOTAL ROW
========================================= */

.total-row td{

    background:rgba(255,255,255,0.03);

    font-weight:800;

    font-size:16px;

}

/* =========================================
   CALCULATE BUTTON AREA
========================================= */

.calc-area{

    display:flex;

    justify-content:flex-end;

    margin-top:24px;

}

/* =========================================
   CALCULATE BUTTON
========================================= */

.calculate-btn{

    min-width:220px;

    height:58px;

    border:none;

    outline:none;

    cursor:pointer;

    border-radius:18px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary2)
        );

    color:#fff;

    font-size:16px;

    font-weight:800;

    letter-spacing:0.3px;

    box-shadow:
        0 10px 24px rgba(37,99,235,0.28);

    transition:0.22s ease;

}

.calculate-btn:hover{

    transform:translateY(-2px);

    box-shadow:
        0 16px 32px rgba(37,99,235,0.35);

}

.calculate-btn:active{

    transform:scale(0.98);

}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:768px){

    .table-card{

        padding:18px;

    }

    .table-card .card-header h2{

        font-size:28px;

    }

    .calculate-btn{

        width:100%;

    }

    .calc-area{

        justify-content:stretch;

    }

}


.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}


/* =========================
   HEADER LAYOUT
========================= */

.card-header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

    margin-bottom:24px;

}

/* LEFT SIDE */

.card-header h2{

    font-size:24px;

    font-weight:800;

    margin-bottom:6px;

    line-height:1.1;

}

.card-header p{

    color:var(--muted);

    font-size:14px;

}

/* =========================
   SWITCH
========================= */

.switch{

    position:relative;

    display:inline-block;

    width:64px;

    height:34px;

    flex-shrink:0;

}

.switch input{

    opacity:0;

    width:0;

    height:0;

}

/* TRACK */

.slider{

    position:absolute;

    cursor:pointer;

    inset:0;

    background:rgba(255,255,255,0.08);

    border:1px solid var(--border);

    transition:0.25s ease;

    border-radius:999px;

}

/* CIRCLE */

.slider:before{

    position:absolute;

    content:"";

    width:26px;

    height:26px;

    left:4px;

    top:3px;

    background:#ffffff;

    border-radius:50%;

    transition:0.25s ease;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.2);

}

/* ACTIVE */

.switch input:checked + .slider{

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary2)
        );

    border-color:transparent;

}

.switch input:checked + .slider:before{

    transform:translateX(29px);

}

/* HOVER */

.switch:hover .slider{

    opacity:0.92;

}

/* MOBILE */

@media(max-width:600px){

    .card-header{

        align-items:flex-start;

    }

}
