/* =========================
   Alloy Phase Analyzer Pro
   MechMaster Pro
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;
}

body{
    background:#0d1117;
    color:#ffffff;
}

/* HEADER */

header{
    background:#161b22;
    padding:20px;
    text-align:center;
    border-bottom:1px solid #30363d;
}

header h1{
    color:#58a6ff;
    font-size:32px;
}

header p{
    color:#9ca3af;
    margin-top:8px;
}

/* CONTAINER */

.container{
    display:grid;
    grid-template-columns:360px 1fr;
    gap:25px;
    padding:25px;
}

/* LEFT PANEL */

.left-panel{
    background:#161b22;
    border:1px solid #30363d;
    border-radius:16px;
    padding:25px;
}

.left-panel h2{
    margin-bottom:20px;
    color:#58a6ff;
}

/* INPUTS */

.input-box{
    margin-bottom:18px;
}

label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

select,
input{
    width:100%;
    padding:12px;
    border-radius:10px;
    border:1px solid #30363d;
    background:#0d1117;
    color:white;
    font-size:15px;
}

select:focus,
input:focus{
    outline:none;
    border-color:#58a6ff;
}

/* BUTTON */

button{
    width:100%;
    padding:14px;
    border:none;
    border-radius:10px;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    background:#238636;
    color:white;
    transition:0.3s;
}

button:hover{
    transform:translateY(-2px);
    background:#2ea043;
}

/* RIGHT PANEL */

.right-panel{
    display:flex;
    flex-direction:column;
    gap:25px;
}

.result-card,
.graph-card{
    background:#161b22;
    border:1px solid #30363d;
    border-radius:16px;
    padding:25px;
}

.result-card h2,
.graph-card h2{
    color:#58a6ff;
    margin-bottom:20px;
}

/* TABLE */

table{
    width:100%;
    border-collapse:collapse;
}

table td{
    padding:12px;
    border-bottom:1px solid #30363d;
}

table td:first-child{
    font-weight:600;
    color:#c9d1d9;
}

/* GRAPH */

canvas{
    width:100% !important;
    height:500px !important;
}

/* FOOTER */

footer{
    margin-top:30px;
    padding:20px;
    text-align:center;
    color:#9ca3af;
    background:#161b22;
    border-top:1px solid #30363d;
}

/* SCROLLBAR */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-track{
    background:#0d1117;
}

::-webkit-scrollbar-thumb{
    background:#30363d;
    border-radius:10px;
}

::-webkit-scrollbar-thumb:hover{
    background:#58a6ff;
}

/* MOBILE */

@media (max-width:950px){

    .container{
        grid-template-columns:1fr;
    }

    .left-panel{
        order:1;
    }

    .right-panel{
        order:2;
    }

    canvas{
        height:350px !important;
    }
}
.back-btn{
display:inline-block;
padding:10px 18px;
margin:15px;
background:#238636;
color:#ffffff;
text-decoration:none;
border-radius:8px;
font-weight:bold;
transition:0.3s;
}

.back-btn:hover{
background:#2ea043;
}