
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

main {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    gap: 20px;
}

h1 {
    color: #2d3748;
    font-weight: 600;
    font-size: 24px;
    text-align: center;
    margin-bottom: 8px;
}

span {
    color: #718096;
    font-size: 14px;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.4;
}

label {
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
}

input[type="number"], select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: #ffffff;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

input[type="number"]:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

input[type="number"]:hover, select:hover {
    border-color: #cbd5e0;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.title h1 {
    margin: 0;
    line-height: 1;
}

.title img {
    flex-shrink: 0;
}

.unit-selector {
    margin-bottom: 8px;
}

.unit-title {
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

@media (max-width: 480px) {
    main {
        padding: 24px;
        margin: 10px;
    }

    h1 {
        font-size: 20px;
    }
}