* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    padding: 20px;
    background: #f5f7fa;
    min-height: 100vh;
}

.container {
    max-width: 500px;
    margin: 0 auto;
}

h1 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1a202c;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

input {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66,153,225,0.1);
}

button {
    width: 100%;
    padding: 0.75rem;
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #3182ce;
}

button:active {
    transform: scale(0.98);
}

.result-content, .process-content {
    margin-bottom: 1rem;
}

.result-content h3, .process-content h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #2d3748;
}

.result-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 500;
    color: #4a5568;
}

.result-value {
    font-weight: 600;
    color: #2b6cb0;
}

.step-item {
    padding: 0.5rem 0;
    color: #4a5568;
    font-size: 0.875rem;
    border-bottom: 1px solid #edf2f7;
}

.loading {
    text-align: center;
    padding: 1rem;
    color: #4299e1;
    font-weight: 500;
}

.error {
    background: #fed7d7;
    color: #c53030;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.footer {
    text-align: center;
    color: #718096;
    font-size: 0.75rem;
    margin-top: 1rem;
}