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

body {
    background-color: #0b0f19;
    color: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    width: 100%;
    padding: 2rem 1rem;
}

.calculator-container {
    background-color: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    margin: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    color: #38bdf8;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header p {
    color: #9ca3af;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #cbd5e1;
}

input {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: #38bdf8;
}

button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 0.5rem;
}

button:hover {
    opacity: 0.9;
}

#result-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 8px;
    text-align: center;
}

.hidden {
    display: none;
}

.result-label {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

#result-value {
    color: #10b981;
    font-size: 2.2rem;
    word-break: break-all;
    margin-bottom: 0.8rem;
}

.equation-display {
    background-color: #1e293b;
    padding: 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    color: #cbd5e1;
    font-size: 0.85rem;
}

footer {
    text-align: center;
    padding-top: 2rem;
    color: #64748b;
    font-size: 0.95rem;
}

/* Unique, attractive, bold, colored, outstanding styling for The Citadel Node */
.citadel-node {
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ff007f, #7928ca, #ff007f);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 3s linear infinite;
    text-shadow: 0px 0px 10px rgba(121, 40, 202, 0.4);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}
