* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #4a4e69;
    color: white;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
}

.site-header {
    width: calc(100% - 40px);
    background: rgba(18, 22, 30, 0.55);
    transform: translateX(-50%);
    padding: 12px 20px;
    position: fixed;
    top: 15px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    gap: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    z-index: 50;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 46px;
    height: 38px;
}

.site-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.account a {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

.account a:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.container {
    margin-top: 95px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(21, 28, 42, 0.662);
    padding: 26px;
    border-radius: 14px;
    width: 100%;
    width: 90%;
    max-width: 680px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.496);
    gap: 18px;

}

h1 {
    font-size: 2.2rem;
    text-align: center;
    color: #f0f0f0;
    font-weight: 600;
}

.user-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-input-container {
    display: flex;
    gap: 10px;
    position: relative;
}

#user-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.295);
    padding: 10px 12px;
    border-radius: 12px;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: white;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

#user-input::placeholder {
    color: rgba(233, 232, 232, 0.747);
}

.input-wrapper {
    position: relative;
    flex: 1;
}

#user-input {
    padding-right: 40px;
    position: relative;
    z-index: 1;
}

#clear-input {
    position: absolute;
    right: 135px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    cursor: pointer;
    display: none;
    color: rgba(33, 33, 33, 0.315);
    user-select: none;
    z-index: 5;
}

#clear-input:hover {
    color: rgb(19, 19, 19);
}

#user-input {
    padding-right: 35px !important;
}

#search-btn {
    padding: 10px 12px;
    border-radius: 12px;
    background-image: linear-gradient(to right, #02AAB0 0%, #00CDAC 51%, #02AAB0 100%);
    color: white;
    border: none;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    min-width: 110px;
    background-size: 200% auto;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(41, 159, 93, 0.2);
}

#search-btn:hover {
    background-position: right center;
    color: #fff;
    transform: translateY(-2px);
}

#search-btn:active {
    transform: translateY(0);
}

/* Circular progress bar */

.circle {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: rgba(244, 243, 243, 0.345);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease;
}

.circle:hover {
    transform: scale(1.05);
}

.circle span {
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 1rem;
}

.circle p {
    position: relative;
    z-index: 2;
    font-size: 0.85rem;
    margin-top: 4px;
    opacity: 0.8;
}

.circle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: conic-gradient(#36b56f 0deg, var(--progress-degree, 0deg), rgba(20, 26, 22, 0.4) var(--progress-degree, 0deg) 360deg);
    z-index: 1;
}

.progress {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 15px;
    text-align: center;
}

.stats-cards {
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-evenly;
}

h4 {
    font-size: 1rem;
}

.card {
    background-color: rgb(230, 146, 44);
    width: 40%;
    max-width: 290px;
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
    min-height: 4rem;
    color: #fff;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
}

@media (max-width: 720px) {
    .container {
        padding: 20px;
    }

    .progress {
        justify-content: center;
    }

    .card {
        max-width: 100%;
        flex-basis: 48%;
    }

    h1 {
        text-align: center;
    }
}

/* Mobile devices between 400px and 1000px */
@media (max-width: 450px) {

    body {
        padding: 15px 10px;
    }

    .site-header {
        width: 100%;
        left: 50%;
        padding: 10px 14px;
        border-radius: 10px;
        gap: 8px;
    }

    .site-name {
        font-size: 1.2rem;
    }

    .logo {
        width: 40px;
        height: 34px;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        margin-top: 90px;
    }

    .user-input-container {
        flex-direction: column;
        gap: 12px;
    }

    #user-input {
        padding: 12px;
        font-size: 1rem;
    }

    #search-btn {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }

    .progress {
        justify-content: center;
        gap: 20px;
    }

    .circle {
        width: 120px;
        height: 120px;
    }

    .stats-cards {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }

    .card {
        width: 100%;
        max-width: 320px;
        font-size: 1rem;
    }
}
