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

body {
    font-family: 'Georgia', serif;
    background: #f4f1e8;
    color: #2c2416;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #4073A3;
    margin-bottom: 10px;
    font-size: 2em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.welcome-message {
    background: #e8f2fb;
    border-left: 4px solid #4296DF;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.welcome-message p {
    margin: 0;
    line-height: 1.6;
    color: #2c2416;
}

.welcome-message p:first-child {
    margin-bottom: 8px;
}

.welcome-note {
    text-align: right;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

thead {
    background: #4073A3;
    color: white;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

tbody tr:hover {
    background: #faf8f3;
}

.qty-input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-align: center;
}

.price, .weight {
    font-family: monospace;
}

.total-section {
    position: sticky;
    bottom: 0;
    margin-top: 20px;
    padding: 20px;
    background: #4073A3;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.total-label {
    font-size: 1.2em;
    font-weight: bold;
    color: white;
}

.total-amount {
    font-size: 1.5em;
    color: white;
    font-family: monospace;
    font-weight: bold;
}

#loading-message {
    text-align: center;
    padding: 40px;
    font-style: italic;
    color: #666;
}

.scarcity-control {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.scarcity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.scarcity-control label {
    color: #4073A3;
    font-size: 1.1em;
}

.reset-btn {
    padding: 6px 12px;
    background: #4296DF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: background 0.2s;
}

.reset-btn:hover {
    background: #4073A3;
}

.reset-btn:active {
    transform: scale(0.98);
}

#multiplier-display {
    color: #2c2416;
    font-family: monospace;
    font-size: 1.2em;
    margin-left: 10px;
}

#scarcity-multiplier {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, 
        #4a9d4a 0%, 
        #4a9d4a 27%, 
        #4296DF 27%, 
        #4296DF 27.5%, 
        #c44c4c 27.5%, 
        #c44c4c 100%);
    outline: none;
    margin-bottom: 10px;
}

#scarcity-multiplier::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4073A3;
    cursor: pointer;
}

#scarcity-multiplier::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4073A3;
    cursor: pointer;
    border: none;
}

.scarcity-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}
