body{
    margin:0;
    padding:40px;
    background:#f4f7fb;
    font-family:Arial,sans-serif;
    color:#111827;
}

.layout{
    max-width:1200px;
    margin:auto;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.topbar h1{
    margin:0;
    font-size:36px;
}

.topbar p{
    color:#6b7280;
}

.badge{
    background:#111827;
    color:white;
    padding:10px 18px;
    border-radius:999px;
    font-size:14px;
}

.card{
    background:white;
    border-radius:20px;
    padding:28px;
    margin-bottom:24px;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

.grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:24px;
}

.mini-card{
    background:white;
    border-radius:18px;
    padding:24px;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

.mini-card span{
    color:#6b7280;
    font-size:14px;
}

.mini-card h3{
    margin-top:10px;
    font-size:30px;
}

select{
    width:100%;
    padding:14px;
    border-radius:12px;
    border:1px solid #d1d5db;
    margin-top:10px;
    margin-bottom:20px;
}

button{
    background:#111827;
    color:white;
    border:none;
    padding:15px 22px;
    border-radius:12px;
    font-size:15px;
    cursor:pointer;
}

button:hover{
    opacity:0.92;
}

.result-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

#sonuc{
    margin-top:20px;
    line-height:1.8;
    color:#374151;
}

.loader{
    width:18px;
    height:18px;
    border:3px solid #d1d5db;
    border-top:3px solid #111827;
    border-radius:50%;
    animation:spin 1s linear infinite;
    display:none;
}

@keyframes spin{
    100%{
        transform:rotate(360deg);
    }
}

@media(max-width:900px){

    body{
        padding:20px;
    }

    .grid{
        grid-template-columns:1fr;
    }

    .topbar{
        flex-direction:column;
        align-items:flex-start;
        gap:16px;
    }
}