/* Scoped styles for Granite Weight Calculator */
.gwc-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.gwc-container * {
    box-sizing: border-box;
}

.gwc-header h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

.gwc-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gwc-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gwc-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.gwc-field-row {
    display: flex;
    gap: 10px;
}

.gwc-field-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 1rem;
}

.gwc-field-row select {
    width: 80px;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #f8fafc;
    font-size: 1rem;
}

.gwc-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

#gwc-reset {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: underline;
    padding: 0;
}

#gwc-reset:hover {
    color: #0f172a;
}

.gwc-result {
    margin-top: 20px;
    padding: 15px;
    background-color: #f1f5f9;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.gwc-result-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.gwc-result-value .unit {
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
}

.gwc-result-sub {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 5px;
}

.gwc-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
}
