/*=========================================
 EMI / EMC Engineering Toolkit
 Frequency 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 Area
==========================*/

.input-section{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

    margin-bottom:30px;

}

.input-box{

    display:flex;

    flex-direction:column;

}

.input-box label{

    margin-bottom:10px;

    font-weight:600;

    color:#00d4ff;

}

.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);

    color:white;

    border:1px solid rgba(255,255,255,.12);

    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;

}

/*==========================
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;

}

/*==========================
Time Display
==========================*/

.time-display{

    text-align:center;

    margin:25px 0;

}

.time-display span{

    display:inline-block;

    padding:18px 30px;

    font-size:34px;

    font-weight:700;

    color:#00ffa3;

    border-radius:15px;

    background:rgba(0,212,255,.10);

    border:1px solid rgba(0,212,255,.25);

}

/*==========================
Waveform
==========================*/

.wave-container{

    margin-top:15px;

    padding:15px;

    background:#06111f;

    border-radius:15px;

    border:1px solid rgba(255,255,255,.08);

}

.wave-container svg{

    display:block;

}

.wave-container path{

    animation:waveGlow 3s infinite alternate;

}

@keyframes waveGlow{

    from{

        filter:drop-shadow(0 0 3px #00d4ff);

    }

    to{

        filter:drop-shadow(0 0 12px #00ffa3);

    }

}

/*==========================
Engineering Information
==========================*/

.info-panel{

    margin-top:40px;

    background:rgba(255,255,255,.06);

    border:1px solid rgba(255,255,255,.10);

    border-radius:20px;

    padding:30px;

}

.info-panel h2{

    color:#00d4ff;

    margin-bottom:25px;

    font-size:28px;

}

.info-panel h2 i{

    margin-right:10px;

}

.info-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

}

.info-box{

    background:rgba(255,255,255,.05);

    border-radius:15px;

    padding:20px;

    border:1px solid rgba(255,255,255,.08);

    transition:.3s;

}

.info-box:hover{

    transform:translateY(-6px);

    border-color:#00d4ff;

}

.info-box h4{

    color:#00ffa3;

    margin-bottom:10px;

}

.info-box p{

    color:#d6dbe3;

    line-height:1.7;

}

/*==========================
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;

}

.time-display span{

font-size:26px;

padding:15px 20px;

}

}