/*=========================================
 EMI / EMC Engineering Toolkit
 Power Converter
=========================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;
}

body{
    background:linear-gradient(135deg,#071426,#0b2447,#12376e);
    color:#fff;
    overflow-x:hidden;
}

/*==========================
Container
==========================*/

.converter-page{
    width:100%;
    min-height:100vh;
    padding:120px 30px 60px;
}

.converter-card{
    max-width:1200px;
    margin:auto;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(18px);
    border-radius:20px;
    border:1px solid rgba(255,255,255,.12);
    padding:40px;
    box-shadow:0 20px 40px rgba(0,0,0,.35);
}

/*==========================
Title
==========================*/

.title{
    text-align:center;
    margin-bottom:40px;
}

.title i{
    font-size:55px;
    color:#00d4ff;
    margin-bottom:15px;
}

.title h1{
    font-size:42px;
    margin-bottom:10px;
}

.title p{
    color:#d5dde7;
}

/*==========================
Input Section
==========================*/

.input-section{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:25px;
    margin-bottom:30px;
}

.input-box{
    display:flex;
    flex-direction:column;
}

.input-box label{
    margin-bottom:10px;
    color:#00d4ff;
    font-weight:600;
}

.input-box label i{
    margin-right:8px;
}

.input-box input,
.input-box select{
    padding:15px;
    border:none;
    outline:none;
    border-radius:12px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.15);
    color:#fff;
    font-size:16px;
}

.input-box select option{
    color:#000;
}

/*==========================
Convert Button
==========================*/

.convert-area{
    text-align:center;
    margin:35px 0;
}

.convert-area button{
    padding:16px 60px;
    border:none;
    border-radius:40px;
    background:#00d4ff;
    color:#071426;
    font-size:18px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}

.convert-area button:hover{
    background:#00ffa3;
    transform:translateY(-4px);
    box-shadow:0 0 30px rgba(0,255,163,.4);
}

/*==========================
Result Grid
==========================*/

.result-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
    gap:25px;
    margin-top:40px;
}

.result-card{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.10);
    border-radius:18px;
    padding:25px;
    transition:.35s;
}

.result-card:hover{
    transform:translateY(-8px);
    border-color:#00d4ff;
    box-shadow:0 15px 30px rgba(0,212,255,.25);
}

.result-card h3{
    color:#00d4ff;
    margin-bottom:20px;
    font-size:22px;
}

.result-card h3 i{
    margin-right:10px;
}

.result-card p{
    color:#d6dbe3;
    margin-bottom:12px;
    line-height:1.7;
}

/*==========================
Table
==========================*/

table{
    width:100%;
    border-collapse:collapse;
}

table td{
    padding:14px;
    border-bottom:1px solid rgba(255,255,255,.08);
    font-size:17px;
}

table td:first-child{
    color:#8fdfff;
    font-weight:600;
}

table td:last-child{
    text-align:right;
    font-weight:700;
}

/*==========================
Formula Panel
==========================*/

.formula-panel{
    margin-top:45px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.10);
    border-radius:20px;
    padding:30px;
}

.formula-panel h2{
    color:#00d4ff;
    margin-bottom:25px;
    font-size:28px;
}

.formula-panel h2 i{
    margin-right:10px;
}

.formula-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.formula-box{
    background:rgba(255,255,255,.05);
    border-radius:15px;
    padding:20px;
    border:1px solid rgba(255,255,255,.08);
    transition:.3s;
}

.formula-box:hover{
    transform:translateY(-6px);
    border-color:#00d4ff;
}

.formula-box h4{
    color:#00ffa3;
    margin-bottom:12px;
}

.formula-box p{
    color:#d6dbe3;
    line-height:1.6;
    word-break:break-word;
}

/*==========================
Bottom Buttons
==========================*/

.bottom-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-top:40px;
    flex-wrap:wrap;
}

.bottom-buttons button{
    min-width:220px;
    padding:16px 30px;
    border:none;
    border-radius:50px;
    background:#00d4ff;
    color:#071426;
    font-size:17px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}

.bottom-buttons button:hover{
    background:#00ffa3;
    transform:translateY(-4px);
    box-shadow:0 0 25px rgba(0,255,163,.45);
}

.bottom-buttons button i{
    margin-right:8px;
}

/*==========================
Footer
==========================*/

.page-footer{
    margin-top:60px;
    padding:30px;
    border-top:1px solid rgba(255,255,255,.10);
}

.footer-content{
    display:flex;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
}

.footer-content h3,
.footer-content h4{
    color:#00d4ff;
}

.footer-content p{
    color:#cbd5e1;
    margin-top:8px;
}

/*==========================
Floating Help
==========================*/

.floating-help{
    position:fixed;
    right:20px;
    bottom:20px;
    background:rgba(0,212,255,.12);
    border:1px solid rgba(0,212,255,.35);
    backdrop-filter:blur(15px);
    border-radius:50px;
    padding:15px 22px;
    color:white;
    display:flex;
    align-items:center;
    gap:10px;
    box-shadow:0 8px 25px rgba(0,0,0,.30);
    z-index:999;
}

.floating-help i{
    color:#00ffa3;
    font-size:20px;
}

/*==========================
Responsive
==========================*/

@media(max-width:992px){

    .input-section{
        grid-template-columns:1fr;
    }

    .result-grid{
        grid-template-columns:1fr;
    }

    .footer-content{
        flex-direction:column;
        text-align:center;
    }

}

@media(max-width:768px){

    .converter-card{
        padding:20px;
    }

    .title h1{
        font-size:32px;
    }

    .bottom-buttons{
        flex-direction:column;
    }

    .bottom-buttons button{
        width:100%;
    }

    .floating-help{
        left:15px;
        right:15px;
        bottom:15px;
        border-radius:15px;
        font-size:14px;
    }

}