/* Scoped styles for Weight Converter Plugin */
.pwc-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    color: #333;
    padding: 20px;
    box-sizing: border-box;
}

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

.pwc-header {
    text-align: center;
    margin-bottom: 40px;
}

.pwc-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.pwc-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.pwc-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .pwc-grid {
        grid-template-columns: 1fr;
    }
}

.pwc-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

.pwc-card-header {
    background: #f9f9f9;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.pwc-badge {
    background: rgba(235, 87, 87, 0.1);
    color: #eb5757;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pwc-inputs-wrapper {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 600px) {
    .pwc-inputs-wrapper {
        flex-direction: column;
    }
}

.pwc-input-group {
    flex: 1;
    width: 100%;
}

.pwc-input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pwc-input-container {
    position: relative;
}

.pwc-input-container input {
    width: 100%;
    height: 60px;
    font-size: 1.5rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    padding: 10px 50px 10px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

.pwc-input-container input:focus {
    border-color: #eb5757;
}

.pwc-unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-weight: 600;
    pointer-events: none;
}

.pwc-swap-container button {
    background: #fff;
    border: 2px solid #e5e5e5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
    transition: all 0.2s;
    margin-top: 20px; /* Align with input boxes */
}

.pwc-swap-container button:hover {
    border-color: #eb5757;
    color: #eb5757;
}

.pwc-formula {
    background: #fdf2f2;
    margin: 0 30px 30px 30px;
    padding: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #555;
    border: 1px solid rgba(235, 87, 87, 0.2);
}

.pwc-formula strong {
    color: #eb5757;
}

/* Sidebar Styles */
.pwc-sidebar h3, .pwc-sidebar h4 {
    margin: 0;
    padding: 15px 20px;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.pwc-table-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px 20px;
    background: #f9f9f9;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
}

.pwc-table-header span:last-child {
    text-align: right;
}

.pwc-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px 20px;
    border-bottom: 1px solid #f5f5f5;
    font-family: monospace;
    font-size: 0.9rem;
}

.pwc-table-row:hover {
    background: #fafafa;
}

.pwc-table-row span:last-child {
    text-align: right;
    color: #666;
}

.pwc-info {
    background: #f9f9f9;
    border: 1px dashed #ddd;
}

.pwc-info h4 {
    background: transparent;
    border-bottom: none;
    padding-bottom: 5px;
}

.pwc-info p {
    padding: 0 20px 20px 20px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #666;
}
