:root{
    --bg: #050505;
    --card: #121214;
    --accent: #9d4edd;
    --text: #ffffff;
    --text-dim: #888;
}

body{
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.calculator-card{
    background: var(--card);
    padding: 2.5rem;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    border: 1px solid #222;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
}

.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

h1{
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: -1px;
}

h1 span{ 
    color: var(--accent); 
}

.status-dot{
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.subtitle{
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.input-wrapper{
    position: relative;
    z-index: 10;
}

input{
    width: 100%;
    box-sizing: border-box;
    background: #1a1a1e;
    border: 2px solid #333;
    padding: 18px;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 11; 
}

input:focus{
    border-color: var(--accent);
}

.input-glow{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    pointer-events: none; 
    transition: box-shadow 0.3s ease;
    z-index: 5;
}

input:focus + .input-glow{
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.2);
}

.result-container{
    margin-top: 2.5rem;
    padding: 20px;
    background: rgba(157, 78, 221, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(157, 78, 221, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-container.active{
    opacity: 1;
    transform: translateY(0);
}

.label{
    display: block;
    color: var(--text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.mass-output{
    display: flex;
    align-items: baseline;
    gap: 8px;
}

#massValue{
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
}

.unit{
    color: var(--text-dim);
    font-weight: 500;
}